You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
550 B
28 lines
550 B
package geeksbot
|
|
|
|
import "database/sql"
|
|
|
|
type Guild struct {
|
|
ID string
|
|
NewPatronMessage sql.NullString
|
|
Prefixes []string
|
|
}
|
|
|
|
type Role struct {
|
|
ID string
|
|
RoleType string
|
|
Guild Guild
|
|
}
|
|
|
|
type GuildService interface {
|
|
Guild(id string) (Guild, error)
|
|
CreateGuild(g Guild) (Guild, error)
|
|
DeleteGuild(g Guild) error
|
|
UpdateGuild(g Guild) (Guild, error)
|
|
GuildRoles(g Guild) ([]Role, error)
|
|
CreateRole(r Role) (Role, error)
|
|
Role(id string) (Role, error)
|
|
UpdateRole(r Role) (Role, error)
|
|
DeleteRole(r Role) error
|
|
}
|