Documentation ¶
Index ¶
- type DepartmentService
- func (m *DepartmentService) Add(entity model_manage.Department) (err error)
- func (m *DepartmentService) DelByIds(ids []uuid.UUID) (err error)
- func (m *DepartmentService) Edit(entity model_manage.Department) (err error)
- func (m *DepartmentService) GetByParentId(pid uuid.UUID) (result []model_manage.Department, err error)
- type DictService
- func (m *DictService) AddOrEditDict(targetModel model_manage.Dict) error
- func (m *DictService) AddOrEditDictData(targetModel model_manage.DictData) error
- func (m *DictService) DelDictByIds(ids []uuid.UUID) error
- func (m *DictService) DelDictDataByIds(ids []uuid.UUID) error
- func (m *DictService) FindByTitleOrTypeLike(key string) (result []model_manage.Dict, err error)
- func (m *DictService) FindByType(dictType string) (result model_manage.Dict, err error)
- func (m *DictService) GetAll() (result []model_manage.Dict, err error)
- func (m *DictService) GetDataByType(dictType string) (result []*model_manage.DictData, err error)
- func (m *DictService) GetDictDataByCondition(condition map[string]string) (result []model_manage.DictData, total int64, err error)
- type MessageSendService
- func (m *MessageSendService) Add(entity model_manage.MessageSend) (err error)
- func (m *MessageSendService) DelByIds(ids []uuid.UUID) (err error)
- func (m *MessageSendService) Edit(entity model_manage.MessageSend) (err error)
- func (m *MessageSendService) GetAll() (result []model_manage.MessageSend, err error)
- func (m *MessageSendService) GetByCondition(condition map[string]string) (result []model_manage.MessageSend, total int64, err error)
- func (m *MessageSendService) GetById(id uuid.UUID) (result model_manage.MessageSend, err error)
- func (m *MessageSendService) GetMsgCenterChannelId(userId uuid.UUID) (result string, err error)
- func (m *MessageSendService) Updates(id uuid.UUID, fieldValues map[string]interface{}) (err error)
- type MessageService
- func (m *MessageService) Add(entity model_manage.Message) (err error)
- func (m *MessageService) DelByIds(ids []uuid.UUID) (err error)
- func (m *MessageService) Edit(entity model_manage.Message) (err error)
- func (m *MessageService) GetAll() (result []model_manage.Message, err error)
- func (m *MessageService) GetByCondition(condition map[string]string) (result []model_manage.Message, total int64, err error)
- func (m *MessageService) GetById(id uuid.UUID) (result model_manage.Message, err error)
- func (m *MessageService) Updates(id uuid.UUID, fieldValues map[string]interface{}) (err error)
- type PermissionService
- func (m *PermissionService) Add(entity model_manage.Permission) (err error)
- func (m *PermissionService) DelByIds(ids []uuid.UUID) (err error)
- func (m *PermissionService) Edit(entity model_manage.Permission) (err error)
- func (m *PermissionService) GetAll() (result []model_manage.Permission, err error)
- func (m *PermissionService) GetMenuList(userId uuid.UUID) (result []model_manage.Permission, err error)
- type RoleService
- func (m *RoleService) Add(entity model_manage.Role) (err error)
- func (m *RoleService) DelByIds(ids []uuid.UUID) (err error)
- func (m *RoleService) Edit(entity model_manage.Role) (err error)
- func (m *RoleService) EditRoleDep(roleId uuid.UUID, dataType int, depIds []uuid.UUID) (err error)
- func (m *RoleService) EditRolePerm(roleId uuid.UUID, permIds []uuid.UUID) (err error)
- func (m *RoleService) GetAll() (result []model_manage.Role, err error)
- func (m *RoleService) GetByCondition(condition map[string]string) (result []model_manage.Role, total int64, err error)
- func (m *RoleService) Updates(id uuid.UUID, fieldValues map[string]interface{}) (err error)
- type TaskService
- func (m *TaskService) Add(entity model_manage.Task) (err error)
- func (m *TaskService) DelByIds(ids []uuid.UUID) (err error)
- func (m *TaskService) Edit(entity model_manage.Task) (err error)
- func (m *TaskService) GetAll() (result []model_manage.Task, err error)
- func (m *TaskService) GetByCondition(condition map[string]string) (result []model_manage.Task, total int64, err error)
- func (m *TaskService) GetById(id uuid.UUID) (result model_manage.Task, err error)
- func (m *TaskService) Updates(id uuid.UUID, fieldValues map[string]interface{}) (err error)
- type UserService
- func (m *UserService) Add(entity model_manage.User) (err error)
- func (m *UserService) CreatePassword(password string) (result string, err error)
- func (m *UserService) DelByIds(ids []uuid.UUID) (err error)
- func (m *UserService) Edit(entity model_manage.User) (err error)
- func (m *UserService) EditUserRole(userId uuid.UUID, roleIds []uuid.UUID) (err error)
- func (m *UserService) GetAll() (result []model_manage.User, err error)
- func (m *UserService) GetByCondition(condition map[string]string) (result []model_manage.User, total int64, err error)
- func (m *UserService) GetByDepartmentId(departmentId uuid.UUID) (result []model_manage.User, err error)
- func (m *UserService) GetByIds(ids []uuid.UUID) (result []model_manage.User, err error)
- func (m *UserService) GetUserInfoFromJWT(ctx iris.Context) (result *types.BaseUserInfo, err error)
- func (m *UserService) Login(ctx iris.Context) (result iris.Map, err error)
- func (m *UserService) ModifyPass(id uuid.UUID, oldPassword string, newPassword string) (err error)
- func (m *UserService) ResetPassword(ids []uuid.UUID) (err error)
- func (m *UserService) UnLock(ctx iris.Context) (err error)
- func (m *UserService) Updates(id uuid.UUID, fieldValues map[string]interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DepartmentService ¶
type DepartmentService struct {
// contains filtered or unexported fields
}
func NewDepartmentService ¶
func NewDepartmentService(repo *repository_manage.DepartmentRepository) *DepartmentService
func (*DepartmentService) Add ¶
func (m *DepartmentService) Add(entity model_manage.Department) (err error)
func (*DepartmentService) DelByIds ¶
func (m *DepartmentService) DelByIds(ids []uuid.UUID) (err error)
func (*DepartmentService) Edit ¶
func (m *DepartmentService) Edit(entity model_manage.Department) (err error)
func (*DepartmentService) GetByParentId ¶
func (m *DepartmentService) GetByParentId(pid uuid.UUID) (result []model_manage.Department, err error)
type DictService ¶
type DictService struct {
// contains filtered or unexported fields
}
func NewDictService ¶
func NewDictService(repo *repository_manage.DictRepository) *DictService
func (*DictService) AddOrEditDict ¶
func (m *DictService) AddOrEditDict(targetModel model_manage.Dict) error
func (*DictService) AddOrEditDictData ¶
func (m *DictService) AddOrEditDictData(targetModel model_manage.DictData) error
func (*DictService) DelDictByIds ¶
func (m *DictService) DelDictByIds(ids []uuid.UUID) error
func (*DictService) DelDictDataByIds ¶
func (m *DictService) DelDictDataByIds(ids []uuid.UUID) error
func (*DictService) FindByTitleOrTypeLike ¶
func (m *DictService) FindByTitleOrTypeLike(key string) (result []model_manage.Dict, err error)
func (*DictService) FindByType ¶
func (m *DictService) FindByType(dictType string) (result model_manage.Dict, err error)
func (*DictService) GetAll ¶
func (m *DictService) GetAll() (result []model_manage.Dict, err error)
func (*DictService) GetDataByType ¶
func (m *DictService) GetDataByType(dictType string) (result []*model_manage.DictData, err error)
func (*DictService) GetDictDataByCondition ¶
func (m *DictService) GetDictDataByCondition(condition map[string]string) (result []model_manage.DictData, total int64, err error)
type MessageSendService ¶
type MessageSendService struct {
// contains filtered or unexported fields
}
func NewMessageSendService ¶
func NewMessageSendService(lruCache *service_core.LruCache, repo *repository_manage.MessageSendRepository, msgCenter *service_core.MsgCenter) *MessageSendService
func (*MessageSendService) Add ¶
func (m *MessageSendService) Add(entity model_manage.MessageSend) (err error)
func (*MessageSendService) DelByIds ¶
func (m *MessageSendService) DelByIds(ids []uuid.UUID) (err error)
func (*MessageSendService) Edit ¶
func (m *MessageSendService) Edit(entity model_manage.MessageSend) (err error)
func (*MessageSendService) GetAll ¶
func (m *MessageSendService) GetAll() (result []model_manage.MessageSend, err error)
func (*MessageSendService) GetByCondition ¶
func (m *MessageSendService) GetByCondition(condition map[string]string) (result []model_manage.MessageSend, total int64, err error)
func (*MessageSendService) GetById ¶
func (m *MessageSendService) GetById(id uuid.UUID) (result model_manage.MessageSend, err error)
func (*MessageSendService) GetMsgCenterChannelId ¶
func (m *MessageSendService) GetMsgCenterChannelId(userId uuid.UUID) (result string, err error)
type MessageService ¶
type MessageService struct {
// contains filtered or unexported fields
}
func NewMessageService ¶
func NewMessageService(lruCache *service_core.LruCache, message_repo *repository_manage.MessageRepository, message_send_service *MessageSendService, user_repo *repository_manage.UserRepository) *MessageService
func (*MessageService) Add ¶
func (m *MessageService) Add(entity model_manage.Message) (err error)
func (*MessageService) Edit ¶
func (m *MessageService) Edit(entity model_manage.Message) (err error)
func (*MessageService) GetAll ¶
func (m *MessageService) GetAll() (result []model_manage.Message, err error)
func (*MessageService) GetByCondition ¶
func (m *MessageService) GetByCondition(condition map[string]string) (result []model_manage.Message, total int64, err error)
func (*MessageService) GetById ¶
func (m *MessageService) GetById(id uuid.UUID) (result model_manage.Message, err error)
type PermissionService ¶
type PermissionService struct {
// contains filtered or unexported fields
}
func NewPermissionService ¶
func NewPermissionService(repo *repository_manage.PermissionRepository) *PermissionService
func (*PermissionService) Add ¶
func (m *PermissionService) Add(entity model_manage.Permission) (err error)
func (*PermissionService) DelByIds ¶
func (m *PermissionService) DelByIds(ids []uuid.UUID) (err error)
func (*PermissionService) Edit ¶
func (m *PermissionService) Edit(entity model_manage.Permission) (err error)
func (*PermissionService) GetAll ¶
func (m *PermissionService) GetAll() (result []model_manage.Permission, err error)
获取权限列表(包含权限节点)
func (*PermissionService) GetMenuList ¶
func (m *PermissionService) GetMenuList(userId uuid.UUID) (result []model_manage.Permission, err error)
获取用户页面菜单数据(不包含权限节点)
type RoleService ¶
type RoleService struct {
// contains filtered or unexported fields
}
func NewRoleService ¶
func NewRoleService(repo *repository_manage.RoleRepository) *RoleService
func (*RoleService) Add ¶
func (m *RoleService) Add(entity model_manage.Role) (err error)
func (*RoleService) Edit ¶
func (m *RoleService) Edit(entity model_manage.Role) (err error)
func (*RoleService) EditRoleDep ¶
func (*RoleService) EditRolePerm ¶
func (*RoleService) GetAll ¶
func (m *RoleService) GetAll() (result []model_manage.Role, err error)
func (*RoleService) GetByCondition ¶
func (m *RoleService) GetByCondition(condition map[string]string) (result []model_manage.Role, total int64, err error)
type TaskService ¶
type TaskService struct {
// contains filtered or unexported fields
}
func NewTaskService ¶
func NewTaskService(lruCache *service_core.LruCache, repo *repository_manage.TaskRepository) *TaskService
func (*TaskService) Add ¶
func (m *TaskService) Add(entity model_manage.Task) (err error)
func (*TaskService) Edit ¶
func (m *TaskService) Edit(entity model_manage.Task) (err error)
func (*TaskService) GetAll ¶
func (m *TaskService) GetAll() (result []model_manage.Task, err error)
func (*TaskService) GetByCondition ¶
func (m *TaskService) GetByCondition(condition map[string]string) (result []model_manage.Task, total int64, err error)
func (*TaskService) GetById ¶
func (m *TaskService) GetById(id uuid.UUID) (result model_manage.Task, err error)
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(repo *repository_manage.UserRepository) *UserService
func (*UserService) Add ¶
func (m *UserService) Add(entity model_manage.User) (err error)
func (*UserService) CreatePassword ¶
func (m *UserService) CreatePassword(password string) (result string, err error)
func (*UserService) Edit ¶
func (m *UserService) Edit(entity model_manage.User) (err error)
func (*UserService) EditUserRole ¶
func (*UserService) GetAll ¶
func (m *UserService) GetAll() (result []model_manage.User, err error)
func (*UserService) GetByCondition ¶
func (m *UserService) GetByCondition(condition map[string]string) (result []model_manage.User, total int64, err error)
func (*UserService) GetByDepartmentId ¶
func (m *UserService) GetByDepartmentId(departmentId uuid.UUID) (result []model_manage.User, err error)
func (*UserService) GetByIds ¶
func (m *UserService) GetByIds(ids []uuid.UUID) (result []model_manage.User, err error)
func (*UserService) GetUserInfoFromJWT ¶
func (m *UserService) GetUserInfoFromJWT(ctx iris.Context) (result *types.BaseUserInfo, err error)
func (*UserService) Login ¶
func (m *UserService) Login(ctx iris.Context) (result iris.Map, err error)
func (*UserService) ModifyPass ¶
func (*UserService) ResetPassword ¶
func (m *UserService) ResetPassword(ids []uuid.UUID) (err error)
func (*UserService) UnLock ¶
func (m *UserService) UnLock(ctx iris.Context) (err error)
Click to show internal directories.
Click to hide internal directories.