Add domain types
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package geeksbot
|
||||
|
||||
type Guild struct {
|
||||
ID string
|
||||
NewPatronMessage string
|
||||
Prefixes []string
|
||||
}
|
||||
|
||||
type Role struct {
|
||||
ID string
|
||||
RoleType int
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user