systemDaoImpl

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type SysDeptDao

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

func NewSysDeptDao

func NewSysDeptDao() *SysDeptDao

func (*SysDeptDao) CheckDeptExistUser

func (sysDeptDao *SysDeptDao) CheckDeptExistUser(db dataUtil.DB, deptId int64) int

func (*SysDeptDao) CheckDeptNameUnique

func (sysDeptDao *SysDeptDao) CheckDeptNameUnique(db dataUtil.DB, deptName string, parentId int64) int64

func (*SysDeptDao) DeleteDeptById

func (sysDeptDao *SysDeptDao) DeleteDeptById(db dataUtil.DB, deptId int64)

func (*SysDeptDao) HasChildByDeptId

func (sysDeptDao *SysDeptDao) HasChildByDeptId(db dataUtil.DB, deptId int64) int

func (*SysDeptDao) InsertDept

func (sysDeptDao *SysDeptDao) InsertDept(db dataUtil.DB, dept *systemModels.SysDeptAdd)

func (*SysDeptDao) SelectDeptById

func (sysDeptDao *SysDeptDao) SelectDeptById(db dataUtil.DB, deptId int64) (dept *systemModels.SysDeptVo)

func (*SysDeptDao) SelectDeptList

func (sysDeptDao *SysDeptDao) SelectDeptList(db dataUtil.DB, dept *systemModels.SysDeptDQL) (list []*systemModels.SysDeptVo)

func (*SysDeptDao) SelectDeptListByRoleId

func (sysDeptDao *SysDeptDao) SelectDeptListByRoleId(db dataUtil.DB, roleId int64, deptCheckStrictly bool) (deptIds []string)

func (*SysDeptDao) UpdateDept

func (sysDeptDao *SysDeptDao) UpdateDept(db dataUtil.DB, dept *systemModels.SysDeptEdit)

type SysDictDataDao

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

func NewSysDictDataDao

func NewSysDictDataDao() *SysDictDataDao

func (*SysDictDataDao) CountDictDataByTypes

func (sysDictDataDao *SysDictDataDao) CountDictDataByTypes(db dataUtil.DB, dictType []string) int

func (*SysDictDataDao) DeleteDictDataByIds

func (sysDictDataDao *SysDictDataDao) DeleteDictDataByIds(db dataUtil.DB, dictCodes []int64)

func (*SysDictDataDao) InsertDictData

func (sysDictDataDao *SysDictDataDao) InsertDictData(db dataUtil.DB, dictData *systemModels.SysDictDataAdd)

func (*SysDictDataDao) SelectDictDataById

func (sysDictDataDao *SysDictDataDao) SelectDictDataById(db dataUtil.DB, dictCode int64) (dictData *systemModels.SysDictDataVo)

func (*SysDictDataDao) SelectDictDataByType

func (sysDictDataDao *SysDictDataDao) SelectDictDataByType(db dataUtil.DB, dictType string) (SysDictDataList []*systemModels.SysDictDataVo)

func (*SysDictDataDao) SelectDictDataList

func (sysDictDataDao *SysDictDataDao) SelectDictDataList(db dataUtil.DB, dictData *systemModels.SysDictDataDQL) (list []*systemModels.SysDictDataVo, total *int64)

func (*SysDictDataDao) UpdateDictData

func (sysDictDataDao *SysDictDataDao) UpdateDictData(db dataUtil.DB, dictData *systemModels.SysDictDataEdit)

type SysDictTypeDao

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

func NewSysDictTypeDao

func NewSysDictTypeDao() *SysDictTypeDao

func (*SysDictTypeDao) CheckDictTypeUnique

func (sysDictTypeDao *SysDictTypeDao) CheckDictTypeUnique(db dataUtil.DB, dictType string) int64

func (*SysDictTypeDao) DeleteDictTypeByIds

func (sysDictTypeDao *SysDictTypeDao) DeleteDictTypeByIds(db dataUtil.DB, dictIds []int64) (err error)

func (*SysDictTypeDao) InsertDictType

func (sysDictTypeDao *SysDictTypeDao) InsertDictType(db dataUtil.DB, dictType *systemModels.SysDictTypeAdd)

func (*SysDictTypeDao) SelectDictTypeAll

func (sysDictTypeDao *SysDictTypeDao) SelectDictTypeAll(db dataUtil.DB) (list []*systemModels.SysDictTypeVo)

func (*SysDictTypeDao) SelectDictTypeById

func (sysDictTypeDao *SysDictTypeDao) SelectDictTypeById(db dataUtil.DB, dictId int64) (dictType *systemModels.SysDictTypeVo)

func (*SysDictTypeDao) SelectDictTypeByIds

func (sysDictTypeDao *SysDictTypeDao) SelectDictTypeByIds(db dataUtil.DB, dictId []int64) (dictTypes []string)

func (*SysDictTypeDao) SelectDictTypeList

func (sysDictTypeDao *SysDictTypeDao) SelectDictTypeList(db dataUtil.DB, dictType *systemModels.SysDictTypeDQL) (list []*systemModels.SysDictTypeVo, total *int64)

func (*SysDictTypeDao) UpdateDictType

func (sysDictTypeDao *SysDictTypeDao) UpdateDictType(db dataUtil.DB, dictType *systemModels.SysDictTypeEdit)

type SysPermissionDao

type SysPermissionDao struct {
	PermissionSql string
}

func NewSysPermissionDao

func NewSysPermissionDao() *SysPermissionDao

func (*SysPermissionDao) CheckPermissionNameUnique

func (md *SysPermissionDao) CheckPermissionNameUnique(db dataUtil.DB, permissionName string, parentId int64) int64

func (*SysPermissionDao) DeletePermissionById

func (md *SysPermissionDao) DeletePermissionById(db dataUtil.DB, PermissionId int64)

func (*SysPermissionDao) HasChildByPermissionId

func (md *SysPermissionDao) HasChildByPermissionId(db dataUtil.DB, permissionId int64) int

func (*SysPermissionDao) InsertPermission

func (md *SysPermissionDao) InsertPermission(db dataUtil.DB, Permission *systemModels.SysPermissionDML)

func (*SysPermissionDao) SelectPermissionById

func (md *SysPermissionDao) SelectPermissionById(db dataUtil.DB, PermissionId int64) (Permission *systemModels.SysPermissionVo)

func (*SysPermissionDao) SelectPermissionList

func (md *SysPermissionDao) SelectPermissionList(db dataUtil.DB, Permission *systemModels.SysPermissionDQL) (list []*systemModels.SysPermissionVo)

func (*SysPermissionDao) SelectPermissionListByRoleId

func (md *SysPermissionDao) SelectPermissionListByRoleId(db dataUtil.DB, roleId int64, PermissionCheckStrictly bool) (roleIds []string)

func (*SysPermissionDao) SelectPermissionListByUserId

func (md *SysPermissionDao) SelectPermissionListByUserId(db dataUtil.DB, Permission *systemModels.SysPermissionDQL) (list []*systemModels.SysPermissionVo)

func (*SysPermissionDao) SelectPermissionPermsByUserId

func (md *SysPermissionDao) SelectPermissionPermsByUserId(db dataUtil.DB, userId int64) (perms []string)

func (*SysPermissionDao) SelectPermissionTreeAll

func (md *SysPermissionDao) SelectPermissionTreeAll(db dataUtil.DB) (sysPermissions []*systemModels.SysPermissionVo)

func (*SysPermissionDao) SelectPermissionTreeByUserId

func (md *SysPermissionDao) SelectPermissionTreeByUserId(db dataUtil.DB, userId int64) (sysPermissions []*systemModels.SysPermissionVo)

func (*SysPermissionDao) UpdatePermission

func (md *SysPermissionDao) UpdatePermission(db dataUtil.DB, Permission *systemModels.SysPermissionDML)

type SysPostDao

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

func NewSysPostDao

func NewSysPostDao() *SysPostDao

func (*SysPostDao) DeletePostByIds

func (postDao *SysPostDao) DeletePostByIds(db dataUtil.DB, dictCodes []int64)

func (*SysPostDao) InsertPost

func (postDao *SysPostDao) InsertPost(db dataUtil.DB, post *systemModels.SysPostAdd)

func (*SysPostDao) SelectPostAll

func (postDao *SysPostDao) SelectPostAll(db dataUtil.DB) (sysPost []*systemModels.SysPostVo)

func (*SysPostDao) SelectPostById

func (postDao *SysPostDao) SelectPostById(db dataUtil.DB, postId int64) (dictData *systemModels.SysPostVo)

func (*SysPostDao) SelectPostList

func (postDao *SysPostDao) SelectPostList(db dataUtil.DB, post *systemModels.SysPostDQL) (list []*systemModels.SysPostVo, total *int64)

func (*SysPostDao) SelectPostListByUserId

func (postDao *SysPostDao) SelectPostListByUserId(db dataUtil.DB, userId int64) (list []int64)

func (*SysPostDao) SelectPostNameListByUserId

func (postDao *SysPostDao) SelectPostNameListByUserId(db dataUtil.DB, userId int64) (list []string)

func (*SysPostDao) UpdatePost

func (postDao *SysPostDao) UpdatePost(db dataUtil.DB, post *systemModels.SysPostEdit)

type SysRoleDao

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

func NewSysRoleDao

func NewSysRoleDao() *SysRoleDao

func (*SysRoleDao) CheckRoleKeyUnique

func (rd *SysRoleDao) CheckRoleKeyUnique(db dataUtil.DB, roleKey string) int64

func (*SysRoleDao) CheckRoleNameUnique

func (rd *SysRoleDao) CheckRoleNameUnique(db dataUtil.DB, roleName string) int64

func (*SysRoleDao) DeleteRoleByIds

func (rd *SysRoleDao) DeleteRoleByIds(db dataUtil.DB, ids []int64)

func (*SysRoleDao) InsertRole

func (rd *SysRoleDao) InsertRole(db dataUtil.DB, sysRole *systemModels.SysRoleAdd)

func (*SysRoleDao) SelectAllocatedList

func (rd *SysRoleDao) SelectAllocatedList(db dataUtil.DB, user *systemModels.SysRoleAndUserDQL) (list []*systemModels.SysUserVo, total *int64)

func (*SysRoleDao) SelectBasicRolesByUserId

func (rd *SysRoleDao) SelectBasicRolesByUserId(db dataUtil.DB, userId int64) (roles []*systemModels.SysRole)

func (*SysRoleDao) SelectRoleById

func (rd *SysRoleDao) SelectRoleById(db dataUtil.DB, roleId int64) (role *systemModels.SysRoleVo)

func (*SysRoleDao) SelectRoleIdAndDataScopeByUserId

func (rd *SysRoleDao) SelectRoleIdAndDataScopeByUserId(db dataUtil.DB, userId int64) (roles []*baizeEntity.Role)

func (*SysRoleDao) SelectRoleList

func (rd *SysRoleDao) SelectRoleList(db dataUtil.DB, role *systemModels.SysRoleDQL) (list []*systemModels.SysRoleVo, total *int64)

func (*SysRoleDao) SelectRoleListByUserId

func (rd *SysRoleDao) SelectRoleListByUserId(db dataUtil.DB, userId int64) (list []int64)

func (*SysRoleDao) SelectRolePermissionByUserId

func (rd *SysRoleDao) SelectRolePermissionByUserId(db dataUtil.DB, userId int64) (roles []string)

func (*SysRoleDao) SelectUnallocatedList

func (rd *SysRoleDao) SelectUnallocatedList(db dataUtil.DB, user *systemModels.SysRoleAndUserDQL) (list []*systemModels.SysUserVo, total *int64)

func (*SysRoleDao) UpdateRole

func (rd *SysRoleDao) UpdateRole(db dataUtil.DB, sysRole *systemModels.SysRoleEdit)

type SysRoleDeptDao

type SysRoleDeptDao struct {
}

func NewSysRoleDeptDao

func NewSysRoleDeptDao() *SysRoleDeptDao

func (*SysRoleDeptDao) BatchRoleDept

func (sysRoleDeptDao *SysRoleDeptDao) BatchRoleDept(db dataUtil.DB, list []*systemModels.SysRoleDept)

func (*SysRoleDeptDao) DeleteRoleDept

func (sysRoleDeptDao *SysRoleDeptDao) DeleteRoleDept(db dataUtil.DB, ids []int64)

func (*SysRoleDeptDao) DeleteRoleDeptByRoleId

func (sysRoleDeptDao *SysRoleDeptDao) DeleteRoleDeptByRoleId(db dataUtil.DB, id int64)

type SysRolePermissionDao

type SysRolePermissionDao struct {
}

func NewSysRolePermissionDao

func NewSysRolePermissionDao() *SysRolePermissionDao

func (*SysRolePermissionDao) BatchRolePermission

func (sysRolePermissionDao *SysRolePermissionDao) BatchRolePermission(db dataUtil.DB, list []*systemModels.SysRolePermission)

func (*SysRolePermissionDao) CheckPermissionExistRole

func (sysRolePermissionDao *SysRolePermissionDao) CheckPermissionExistRole(db dataUtil.DB, permissionId int64) int

func (*SysRolePermissionDao) DeleteRolePermission

func (sysRolePermissionDao *SysRolePermissionDao) DeleteRolePermission(db dataUtil.DB, ids []int64)

func (*SysRolePermissionDao) DeleteRolePermissionByRoleId

func (sysRolePermissionDao *SysRolePermissionDao) DeleteRolePermissionByRoleId(db dataUtil.DB, roleId int64)

type SysUserDao

type SysUserDao struct {
}

func GetSysUserDao

func GetSysUserDao() *SysUserDao

func (*SysUserDao) CheckEmailUnique

func (userDao *SysUserDao) CheckEmailUnique(db dataUtil.DB, email string) int64

func (*SysUserDao) CheckPhoneUnique

func (userDao *SysUserDao) CheckPhoneUnique(db dataUtil.DB, phonenumber string) int64

func (*SysUserDao) CheckUserNameUnique

func (userDao *SysUserDao) CheckUserNameUnique(db dataUtil.DB, userName string) int

func (*SysUserDao) DeleteUserByIds

func (userDao *SysUserDao) DeleteUserByIds(db dataUtil.DB, ids []int64)

func (*SysUserDao) InsertUser

func (userDao *SysUserDao) InsertUser(db dataUtil.DB, sysUser *systemModels.SysUserAdd)

func (*SysUserDao) ResetUserPwd

func (userDao *SysUserDao) ResetUserPwd(db dataUtil.DB, userId int64, password string)

func (*SysUserDao) SelectPasswordByUserId

func (userDao *SysUserDao) SelectPasswordByUserId(db dataUtil.DB, userId int64) string

func (*SysUserDao) SelectUserById

func (userDao *SysUserDao) SelectUserById(db dataUtil.DB, userId int64) (sysUser *systemModels.SysUserVo)

func (*SysUserDao) SelectUserByUserName

func (userDao *SysUserDao) SelectUserByUserName(db dataUtil.DB, userName string) (loginUser *systemModels.User)

func (*SysUserDao) SelectUserList

func (userDao *SysUserDao) SelectUserList(db dataUtil.DB, user *systemModels.SysUserDQL) (list []*systemModels.SysUserVo, total *int64)

func (*SysUserDao) UpdateLoginInformation

func (userDao *SysUserDao) UpdateLoginInformation(db dataUtil.DB, userId int64, ip string)

func (*SysUserDao) UpdateUser

func (userDao *SysUserDao) UpdateUser(db dataUtil.DB, sysUser *systemModels.SysUserEdit)

func (*SysUserDao) UpdateUserAvatar

func (userDao *SysUserDao) UpdateUserAvatar(db dataUtil.DB, userId int64, avatar string)

type SysUserPostDao

type SysUserPostDao struct {
}

func NewSysUserPostDao

func NewSysUserPostDao() *SysUserPostDao

func (*SysUserPostDao) BatchUserPost

func (sysUserPostDao *SysUserPostDao) BatchUserPost(db dataUtil.DB, users []*systemModels.SysUserPost)

func (*SysUserPostDao) DeleteUserPost

func (sysUserPostDao *SysUserPostDao) DeleteUserPost(db dataUtil.DB, ids []int64)

func (*SysUserPostDao) DeleteUserPostByUserId

func (sysUserPostDao *SysUserPostDao) DeleteUserPostByUserId(db dataUtil.DB, userId int64)

type SysUserRoleDao

type SysUserRoleDao struct {
}

func NewSysUserRoleDao

func NewSysUserRoleDao() *SysUserRoleDao

func (*SysUserRoleDao) BatchUserRole

func (sysUserRoleDao *SysUserRoleDao) BatchUserRole(db dataUtil.DB, users []*systemModels.SysUserRole)

func (*SysUserRoleDao) CountUserRoleByRoleId

func (sysUserRoleDao *SysUserRoleDao) CountUserRoleByRoleId(db dataUtil.DB, ids []int64) int

func (*SysUserRoleDao) DeleteUserRole

func (sysUserRoleDao *SysUserRoleDao) DeleteUserRole(db dataUtil.DB, ids []int64)

func (*SysUserRoleDao) DeleteUserRoleByUserId

func (sysUserRoleDao *SysUserRoleDao) DeleteUserRoleByUserId(db dataUtil.DB, userId int64)

func (*SysUserRoleDao) DeleteUserRoleInfo

func (sysUserRoleDao *SysUserRoleDao) DeleteUserRoleInfo(db dataUtil.DB, userRole *systemModels.SysUserRole)

func (*SysUserRoleDao) DeleteUserRoleInfos

func (sysUserRoleDao *SysUserRoleDao) DeleteUserRoleInfos(db dataUtil.DB, roleId int64, userIds []int64)

Jump to

Keyboard shortcuts

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