systemServiceImpl

package
v0.0.0-...-7bb2ca5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type DeptService

type DeptService struct {
	// contains filtered or unexported fields
}

func (*DeptService) CheckDeptExistUser

func (ds *DeptService) CheckDeptExistUser(deptId int64) bool

func (*DeptService) CheckDeptNameUnique

func (ds *DeptService) CheckDeptNameUnique(id, parentId int64, deptName string) bool

func (*DeptService) DeleteDeptById

func (ds *DeptService) DeleteDeptById(dept int64)

func (*DeptService) HasChildByDeptId

func (ds *DeptService) HasChildByDeptId(deptId int64) bool

func (*DeptService) InsertDept

func (ds *DeptService) InsertDept(dept *systemModels.SysDeptAdd)

func (*DeptService) SelectDeptById

func (ds *DeptService) SelectDeptById(deptId int64) (dept *systemModels.SysDeptVo)

func (*DeptService) SelectDeptList

func (ds *DeptService) SelectDeptList(dept *systemModels.SysDeptDQL) (list []*systemModels.SysDeptVo)

func (*DeptService) SelectDeptListByRoleId

func (ds *DeptService) SelectDeptListByRoleId(roleId int64) []string

func (*DeptService) UpdateDept

func (ds *DeptService) UpdateDept(dept *systemModels.SysDeptEdit)

type DictDataService

type DictDataService struct {
	// contains filtered or unexported fields
}

func NewDictDataService

func NewDictDataService(data *datasource.Data, ddd *systemDaoImpl.SysDictDataDao) *DictDataService

func (*DictDataService) CheckDictDataByTypes

func (dictDataService *DictDataService) CheckDictDataByTypes(dictType []string) bool

func (*DictDataService) DeleteDictDataByIds

func (dictDataService *DictDataService) DeleteDictDataByIds(dictCodes []int64)

func (*DictDataService) ExportDictData

func (dictDataService *DictDataService) ExportDictData(dictData *systemModels.SysDictDataDQL) (data []byte)

func (*DictDataService) InsertDictData

func (dictDataService *DictDataService) InsertDictData(dictData *systemModels.SysDictDataAdd)

func (*DictDataService) SelectDictDataById

func (dictDataService *DictDataService) SelectDictDataById(dictCode int64) (dictData *systemModels.SysDictDataVo)

func (*DictDataService) SelectDictDataByType

func (dictDataService *DictDataService) SelectDictDataByType(dictType string) (sysDictDataList []*systemModels.SysDictDataVo)

func (*DictDataService) SelectDictDataList

func (dictDataService *DictDataService) SelectDictDataList(dictData *systemModels.SysDictDataDQL) (list []*systemModels.SysDictDataVo, count *int64)

func (*DictDataService) UpdateDictData

func (dictDataService *DictDataService) UpdateDictData(dictData *systemModels.SysDictDataEdit)

type DictTypeService

type DictTypeService struct {
	// contains filtered or unexported fields
}

func NewDictTypeService

func NewDictTypeService(data *datasource.Data, dtd *systemDaoImpl.SysDictTypeDao) *DictTypeService

func (*DictTypeService) CheckDictTypeUnique

func (dictTypeService *DictTypeService) CheckDictTypeUnique(id int64, dictType string) bool

func (*DictTypeService) DeleteDictTypeByIds

func (dictTypeService *DictTypeService) DeleteDictTypeByIds(dictIds []int64)

func (*DictTypeService) DictTypeClearCache

func (dictTypeService *DictTypeService) DictTypeClearCache()

func (*DictTypeService) ExportDictType

func (dictTypeService *DictTypeService) ExportDictType(dictType *systemModels.SysDictTypeDQL) (data []byte)

func (*DictTypeService) InsertDictType

func (dictTypeService *DictTypeService) InsertDictType(dictType *systemModels.SysDictTypeAdd)

func (*DictTypeService) SelectDictTypeAll

func (dictTypeService *DictTypeService) SelectDictTypeAll() (list []*systemModels.SysDictTypeVo)

func (*DictTypeService) SelectDictTypeById

func (dictTypeService *DictTypeService) SelectDictTypeById(dictId int64) (dictType *systemModels.SysDictTypeVo)

func (*DictTypeService) SelectDictTypeByIds

func (dictTypeService *DictTypeService) SelectDictTypeByIds(dictId []int64) (dictTypes []string)

func (*DictTypeService) SelectDictTypeList

func (dictTypeService *DictTypeService) SelectDictTypeList(dictType *systemModels.SysDictTypeDQL) (list []*systemModels.SysDictTypeVo, count *int64)

func (*DictTypeService) UpdateDictType

func (dictTypeService *DictTypeService) UpdateDictType(dictType *systemModels.SysDictTypeEdit)

type LoginService

type LoginService struct {
	// contains filtered or unexported fields
}

func (*LoginService) ForceLogout

func (loginService *LoginService) ForceLogout(token string)

func (*LoginService) GenerateCode

func (loginService *LoginService) GenerateCode() (m *systemModels.CaptchaVo)

func (*LoginService) Login

func (loginService *LoginService) Login(user *systemModels.User, l *monitorModels.Logininfor) *string

func (*LoginService) RecordLoginInfo

func (loginService *LoginService) RecordLoginInfo(loginUser *monitorModels.Logininfor)

func (*LoginService) RolePermissionByRoles

func (loginService *LoginService) RolePermissionByRoles(roles []*systemModels.SysRole) (rolePerms []string, loginRoles []*baizeEntity.Role)

func (*LoginService) VerityCaptcha

func (loginService *LoginService) VerityCaptcha(id, base64 string) bool

type PermissionService

type PermissionService struct {
	PermissionDao systemDao.IPermissionDao
	// contains filtered or unexported fields
}

func (*PermissionService) CheckPermissionExistRole

func (PermissionService *PermissionService) CheckPermissionExistRole(PermissionId int64) bool

func (*PermissionService) CheckPermissionNameUnique

func (PermissionService *PermissionService) CheckPermissionNameUnique(Permission *systemModels.SysPermissionDML) bool

func (*PermissionService) DeletePermissionById

func (PermissionService *PermissionService) DeletePermissionById(PermissionId int64)

func (*PermissionService) HasChildByPermissionId

func (PermissionService *PermissionService) HasChildByPermissionId(PermissionId int64) bool

func (*PermissionService) InsertPermission

func (PermissionService *PermissionService) InsertPermission(Permission *systemModels.SysPermissionDML)

func (*PermissionService) SelectPermissionById

func (PermissionService *PermissionService) SelectPermissionById(PermissionId int64) (Permission *systemModels.SysPermissionVo)

func (*PermissionService) SelectPermissionList

func (PermissionService *PermissionService) SelectPermissionList(Permission *systemModels.SysPermissionDQL, userId int64) (list []*systemModels.SysPermissionVo)

func (*PermissionService) SelectPermissionListByRoleId

func (PermissionService *PermissionService) SelectPermissionListByRoleId(roleId int64) []string

func (*PermissionService) UpdatePermission

func (PermissionService *PermissionService) UpdatePermission(Permission *systemModels.SysPermissionDML)

type PostService

type PostService struct {
	// contains filtered or unexported fields
}

func NewPostService

func NewPostService(data *datasource.Data, pd *systemDaoImpl.SysPostDao) *PostService

func (*PostService) DeletePostByIds

func (postService *PostService) DeletePostByIds(postId []int64)

func (*PostService) InsertPost

func (postService *PostService) InsertPost(post *systemModels.SysPostAdd)

func (*PostService) PostExport

func (postService *PostService) PostExport(post *systemModels.SysPostDQL) (data []byte)

func (*PostService) SelectPostAll

func (postService *PostService) SelectPostAll() (list []*systemModels.SysPostVo)

SelectPostAll 查询所有岗位 @return 岗位列表

func (*PostService) SelectPostById

func (postService *PostService) SelectPostById(postId int64) (Post *systemModels.SysPostVo)

func (*PostService) SelectPostList

func (postService *PostService) SelectPostList(post *systemModels.SysPostDQL) (list []*systemModels.SysPostVo, count *int64)

func (*PostService) SelectPostListByUserId

func (postService *PostService) SelectPostListByUserId(userId int64) (list []int64)

SelectPostListByUserId 根据用户ID获取岗位选择框列表 @return 选中岗位ID列表

func (*PostService) SelectUserPostGroupByUserId

func (postService *PostService) SelectUserPostGroupByUserId(userId int64) string

func (*PostService) UpdatePost

func (postService *PostService) UpdatePost(post *systemModels.SysPostEdit)

type RoleService

type RoleService struct {
	// contains filtered or unexported fields
}

func (*RoleService) AuthDataScope

func (roleService *RoleService) AuthDataScope(sysRole *systemModels.SysRoleEdit)

func (*RoleService) CheckRoleKeyUnique

func (roleService *RoleService) CheckRoleKeyUnique(id int64, roleKey string) bool

func (*RoleService) CheckRoleNameUnique

func (roleService *RoleService) CheckRoleNameUnique(id int64, roleName string) bool

func (*RoleService) CountUserRoleByRoleId

func (roleService *RoleService) CountUserRoleByRoleId(ids []int64) bool

func (*RoleService) DeleteAuthUserRole

func (roleService *RoleService) DeleteAuthUserRole(userRole *systemModels.SysUserRole)

func (*RoleService) DeleteAuthUsers

func (roleService *RoleService) DeleteAuthUsers(roleId int64, userIds []int64)

func (*RoleService) DeleteRoleByIds

func (roleService *RoleService) DeleteRoleByIds(ids []int64)

func (*RoleService) InsertAuthUsers

func (roleService *RoleService) InsertAuthUsers(roleId int64, userIds []int64)

func (*RoleService) InsertRole

func (roleService *RoleService) InsertRole(sysRole *systemModels.SysRoleAdd)

func (*RoleService) RoleExport

func (roleService *RoleService) RoleExport(role *systemModels.SysRoleDQL) (data []byte)

func (*RoleService) RolePermissionByRoles

func (roleService *RoleService) RolePermissionByRoles(roles []*systemModels.SysRole) (rolePerms []string, loginRoles []*baizeEntity.Role)

func (*RoleService) SelectAllocatedList

func (roleService *RoleService) SelectAllocatedList(user *systemModels.SysRoleAndUserDQL) (list []*systemModels.SysUserVo, total *int64)

func (*RoleService) SelectBasicRolesByUserId

func (roleService *RoleService) SelectBasicRolesByUserId(userId int64) (roles []*systemModels.SysRole)

func (*RoleService) SelectRoleAll

func (roleService *RoleService) SelectRoleAll(role *systemModels.SysRoleDQL) (list []*systemModels.SysRoleVo)

func (*RoleService) SelectRoleById

func (roleService *RoleService) SelectRoleById(roseId int64) (role *systemModels.SysRoleVo)

func (*RoleService) SelectRoleList

func (roleService *RoleService) SelectRoleList(role *systemModels.SysRoleDQL) (list []*systemModels.SysRoleVo, count *int64)

func (*RoleService) SelectRoleListByUserId

func (roleService *RoleService) SelectRoleListByUserId(userId int64) (list []int64)

func (*RoleService) SelectUnallocatedList

func (roleService *RoleService) SelectUnallocatedList(user *systemModels.SysRoleAndUserDQL) (list []*systemModels.SysUserVo, total *int64)

func (*RoleService) SelectUserRoleGroupByUserId

func (roleService *RoleService) SelectUserRoleGroupByUserId(userId int64) string

func (*RoleService) UpdateRole

func (roleService *RoleService) UpdateRole(sysRole *systemModels.SysRoleEdit)

func (*RoleService) UpdateRoleStatus

func (roleService *RoleService) UpdateRoleStatus(sysRole *systemModels.SysRoleEdit)

type UserService

type UserService struct {
	// contains filtered or unexported fields
}

func (*UserService) CheckEmailUnique

func (userService *UserService) CheckEmailUnique(id int64, email string) bool

func (*UserService) CheckPhoneUnique

func (userService *UserService) CheckPhoneUnique(id int64, phonenumber string) bool

func (*UserService) CheckUserNameUnique

func (userService *UserService) CheckUserNameUnique(userName string) bool

func (*UserService) DeleteUserByIds

func (userService *UserService) DeleteUserByIds(ids []int64)

func (*UserService) ImportTemplate

func (userService *UserService) ImportTemplate() (data []byte)

func (*UserService) InsertUser

func (userService *UserService) InsertUser(sysUser *systemModels.SysUserAdd)

func (*UserService) InsertUserAuth

func (userService *UserService) InsertUserAuth(userId int64, roleIds []int64)

func (*UserService) MatchesPassword

func (userService *UserService) MatchesPassword(rawPassword string, userId int64) bool

func (*UserService) ResetPwd

func (userService *UserService) ResetPwd(userId int64, password string)

func (*UserService) ResetUserPwd

func (userService *UserService) ResetUserPwd(userId int64, password string)

func (*UserService) SelectUserById

func (userService *UserService) SelectUserById(userId int64) (sysUser *systemModels.SysUserVo)

func (*UserService) SelectUserByUserName

func (userService *UserService) SelectUserByUserName(userName string) *systemModels.User

func (*UserService) SelectUserList

func (userService *UserService) SelectUserList(user *systemModels.SysUserDQL) (sysUserList []*systemModels.SysUserVo, count *int64)

func (*UserService) UpdateLoginInformation

func (userService *UserService) UpdateLoginInformation(userId int64, ip string)

func (*UserService) UpdateUser

func (userService *UserService) UpdateUser(sysUser *systemModels.SysUserEdit)

func (*UserService) UpdateUserAvatar

func (userService *UserService) UpdateUserAvatar(loginUser *systemModels.LoginUser, file *multipart.FileHeader) string

func (*UserService) UpdateUserProfile

func (userService *UserService) UpdateUserProfile(sysUser *systemModels.SysUserEdit)

func (*UserService) UpdateUserStatus

func (userService *UserService) UpdateUserStatus(sysUser *systemModels.EditUserStatus)

func (*UserService) UserExport

func (userService *UserService) UserExport(user *systemModels.SysUserDQL) (data []byte)

func (*UserService) UserImportData

func (userService *UserService) UserImportData(rows [][]string, userId int64, deptId *int64) (msg string, failureNum int)

Jump to

Keyboard shortcuts

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