Documentation ¶
Index ¶
- Variables
- type SysDeptDao
- func (sysDeptDao *SysDeptDao) CheckDeptExistUser(db dataUtil.DB, deptId int64) int
- func (sysDeptDao *SysDeptDao) CheckDeptNameUnique(db dataUtil.DB, deptName string, parentId int64) int64
- func (sysDeptDao *SysDeptDao) DeleteDeptById(db dataUtil.DB, deptId int64)
- func (sysDeptDao *SysDeptDao) HasChildByDeptId(db dataUtil.DB, deptId int64) int
- func (sysDeptDao *SysDeptDao) InsertDept(db dataUtil.DB, dept *systemModels.SysDeptAdd)
- func (sysDeptDao *SysDeptDao) SelectDeptById(db dataUtil.DB, deptId int64) (dept *systemModels.SysDeptVo)
- func (sysDeptDao *SysDeptDao) SelectDeptList(db dataUtil.DB, dept *systemModels.SysDeptDQL) (list []*systemModels.SysDeptVo)
- func (sysDeptDao *SysDeptDao) SelectDeptListByRoleId(db dataUtil.DB, roleId int64, deptCheckStrictly bool) (deptIds []string)
- func (sysDeptDao *SysDeptDao) UpdateDept(db dataUtil.DB, dept *systemModels.SysDeptEdit)
- type SysDictDataDao
- func (sysDictDataDao *SysDictDataDao) CountDictDataByTypes(db dataUtil.DB, dictType []string) int
- func (sysDictDataDao *SysDictDataDao) DeleteDictDataByIds(db dataUtil.DB, dictCodes []int64)
- func (sysDictDataDao *SysDictDataDao) InsertDictData(db dataUtil.DB, dictData *systemModels.SysDictDataAdd)
- func (sysDictDataDao *SysDictDataDao) SelectDictDataById(db dataUtil.DB, dictCode int64) (dictData *systemModels.SysDictDataVo)
- func (sysDictDataDao *SysDictDataDao) SelectDictDataByType(db dataUtil.DB, dictType string) (SysDictDataList []*systemModels.SysDictDataVo)
- func (sysDictDataDao *SysDictDataDao) SelectDictDataList(db dataUtil.DB, dictData *systemModels.SysDictDataDQL) (list []*systemModels.SysDictDataVo, total *int64)
- func (sysDictDataDao *SysDictDataDao) UpdateDictData(db dataUtil.DB, dictData *systemModels.SysDictDataEdit)
- type SysDictTypeDao
- func (sysDictTypeDao *SysDictTypeDao) CheckDictTypeUnique(db dataUtil.DB, dictType string) int64
- func (sysDictTypeDao *SysDictTypeDao) DeleteDictTypeByIds(db dataUtil.DB, dictIds []int64) (err error)
- func (sysDictTypeDao *SysDictTypeDao) InsertDictType(db dataUtil.DB, dictType *systemModels.SysDictTypeAdd)
- func (sysDictTypeDao *SysDictTypeDao) SelectDictTypeAll(db dataUtil.DB) (list []*systemModels.SysDictTypeVo)
- func (sysDictTypeDao *SysDictTypeDao) SelectDictTypeById(db dataUtil.DB, dictId int64) (dictType *systemModels.SysDictTypeVo)
- func (sysDictTypeDao *SysDictTypeDao) SelectDictTypeByIds(db dataUtil.DB, dictId []int64) (dictTypes []string)
- func (sysDictTypeDao *SysDictTypeDao) SelectDictTypeList(db dataUtil.DB, dictType *systemModels.SysDictTypeDQL) (list []*systemModels.SysDictTypeVo, total *int64)
- func (sysDictTypeDao *SysDictTypeDao) UpdateDictType(db dataUtil.DB, dictType *systemModels.SysDictTypeEdit)
- type SysPermissionDao
- func (md *SysPermissionDao) CheckPermissionNameUnique(db dataUtil.DB, permissionName string, parentId int64) int64
- func (md *SysPermissionDao) DeletePermissionById(db dataUtil.DB, PermissionId int64)
- func (md *SysPermissionDao) HasChildByPermissionId(db dataUtil.DB, permissionId int64) int
- func (md *SysPermissionDao) InsertPermission(db dataUtil.DB, Permission *systemModels.SysPermissionDML)
- func (md *SysPermissionDao) SelectPermissionById(db dataUtil.DB, PermissionId int64) (Permission *systemModels.SysPermissionVo)
- func (md *SysPermissionDao) SelectPermissionList(db dataUtil.DB, Permission *systemModels.SysPermissionDQL) (list []*systemModels.SysPermissionVo)
- func (md *SysPermissionDao) SelectPermissionListByRoleId(db dataUtil.DB, roleId int64, PermissionCheckStrictly bool) (roleIds []string)
- func (md *SysPermissionDao) SelectPermissionListByUserId(db dataUtil.DB, Permission *systemModels.SysPermissionDQL) (list []*systemModels.SysPermissionVo)
- func (md *SysPermissionDao) SelectPermissionPermsByUserId(db dataUtil.DB, userId int64) (perms []string)
- func (md *SysPermissionDao) SelectPermissionTreeAll(db dataUtil.DB) (sysPermissions []*systemModels.SysPermissionVo)
- func (md *SysPermissionDao) SelectPermissionTreeByUserId(db dataUtil.DB, userId int64) (sysPermissions []*systemModels.SysPermissionVo)
- func (md *SysPermissionDao) UpdatePermission(db dataUtil.DB, Permission *systemModels.SysPermissionDML)
- type SysPostDao
- func (postDao *SysPostDao) DeletePostByIds(db dataUtil.DB, dictCodes []int64)
- func (postDao *SysPostDao) InsertPost(db dataUtil.DB, post *systemModels.SysPostAdd)
- func (postDao *SysPostDao) SelectPostAll(db dataUtil.DB) (sysPost []*systemModels.SysPostVo)
- func (postDao *SysPostDao) SelectPostById(db dataUtil.DB, postId int64) (dictData *systemModels.SysPostVo)
- func (postDao *SysPostDao) SelectPostList(db dataUtil.DB, post *systemModels.SysPostDQL) (list []*systemModels.SysPostVo, total *int64)
- func (postDao *SysPostDao) SelectPostListByUserId(db dataUtil.DB, userId int64) (list []int64)
- func (postDao *SysPostDao) SelectPostNameListByUserId(db dataUtil.DB, userId int64) (list []string)
- func (postDao *SysPostDao) UpdatePost(db dataUtil.DB, post *systemModels.SysPostEdit)
- type SysRoleDao
- func (rd *SysRoleDao) CheckRoleKeyUnique(db dataUtil.DB, roleKey string) int64
- func (rd *SysRoleDao) CheckRoleNameUnique(db dataUtil.DB, roleName string) int64
- func (rd *SysRoleDao) DeleteRoleByIds(db dataUtil.DB, ids []int64)
- func (rd *SysRoleDao) InsertRole(db dataUtil.DB, sysRole *systemModels.SysRoleAdd)
- func (rd *SysRoleDao) SelectAllocatedList(db dataUtil.DB, user *systemModels.SysRoleAndUserDQL) (list []*systemModels.SysUserVo, total *int64)
- func (rd *SysRoleDao) SelectBasicRolesByUserId(db dataUtil.DB, userId int64) (roles []*systemModels.SysRole)
- func (rd *SysRoleDao) SelectRoleById(db dataUtil.DB, roleId int64) (role *systemModels.SysRoleVo)
- func (rd *SysRoleDao) SelectRoleIdAndDataScopeByUserId(db dataUtil.DB, userId int64) (roles []*baizeEntity.Role)
- func (rd *SysRoleDao) SelectRoleList(db dataUtil.DB, role *systemModels.SysRoleDQL) (list []*systemModels.SysRoleVo, total *int64)
- func (rd *SysRoleDao) SelectRoleListByUserId(db dataUtil.DB, userId int64) (list []int64)
- func (rd *SysRoleDao) SelectRolePermissionByUserId(db dataUtil.DB, userId int64) (roles []string)
- func (rd *SysRoleDao) SelectUnallocatedList(db dataUtil.DB, user *systemModels.SysRoleAndUserDQL) (list []*systemModels.SysUserVo, total *int64)
- func (rd *SysRoleDao) UpdateRole(db dataUtil.DB, sysRole *systemModels.SysRoleEdit)
- type SysRoleDeptDao
- type SysRolePermissionDao
- func (sysRolePermissionDao *SysRolePermissionDao) BatchRolePermission(db dataUtil.DB, list []*systemModels.SysRolePermission)
- func (sysRolePermissionDao *SysRolePermissionDao) CheckPermissionExistRole(db dataUtil.DB, permissionId int64) int
- func (sysRolePermissionDao *SysRolePermissionDao) DeleteRolePermission(db dataUtil.DB, ids []int64)
- func (sysRolePermissionDao *SysRolePermissionDao) DeleteRolePermissionByRoleId(db dataUtil.DB, roleId int64)
- type SysUserDao
- func (userDao *SysUserDao) CheckEmailUnique(db dataUtil.DB, email string) int64
- func (userDao *SysUserDao) CheckPhoneUnique(db dataUtil.DB, phonenumber string) int64
- func (userDao *SysUserDao) CheckUserNameUnique(db dataUtil.DB, userName string) int
- func (userDao *SysUserDao) DeleteUserByIds(db dataUtil.DB, ids []int64)
- func (userDao *SysUserDao) InsertUser(db dataUtil.DB, sysUser *systemModels.SysUserAdd)
- func (userDao *SysUserDao) ResetUserPwd(db dataUtil.DB, userId int64, password string)
- func (userDao *SysUserDao) SelectPasswordByUserId(db dataUtil.DB, userId int64) string
- func (userDao *SysUserDao) SelectUserById(db dataUtil.DB, userId int64) (sysUser *systemModels.SysUserVo)
- func (userDao *SysUserDao) SelectUserByUserName(db dataUtil.DB, userName string) (loginUser *systemModels.User)
- func (userDao *SysUserDao) SelectUserList(db dataUtil.DB, user *systemModels.SysUserDQL) (list []*systemModels.SysUserVo, total *int64)
- func (userDao *SysUserDao) UpdateLoginInformation(db dataUtil.DB, userId int64, ip string)
- func (userDao *SysUserDao) UpdateUser(db dataUtil.DB, sysUser *systemModels.SysUserEdit)
- func (userDao *SysUserDao) UpdateUserAvatar(db dataUtil.DB, userId int64, avatar string)
- type SysUserPostDao
- type SysUserRoleDao
- func (sysUserRoleDao *SysUserRoleDao) BatchUserRole(db dataUtil.DB, users []*systemModels.SysUserRole)
- func (sysUserRoleDao *SysUserRoleDao) CountUserRoleByRoleId(db dataUtil.DB, ids []int64) int
- func (sysUserRoleDao *SysUserRoleDao) DeleteUserRole(db dataUtil.DB, ids []int64)
- func (sysUserRoleDao *SysUserRoleDao) DeleteUserRoleByUserId(db dataUtil.DB, userId int64)
- func (sysUserRoleDao *SysUserRoleDao) DeleteUserRoleInfo(db dataUtil.DB, userRole *systemModels.SysUserRole)
- func (sysUserRoleDao *SysUserRoleDao) DeleteUserRoleInfos(db dataUtil.DB, roleId int64, userIds []int64)
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) 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) 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 (*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 (*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)
Click to show internal directories.
Click to hide internal directories.