Start Restructure of project
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user