Start Restructure of project

This commit is contained in:
Dustin Pianalto
2020-09-14 00:10:24 -08:00
parent ece695ffe2
commit 5413c257ab
11 changed files with 126 additions and 71 deletions
+22
View File
@@ -0,0 +1,22 @@
package main
import "database/sql"
type Guild struct {
ID string
WelcomeMessage string
GoodbyeMessage string
LoggingChannel string
WelcomeChannel string
PuzzleChannel string
PuzzleRole sql.NullString
}
type GuildService interface {
Guild(id string) (*Guild, error)
Guilds() ([]*Guild, error)
CreateGuild(g *Guild) error
DeleteGuild(g *Guild) error
GuildUsers(g *Guild) ([]*User, error)
UpdateGuild(g *Guild) error
}