systemService

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDeptService

type IDeptService interface {
	SelectDeptList(dept *systemModels.SysDeptDQL) (list []*systemModels.SysDeptVo)
	SelectDeptById(deptId int64) (dept *systemModels.SysDeptVo)
	InsertDept(dept *systemModels.SysDeptAdd)
	UpdateDept(dept *systemModels.SysDeptEdit)
	DeleteDeptById(dept int64)
	CheckDeptNameUnique(id, parentId int64, deptName string) bool
	HasChildByDeptId(deptId int64) bool
	CheckDeptExistUser(deptId int64) bool
	SelectDeptListByRoleId(roleId int64) []string
}

type IDictDataService

type IDictDataService interface {
	SelectDictDataByType(dictType string) (sysDictDataList []*systemModels.SysDictDataVo)
	SelectDictDataList(dictData *systemModels.SysDictDataDQL) (list []*systemModels.SysDictDataVo, count *int64)
	ExportDictData(dictData *systemModels.SysDictDataDQL) (data []byte)
	SelectDictDataById(dictCode int64) (dictData *systemModels.SysDictDataVo)
	InsertDictData(dictData *systemModels.SysDictDataAdd)
	UpdateDictData(dictData *systemModels.SysDictDataEdit)
	DeleteDictDataByIds(dictCodes []int64)
	CheckDictDataByTypes(dictType []string) bool
}

type IDictTypeService

type IDictTypeService interface {
	SelectDictTypeList(dictType *systemModels.SysDictTypeDQL) (list []*systemModels.SysDictTypeVo, count *int64)
	ExportDictType(dictType *systemModels.SysDictTypeDQL) (data []byte)
	SelectDictTypeById(dictId int64) (dictType *systemModels.SysDictTypeVo)
	SelectDictTypeByIds(dictId []int64) (dictTypes []string)
	InsertDictType(dictType *systemModels.SysDictTypeAdd)
	UpdateDictType(dictType *systemModels.SysDictTypeEdit)
	DeleteDictTypeByIds(dictIds []int64)
	CheckDictTypeUnique(id int64, dictType string) bool
	DictTypeClearCache()
	SelectDictTypeAll() (list []*systemModels.SysDictTypeVo)
}

type ILoginService

type ILoginService interface {
	Login(user *systemModels.User, l *monitorModels.Logininfor) *string
	RecordLoginInfo(loginUser *monitorModels.Logininfor)
	GenerateCode() (m *systemModels.CaptchaVo)
	VerityCaptcha(id, base64 string) bool
	ForceLogout(token string)
}

type IPermissionService

type IPermissionService interface {
	SelectPermissionList(Permission *systemModels.SysPermissionDQL, userId int64) (list []*systemModels.SysPermissionVo)
	SelectPermissionById(PermissionId int64) (Permission *systemModels.SysPermissionVo)
	InsertPermission(Permission *systemModels.SysPermissionDML)
	UpdatePermission(Permission *systemModels.SysPermissionDML)
	DeletePermissionById(PermissionId int64)
	CheckPermissionNameUnique(Permission *systemModels.SysPermissionDML) bool
	HasChildByPermissionId(PermissionId int64) bool
	CheckPermissionExistRole(PermissionId int64) bool
	SelectPermissionListByRoleId(roleId int64) []string
}

type IPostService

type IPostService interface {
	SelectPostAll() (list []*systemModels.SysPostVo)
	PostExport(role *systemModels.SysPostDQL) (data []byte)
	SelectPostListByUserId(userId int64) (list []int64)
	SelectPostList(post *systemModels.SysPostDQL) (list []*systemModels.SysPostVo, count *int64)
	SelectPostById(postId int64) (Post *systemModels.SysPostVo)
	InsertPost(post *systemModels.SysPostAdd)
	UpdatePost(post *systemModels.SysPostEdit)
	DeletePostByIds(postId []int64)
	SelectUserPostGroupByUserId(userId int64) string
}

type IRoleService

type IRoleService interface {
	SelectRoleList(role *systemModels.SysRoleDQL) (list []*systemModels.SysRoleVo, count *int64)
	RoleExport(role *systemModels.SysRoleDQL) (data []byte)
	SelectRoleById(roseId int64) (role *systemModels.SysRoleVo)
	InsertRole(sysRole *systemModels.SysRoleAdd)
	UpdateRole(sysRole *systemModels.SysRoleEdit)
	UpdateRoleStatus(sysRole *systemModels.SysRoleEdit)
	AuthDataScope(sysRole *systemModels.SysRoleEdit)
	DeleteRoleByIds(ids []int64)
	CountUserRoleByRoleId(ids []int64) bool
	SelectBasicRolesByUserId(userId int64) (roles []*systemModels.SysRole)
	SelectRoleAll(role *systemModels.SysRoleDQL) (list []*systemModels.SysRoleVo)
	RolePermissionByRoles(roles []*systemModels.SysRole) (rolePerms []string, loginRoles []*baizeEntity.Role)
	SelectRoleListByUserId(userId int64) (list []int64)
	CheckRoleNameUnique(id int64, roleName string) bool
	CheckRoleKeyUnique(id int64, roleKey string) bool
	SelectUserRoleGroupByUserId(userId int64) string
	SelectAllocatedList(user *systemModels.SysRoleAndUserDQL) (list []*systemModels.SysUserVo, total *int64)
	SelectUnallocatedList(user *systemModels.SysRoleAndUserDQL) (list []*systemModels.SysUserVo, total *int64)
	InsertAuthUsers(roleId int64, userIds []int64)
	DeleteAuthUsers(roleId int64, userIds []int64)
	DeleteAuthUserRole(user *systemModels.SysUserRole)
}

type IUserService

type IUserService interface {
	SelectUserByUserName(userName string) *systemModels.User
	SelectUserList(user *systemModels.SysUserDQL) (sysUserList []*systemModels.SysUserVo, count *int64)
	UserExport(user *systemModels.SysUserDQL) (data []byte)
	SelectUserById(userId int64) (sysUser *systemModels.SysUserVo)
	InsertUser(sysUser *systemModels.SysUserAdd)
	UpdateUser(sysUser *systemModels.SysUserEdit)
	UpdateUserStatus(sysUser *systemModels.EditUserStatus)
	ResetPwd(userId int64, password string)
	CheckUserNameUnique(userName string) bool
	CheckPhoneUnique(id int64, phonenumber string) bool
	CheckEmailUnique(id int64, email string) bool
	DeleteUserByIds(ids []int64)
	UserImportData(rows [][]string, userId int64, deptId *int64) (msg string, failureNum int)
	UpdateLoginInformation(userId int64, ip string)
	UpdateUserAvatar(loginUser *systemModels.LoginUser, file *multipart.FileHeader) string
	ResetUserPwd(userId int64, password string)
	UpdateUserProfile(sysUser *systemModels.SysUserEdit)
	MatchesPassword(rawPassword string, userId int64) bool
	InsertUserAuth(userId int64, roleIds []int64)
	ImportTemplate() (data []byte)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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