Documentation
¶
Index ¶
- type GroupApp
- func (app *GroupApp) AddMember(groupId, userId string) error
- func (app *GroupApp) CreateGroup(name, description, ownerId string, role domain.Role) (*domain.Group, error)
- func (app *GroupApp) DeleteGroup(groupId string) error
- func (app *GroupApp) GetAllGroups(limit, offset int) ([]domain.Group, int64, error)
- func (app *GroupApp) GetGroup(groupId string) (*domain.Group, error)
- func (app *GroupApp) GetMembers(groupId string) ([]domain.User, error)
- func (app *GroupApp) RemoveMember(groupId, userId string) error
- func (app *GroupApp) UpdateGroup(groupId, name, description string, role domain.Role) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupApp ¶
type GroupApp struct {
Config config.Config
Logger zerolog.Logger
GroupPers domain.GroupPers
UserPers domain.UserPers
}
func NewGroupApp ¶
func (*GroupApp) CreateGroup ¶
func (app *GroupApp) CreateGroup(name, description, ownerId string, role domain.Role) (*domain.Group, error)
CreateGroup creates a new group
func (*GroupApp) DeleteGroup ¶
DeleteGroup deletes a group
func (*GroupApp) GetAllGroups ¶
GetAllGroups retrieves all groups with pagination
func (*GroupApp) GetMembers ¶
GetMembers retrieves all members of a group
func (*GroupApp) RemoveMember ¶
RemoveMember removes a user from a group
Click to show internal directories.
Click to hide internal directories.