interface_manage

package
v0.0.0-...-294a70e Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDepartmentService

type IDepartmentService interface {
	GetByParentId(parentId uuid.UUID) (result []model_manage.Department, err error)
	Add(entity model_manage.Department) (err error)
	DelByIds(ids []uuid.UUID) (err error)
	Edit(entity model_manage.Department) (err error)
}

type IDictService

type IDictService interface {
	GetAll() (result []model_manage.Dict, err error)
	FindByType(dictType string) (result model_manage.Dict, err error)
	FindByTitleOrTypeLike(key string) (result []model_manage.Dict, err error)
	GetDataByType(dictType string) (result []*model_manage.DictData, err error)
	GetDictDataByCondition(condition map[string]string) (result []model_manage.DictData, total int64, err error)
	AddOrEditDictData(targetModel model_manage.DictData) error
	DelDictDataByIds(ids []uuid.UUID) error
	AddOrEditDict(targetModel model_manage.Dict) error
	DelDictByIds(ids []uuid.UUID) error
}

type IMessageSendService

type IMessageSendService interface {
	Add(entity model_manage.MessageSend) (err error)
	DelByIds(ids []uuid.UUID) (err error)
	Edit(entity model_manage.MessageSend) (err error)
	Updates(id uuid.UUID, fieldValues map[string]interface{}) (err error)
	GetAll() (result []model_manage.MessageSend, err error)
	GetById(id uuid.UUID) (result model_manage.MessageSend, err error)
	GetByCondition(condition map[string]string) (result []model_manage.MessageSend, total int64, err error)
	GetMsgCenterChannelId(userId uuid.UUID) (result string, err error)
}

type IMessageService

type IMessageService interface {
	Add(entity model_manage.Message) (err error)
	DelByIds(ids []uuid.UUID) (err error)
	Edit(entity model_manage.Message) (err error)
	Updates(id uuid.UUID, fieldValues map[string]interface{}) (err error)
	GetAll() (result []model_manage.Message, err error)
	GetById(id uuid.UUID) (result model_manage.Message, err error)
	GetByCondition(condition map[string]string) (result []model_manage.Message, total int64, err error)
}

type IPermissionService

type IPermissionService interface {
	GetAll() (result []model_manage.Permission, err error)
	Add(entity model_manage.Permission) (err error)
	DelByIds(ids []uuid.UUID) (err error)
	Edit(entity model_manage.Permission) (err error)
	GetMenuList(userId uuid.UUID) (result []model_manage.Permission, err error)
}

type IRoleService

type IRoleService interface {
	Add(entity model_manage.Role) (err error)
	Edit(entity model_manage.Role) (err error)
	Updates(id uuid.UUID, fieldValues map[string]interface{}) (err error)
	DelByIds(ids []uuid.UUID) (err error)
	EditRoleDep(roleId uuid.UUID, dataType int, depIds []uuid.UUID) (err error)
	GetAll() (result []model_manage.Role, err error)
	EditRolePerm(roleId uuid.UUID, permIds []uuid.UUID) (err error)
	GetByCondition(condition map[string]string) (result []model_manage.Role, total int64, err error)
}

type ITaskService

type ITaskService interface {
	Add(entity model_manage.Task) (err error)
	DelByIds(ids []uuid.UUID) (err error)
	Edit(entity model_manage.Task) (err error)
	Updates(id uuid.UUID, fieldValues map[string]interface{}) (err error)
	GetAll() (result []model_manage.Task, err error)
	GetById(id uuid.UUID) (result model_manage.Task, err error)
	GetByCondition(condition map[string]string) (result []model_manage.Task, total int64, err error)
}

type IUserService

type IUserService interface {
	GetByCondition(condition map[string]string) (result []model_manage.User, total int64, err error)
	Add(entity model_manage.User) (err error)
	Edit(entity model_manage.User) (err error)
	Updates(id uuid.UUID, fieldValues map[string]interface{}) (err error)
	DelByIds(ids []uuid.UUID) (err error)
	GetAll() (result []model_manage.User, err error)
	GetByIds(ids []uuid.UUID) (result []model_manage.User, err error)
	Login(ctx iris.Context) (result iris.Map, err error)
	UnLock(ctx iris.Context) (err error)
	GetUserInfoFromJWT(ctx iris.Context) (result *types.BaseUserInfo, err error)
	GetByDepartmentId(departmentId uuid.UUID) (result []model_manage.User, err error)
	ResetPassword(ids []uuid.UUID) (err error)
	ModifyPass(id uuid.UUID, oldPassword string, newPassword string) (err error)
	CreatePassword(password string) (result string, err error)
	EditUserRole(userId uuid.UUID, roleIds []uuid.UUID) (err error)
}

Jump to

Keyboard shortcuts

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