Add domain types

This commit is contained in:
Dustin Pianalto
2021-01-20 17:39:18 -09:00
parent b611dd7c87
commit cfe683c53c
7 changed files with 172 additions and 0 deletions
+25
View File
@@ -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
}