22 lines
635 B
Go
22 lines
635 B
Go
package logic
|
|
|
|
import "git.dragon-labs.de/alphyron/group_helper/models"
|
|
|
|
type GroupHelperService interface {
|
|
CreateGroup(*models.Group) (*models.Group, error)
|
|
UpdateGroup(*models.Group) (*models.Group, error)
|
|
|
|
GetGroupByID(int64) (*models.Group, error)
|
|
GetGroupDatabaseSize(int64) (int, error)
|
|
|
|
CreateUser(*models.User) (*models.User, error)
|
|
GetUserByID(int64) *models.User
|
|
|
|
UserJoinGroup(*models.User, *models.Group) (bool, error)
|
|
UserLeaveGroup(*models.User, *models.Group) (bool, error)
|
|
IsUserInGroup(*models.User, *models.Group) (bool, error)
|
|
|
|
ListGroups() ([]*models.Group, error)
|
|
ListUsers() ([]*models.User, error)
|
|
}
|