services

package
v0.0.0-...-67fa6a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupService

type GroupService struct {
	Engine *xorm.Engine
}

GroupService struct

func (*GroupService) AddUserGroup

func (g *GroupService) AddUserGroup(userGroup model.UserGroup) (bool, error)

AddUserGroup method

func (*GroupService) DeleteGroup

func (g *GroupService) DeleteGroup(group model.Group) (bool, error)

DeleteGroup method

func (*GroupService) DeleteGroups

func (g *GroupService) DeleteGroups(group []model.Group) (bool, error)

DeleteGroups method

func (*GroupService) DeleteUserGroup

func (g *GroupService) DeleteUserGroup(userGroup model.UserGroup) (bool, error)

DeleteUserGroup method

func (*GroupService) DeleteUserGroups

func (g *GroupService) DeleteUserGroups(userGroups []model.UserGroup) (bool, error)

DeleteUserGroups method

func (*GroupService) GetAllGroup

func (g *GroupService) GetAllGroup() ([]model.Group, error)

GetAllGroup method

func (*GroupService) GetAllUserGroup

func (g *GroupService) GetAllUserGroup() ([]model.UserGroup, error)

GetAllUserGroup method

func (*GroupService) GetGroup

func (g *GroupService) GetGroup(group model.Group) (model.Group, error)

GetGroup method

func (*GroupService) NewGroup

func (g *GroupService) NewGroup(group model.Group) (bool, error)

NewGroup method

type MessageService

type MessageService struct {
	Engine *xorm.Engine
}

MessageService struct

func (*MessageService) AddMessageRecipient

func (m *MessageService) AddMessageRecipient(recipient model.MessageRecipient) (bool, error)

AddMessageRecipient method

func (*MessageService) DeleteMessage

func (m *MessageService) DeleteMessage(message model.Message) (bool, error)

DeleteMessage method

func (*MessageService) DeleteMessageRecipient

func (m *MessageService) DeleteMessageRecipient(recipient model.MessageRecipient) (bool, error)

DeleteMessageRecipient method

func (*MessageService) DeleteMessageRecipients

func (m *MessageService) DeleteMessageRecipients(recipients []model.MessageRecipient) (bool, error)

DeleteMessageRecipients method

func (*MessageService) DeleteMessages

func (m *MessageService) DeleteMessages(message []model.Message) (bool, error)

DeleteMessages method

func (*MessageService) GetAllMessageRecipient

func (m *MessageService) GetAllMessageRecipient() ([]model.MessageRecipient, error)

GetAllMessageRecipient method

func (*MessageService) GetAllMessages

func (m *MessageService) GetAllMessages() ([]model.Message, error)

GetAllMessages method

func (*MessageService) GetMessage

func (m *MessageService) GetMessage(message model.Message) (model.Message, error)

GetAllMessage method

func (*MessageService) NewMessage

func (m *MessageService) NewMessage(message model.Message) (bool, error)

NewMessage method

type UsersService

type UsersService struct {
	Engine *xorm.Engine
}

UsersService struct

func (*UsersService) AddNewUser

func (u *UsersService) AddNewUser(user model.User) (bool, error)

AddNewUser method

func (*UsersService) DeleteUser

func (u *UsersService) DeleteUser(user model.User) (bool, error)

DeleteUser method

func (*UsersService) DeleteUsers

func (u *UsersService) DeleteUsers(user []model.User) (bool, error)

DeleteUsers method

func (*UsersService) GetAllUsers

func (u *UsersService) GetAllUsers() ([]model.User, error)

GetAllUsers method

func (*UsersService) GetUser

func (u *UsersService) GetUser(user model.User) (model.User, error)

GetUser method

func (*UsersService) UpdateUser

func (u *UsersService) UpdateUser(user model.User) (bool, error)

UpdateUser method

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL