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
type User struct {
ID string
Banned bool
Logging bool
SteamID string
IsActive bool
IsStaff bool
IsAdmin bool
Guilds []string
}
type UserService interface {
User(id string) (*User, error)
CreateUser(u *User) error
DeleteUser(u *User) error
MarkUserInactive(u *User) error
AddUserToGuild(u *User, g *Guild) error
RemoveUserFromGuild(u *User, g *Guild) error
UpdateUser(u *User) error
}