Documentation ¶
Index ¶
- type DepartmentRepository
- func (m *DepartmentRepository) Add(entity model_manage.Department) (err error)
- func (m *DepartmentRepository) DelByIds(ids []uuid.UUID) (err error)
- func (m *DepartmentRepository) Edit(entity model_manage.Department) (err error)
- func (m *DepartmentRepository) GetByParentId(parentId uuid.UUID) (result []model_manage.Department, err error)
- type DictRepository
- func (m *DictRepository) AddOrEditDict(targetModel model_manage.Dict) error
- func (m *DictRepository) AddOrEditDictData(targetModel model_manage.DictData) error
- func (m *DictRepository) DelDictByIds(ids []uuid.UUID) error
- func (m *DictRepository) DelDictDataByIds(ids []uuid.UUID) error
- func (m *DictRepository) FindByTitleOrTypeLike(key string) (result []model_manage.Dict, err error)
- func (m *DictRepository) FindByType(dictType string) (result model_manage.Dict, err error)
- func (m *DictRepository) GetAll() (result []model_manage.Dict, err error)
- func (m *DictRepository) GetDataByType(dictType string) (result []*model_manage.DictData, err error)
- func (m *DictRepository) GetDictDataByCondition(condition map[string]string) (result []model_manage.DictData, total int64, err error)
- type MessageRepository
- func (m *MessageRepository) Add(entity model_manage.Message) (err error)
- func (m *MessageRepository) DelByIds(ids []uuid.UUID) (err error)
- func (m *MessageRepository) Edit(entity model_manage.Message) (err error)
- func (m *MessageRepository) GetAll() (result []model_manage.Message, err error)
- func (m *MessageRepository) GetByCondition(condition map[string]string) (result []model_manage.Message, total int64, err error)
- func (m *MessageRepository) GetById(id uuid.UUID) (result model_manage.Message, err error)
- func (m *MessageRepository) Updates(id uuid.UUID, fieldValues map[string]interface{}) (err error)
- type MessageSendRepository
- func (m *MessageSendRepository) Add(entity model_manage.MessageSend) (err error)
- func (m *MessageSendRepository) DelByIds(ids []uuid.UUID) (err error)
- func (m *MessageSendRepository) Edit(entity model_manage.MessageSend) (err error)
- func (m *MessageSendRepository) GetAll() (result []model_manage.MessageSend, err error)
- func (m *MessageSendRepository) GetByCondition(condition map[string]string) (result []model_manage.MessageSend, total int64, err error)
- func (m *MessageSendRepository) GetById(id uuid.UUID) (result model_manage.MessageSend, err error)
- func (m *MessageSendRepository) Updates(id uuid.UUID, fieldValues map[string]interface{}) (err error)
- type PermissionRepository
- func (m *PermissionRepository) Add(entity model_manage.Permission) (err error)
- func (m *PermissionRepository) DelByIds(ids []uuid.UUID) (err error)
- func (m *PermissionRepository) Edit(entity model_manage.Permission) (err error)
- func (m *PermissionRepository) GetAll() (result []model_manage.Permission, err error)
- func (m *PermissionRepository) GetUserPermissions(userId uuid.UUID) (permissions []model_manage.Permission, err error)
- type RoleRepository
- func (m *RoleRepository) Add(entity model_manage.Role) (err error)
- func (m *RoleRepository) DelByIds(ids []uuid.UUID) (err error)
- func (m *RoleRepository) Edit(entity model_manage.Role) (err error)
- func (m *RoleRepository) EditRoleDep(roleId uuid.UUID, dataType int, depIds []uuid.UUID) error
- func (m *RoleRepository) EditRolePerm(roleId uuid.UUID, permIds []uuid.UUID) (err error)
- func (m *RoleRepository) GetAll() (result []model_manage.Role, err error)
- func (m *RoleRepository) GetByCondition(condition map[string]string) (result []model_manage.Role, total int64, err error)
- func (m *RoleRepository) Updates(id uuid.UUID, fieldValues map[string]interface{}) (err error)
- type TaskRepository
- func (m *TaskRepository) Add(entity model_manage.Task) (err error)
- func (m *TaskRepository) DelByIds(ids []uuid.UUID) (err error)
- func (m *TaskRepository) Edit(entity model_manage.Task) (err error)
- func (m *TaskRepository) GetAll() (result []model_manage.Task, err error)
- func (m *TaskRepository) GetByCondition(condition map[string]string) (result []model_manage.Task, total int64, err error)
- func (m *TaskRepository) GetById(id uuid.UUID) (result model_manage.Task, err error)
- func (m *TaskRepository) Updates(id uuid.UUID, fieldValues map[string]interface{}) (err error)
- type UserRepository
- func (m *UserRepository) Add(entity model_manage.User) (err error)
- func (m *UserRepository) CreatePassword(password string) (result string, err error)
- func (m *UserRepository) DelByIds(ids []uuid.UUID) (err error)
- func (m *UserRepository) Edit(entity model_manage.User) (err error)
- func (m *UserRepository) EditUserRole(userId uuid.UUID, roleIds []uuid.UUID) (err error)
- func (m *UserRepository) GetAll() (result []model_manage.User, err error)
- func (m *UserRepository) GetByCondition(condition map[string]string) (result []model_manage.User, total int64, err error)
- func (m *UserRepository) GetByDepartmentId(departmentId uuid.UUID) (result []model_manage.User, err error)
- func (m *UserRepository) GetByIds(ids []uuid.UUID) (result []model_manage.User, err error)
- func (m *UserRepository) Login(userName string, password string) (user model_manage.User, err error)
- func (m *UserRepository) ModifyPass(id uuid.UUID, oldPassword string, newPassword string) (err error)
- func (m *UserRepository) ResetPassword(ids []uuid.UUID) (err error)
- func (m *UserRepository) 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 DepartmentRepository ¶
type DepartmentRepository struct{}
func NewDepartmentRepository ¶
func NewDepartmentRepository() *DepartmentRepository
func (*DepartmentRepository) Add ¶
func (m *DepartmentRepository) Add(entity model_manage.Department) (err error)
func (*DepartmentRepository) DelByIds ¶
func (m *DepartmentRepository) DelByIds(ids []uuid.UUID) (err error)
func (*DepartmentRepository) Edit ¶
func (m *DepartmentRepository) Edit(entity model_manage.Department) (err error)
func (*DepartmentRepository) GetByParentId ¶
func (m *DepartmentRepository) GetByParentId(parentId uuid.UUID) (result []model_manage.Department, err error)
type DictRepository ¶
type DictRepository struct{}
func NewDictRepository ¶
func NewDictRepository() *DictRepository
func (*DictRepository) AddOrEditDict ¶
func (m *DictRepository) AddOrEditDict(targetModel model_manage.Dict) error
func (*DictRepository) AddOrEditDictData ¶
func (m *DictRepository) AddOrEditDictData(targetModel model_manage.DictData) error
func (*DictRepository) DelDictByIds ¶
func (m *DictRepository) DelDictByIds(ids []uuid.UUID) error
func (*DictRepository) DelDictDataByIds ¶
func (m *DictRepository) DelDictDataByIds(ids []uuid.UUID) error
func (*DictRepository) FindByTitleOrTypeLike ¶
func (m *DictRepository) FindByTitleOrTypeLike(key string) (result []model_manage.Dict, err error)
func (*DictRepository) FindByType ¶
func (m *DictRepository) FindByType(dictType string) (result model_manage.Dict, err error)
func (*DictRepository) GetAll ¶
func (m *DictRepository) GetAll() (result []model_manage.Dict, err error)
func (*DictRepository) GetDataByType ¶
func (m *DictRepository) GetDataByType(dictType string) (result []*model_manage.DictData, err error)
func (*DictRepository) GetDictDataByCondition ¶
func (m *DictRepository) GetDictDataByCondition(condition map[string]string) (result []model_manage.DictData, total int64, err error)
type MessageRepository ¶
type MessageRepository struct{}
func NewMessageRepository ¶
func NewMessageRepository() *MessageRepository
func (*MessageRepository) Add ¶
func (m *MessageRepository) Add(entity model_manage.Message) (err error)
func (*MessageRepository) DelByIds ¶
func (m *MessageRepository) DelByIds(ids []uuid.UUID) (err error)
func (*MessageRepository) Edit ¶
func (m *MessageRepository) Edit(entity model_manage.Message) (err error)
func (*MessageRepository) GetAll ¶
func (m *MessageRepository) GetAll() (result []model_manage.Message, err error)
func (*MessageRepository) GetByCondition ¶
func (m *MessageRepository) GetByCondition(condition map[string]string) (result []model_manage.Message, total int64, err error)
func (*MessageRepository) GetById ¶
func (m *MessageRepository) GetById(id uuid.UUID) (result model_manage.Message, err error)
type MessageSendRepository ¶
type MessageSendRepository struct{}
func NewMessageSendRepository ¶
func NewMessageSendRepository() *MessageSendRepository
func (*MessageSendRepository) Add ¶
func (m *MessageSendRepository) Add(entity model_manage.MessageSend) (err error)
func (*MessageSendRepository) DelByIds ¶
func (m *MessageSendRepository) DelByIds(ids []uuid.UUID) (err error)
func (*MessageSendRepository) Edit ¶
func (m *MessageSendRepository) Edit(entity model_manage.MessageSend) (err error)
func (*MessageSendRepository) GetAll ¶
func (m *MessageSendRepository) GetAll() (result []model_manage.MessageSend, err error)
func (*MessageSendRepository) GetByCondition ¶
func (m *MessageSendRepository) GetByCondition(condition map[string]string) (result []model_manage.MessageSend, total int64, err error)
func (*MessageSendRepository) GetById ¶
func (m *MessageSendRepository) GetById(id uuid.UUID) (result model_manage.MessageSend, err error)
type PermissionRepository ¶
type PermissionRepository struct{}
func NewPermissionRepository ¶
func NewPermissionRepository() *PermissionRepository
func (*PermissionRepository) Add ¶
func (m *PermissionRepository) Add(entity model_manage.Permission) (err error)
func (*PermissionRepository) DelByIds ¶
func (m *PermissionRepository) DelByIds(ids []uuid.UUID) (err error)
func (*PermissionRepository) Edit ¶
func (m *PermissionRepository) Edit(entity model_manage.Permission) (err error)
func (*PermissionRepository) GetAll ¶
func (m *PermissionRepository) GetAll() (result []model_manage.Permission, err error)
func (*PermissionRepository) GetUserPermissions ¶
func (m *PermissionRepository) GetUserPermissions(userId uuid.UUID) (permissions []model_manage.Permission, err error)
type RoleRepository ¶
type RoleRepository struct{}
func NewRoleRepository ¶
func NewRoleRepository() *RoleRepository
func (*RoleRepository) Add ¶
func (m *RoleRepository) Add(entity model_manage.Role) (err error)
func (*RoleRepository) Edit ¶
func (m *RoleRepository) Edit(entity model_manage.Role) (err error)
func (*RoleRepository) EditRoleDep ¶
func (*RoleRepository) EditRolePerm ¶
func (*RoleRepository) GetAll ¶
func (m *RoleRepository) GetAll() (result []model_manage.Role, err error)
func (*RoleRepository) GetByCondition ¶
func (m *RoleRepository) GetByCondition(condition map[string]string) (result []model_manage.Role, total int64, err error)
type TaskRepository ¶
type TaskRepository struct{}
func NewTaskRepository ¶
func NewTaskRepository() *TaskRepository
func (*TaskRepository) Add ¶
func (m *TaskRepository) Add(entity model_manage.Task) (err error)
func (*TaskRepository) Edit ¶
func (m *TaskRepository) Edit(entity model_manage.Task) (err error)
func (*TaskRepository) GetAll ¶
func (m *TaskRepository) GetAll() (result []model_manage.Task, err error)
func (*TaskRepository) GetByCondition ¶
func (m *TaskRepository) GetByCondition(condition map[string]string) (result []model_manage.Task, total int64, err error)
func (*TaskRepository) GetById ¶
func (m *TaskRepository) GetById(id uuid.UUID) (result model_manage.Task, err error)
type UserRepository ¶
type UserRepository struct{}
func NewUserRepository ¶
func NewUserRepository() *UserRepository
func (*UserRepository) Add ¶
func (m *UserRepository) Add(entity model_manage.User) (err error)
func (*UserRepository) CreatePassword ¶
func (m *UserRepository) CreatePassword(password string) (result string, err error)
func (*UserRepository) Edit ¶
func (m *UserRepository) Edit(entity model_manage.User) (err error)
func (*UserRepository) EditUserRole ¶
编辑用户角色
func (*UserRepository) GetAll ¶
func (m *UserRepository) GetAll() (result []model_manage.User, err error)
func (*UserRepository) GetByCondition ¶
func (m *UserRepository) GetByCondition(condition map[string]string) (result []model_manage.User, total int64, err error)
func (*UserRepository) GetByDepartmentId ¶
func (m *UserRepository) GetByDepartmentId(departmentId uuid.UUID) (result []model_manage.User, err error)
func (*UserRepository) GetByIds ¶
func (m *UserRepository) GetByIds(ids []uuid.UUID) (result []model_manage.User, err error)
func (*UserRepository) Login ¶
func (m *UserRepository) Login(userName string, password string) (user model_manage.User, err error)
func (*UserRepository) ModifyPass ¶
func (*UserRepository) ResetPassword ¶
func (m *UserRepository) ResetPassword(ids []uuid.UUID) (err error)
Click to show internal directories.
Click to hide internal directories.