Documentation ¶
Index ¶
- type SysApi
- func (e *SysApi) CheckStorageSysApi(c *[]runtime.Router) error
- func (e *SysApi) Get(d *dto.SysApiGetReq, p *actions.DataPermission, model *models.SysApi) *SysApi
- func (e *SysApi) GetPage(c *dto.SysApiGetPageReq, p *actions.DataPermission, list *[]models.SysApi, ...) error
- func (e *SysApi) Remove(d *dto.SysApiDeleteReq, p *actions.DataPermission) error
- func (e *SysApi) Update(c *dto.SysApiUpdateReq, p *actions.DataPermission) error
- type SysConfig
- func (e *SysConfig) Get(d *dto.SysConfigGetReq, model *models.SysConfig) error
- func (e *SysConfig) GetForSet(c *[]dto.GetSetSysConfigReq) error
- func (e *SysConfig) GetPage(c *dto.SysConfigGetPageReq, list *[]models.SysConfig, count *int64) error
- func (e *SysConfig) GetWithKey(c *dto.SysConfigByKeyReq, resp *dto.GetSysConfigByKEYForServiceResp) error
- func (e *SysConfig) GetWithKeyList(c *dto.SysConfigGetToSysAppReq, list *[]models.SysConfig) error
- func (e *SysConfig) Insert(c *dto.SysConfigControl) error
- func (e *SysConfig) Remove(d *dto.SysConfigDeleteReq) error
- func (e *SysConfig) SetSysConfig(c *[]dto.GetSetSysConfigReq) error
- func (e *SysConfig) Update(c *dto.SysConfigControl) error
- func (e *SysConfig) UpdateForSet(c *[]dto.GetSetSysConfigReq) error
- type SysDept
- func (e *SysDept) Get(d *dto.SysDeptGetReq, model *models.SysDept) error
- func (e *SysDept) GetWithRoleId(roleId int) ([]int, error)
- func (e *SysDept) Insert(c *dto.SysDeptInsertReq) error
- func (e *SysDept) Remove(d *dto.SysDeptDeleteReq) error
- func (e *SysDept) SetDeptLabel() (m []dto.DeptLabel, err error)
- func (e *SysDept) SetDeptPage(c *dto.SysDeptGetPageReq) (m []models.SysDept, err error)
- func (e *SysDept) SetDeptTree(c *dto.SysDeptGetPageReq) (m []dto.DeptLabel, err error)
- func (e *SysDept) Update(c *dto.SysDeptUpdateReq) error
- type SysDictData
- func (e *SysDictData) Get(d *dto.SysDictDataGetReq, model *models.SysDictData) error
- func (e *SysDictData) GetAll(c *dto.SysDictDataGetPageReq, list *[]models.SysDictData) error
- func (e *SysDictData) GetPage(c *dto.SysDictDataGetPageReq, list *[]models.SysDictData, count *int64) error
- func (e *SysDictData) Insert(c *dto.SysDictDataInsertReq) error
- func (e *SysDictData) Remove(c *dto.SysDictDataDeleteReq) error
- func (e *SysDictData) Update(c *dto.SysDictDataUpdateReq) error
- type SysDictType
- func (e *SysDictType) Get(d *dto.SysDictTypeGetReq, model *models.SysDictType) error
- func (e *SysDictType) GetAll(c *dto.SysDictTypeGetPageReq, list *[]models.SysDictType) error
- func (e *SysDictType) GetPage(c *dto.SysDictTypeGetPageReq, list *[]models.SysDictType, count *int64) error
- func (e *SysDictType) Insert(c *dto.SysDictTypeInsertReq) error
- func (e *SysDictType) Remove(d *dto.SysDictTypeDeleteReq) error
- func (e *SysDictType) Update(c *dto.SysDictTypeUpdateReq) error
- type SysLoginLog
- type SysMenu
- func (e *SysMenu) Get(d *dto.SysMenuGetReq, model *models.SysMenu) *SysMenu
- func (e *SysMenu) GetList(c *dto.SysMenuGetPageReq, list *[]models.SysMenu) error
- func (e *SysMenu) GetPage(c *dto.SysMenuGetPageReq, menus *[]models.SysMenu) *SysMenu
- func (e *SysMenu) GetSysMenuByRoleName(roleName ...string) ([]models.SysMenu, error)
- func (e *SysMenu) Insert(c *dto.SysMenuInsertReq) *SysMenu
- func (e *SysMenu) Remove(d *dto.SysMenuDeleteReq) *SysMenu
- func (e *SysMenu) SetLabel() (m []dto.MenuLabel, err error)
- func (e *SysMenu) SetMenuRole(roleName string) (m []models.SysMenu, err error)
- func (e *SysMenu) Update(c *dto.SysMenuUpdateReq) *SysMenu
- type SysOperaLog
- func (e *SysOperaLog) Get(d *dto.SysOperaLogGetReq, model *models.SysOperaLog) error
- func (e *SysOperaLog) GetPage(c *dto.SysOperaLogGetPageReq, list *[]models.SysOperaLog, count *int64) error
- func (e *SysOperaLog) Insert(model *models.SysOperaLog) error
- func (e *SysOperaLog) Remove(d *dto.SysOperaLogDeleteReq) error
- type SysPost
- func (e *SysPost) Get(d *dto.SysPostGetReq, model *models.SysPost) error
- func (e *SysPost) GetPage(c *dto.SysPostPageReq, list *[]models.SysPost, count *int64) error
- func (e *SysPost) Insert(c *dto.SysPostInsertReq) error
- func (e *SysPost) Remove(d *dto.SysPostDeleteReq) error
- func (e *SysPost) Update(c *dto.SysPostUpdateReq) error
- type SysRole
- func (e *SysRole) Get(d *dto.SysRoleGetReq, model *models.SysRole) error
- func (e *SysRole) GetById(roleId int) ([]string, error)
- func (e *SysRole) GetPage(c *dto.SysRoleGetPageReq, list *[]models.SysRole, count *int64) error
- func (e *SysRole) GetRoleMenuId(roleId int) ([]int, error)
- func (e *SysRole) GetWithName(d *dto.SysRoleByName, model *models.SysRole) *SysRole
- func (e *SysRole) Insert(c *dto.SysRoleInsertReq, cb *casbin.SyncedEnforcer) error
- func (e *SysRole) Remove(c *dto.SysRoleDeleteReq, cb *casbin.SyncedEnforcer) error
- func (e *SysRole) Update(c *dto.SysRoleUpdateReq, cb *casbin.SyncedEnforcer) error
- func (e *SysRole) UpdateDataScope(c *dto.RoleDataScopeReq) *SysRole
- func (e *SysRole) UpdateStatus(c *dto.UpdateStatusReq) error
- type SysRoleMenu
- type SysUser
- func (e *SysUser) Get(d *dto.SysUserById, p *actions.DataPermission, model *models.SysUser) error
- func (e *SysUser) GetPage(c *dto.SysUserGetPageReq, p *actions.DataPermission, list *[]models.SysUser, ...) error
- func (e *SysUser) GetProfile(c *dto.SysUserById, user *models.SysUser, roles *[]models.SysRole, ...) error
- func (e *SysUser) Insert(c *dto.SysUserInsertReq) error
- func (e *SysUser) Remove(c *dto.SysUserById, p *actions.DataPermission) error
- func (e *SysUser) ResetPwd(c *dto.ResetSysUserPwdReq, p *actions.DataPermission) error
- func (e *SysUser) Update(c *dto.SysUserUpdateReq, p *actions.DataPermission) error
- func (e *SysUser) UpdateAvatar(c *dto.UpdateSysUserAvatarReq, p *actions.DataPermission) error
- func (e *SysUser) UpdatePwd(id int, oldPassword, newPassword string, p *actions.DataPermission) error
- func (e *SysUser) UpdateStatus(c *dto.UpdateSysUserStatusReq, p *actions.DataPermission) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SysApi ¶
func (*SysApi) CheckStorageSysApi ¶
CheckStorageSysApi 创建SysApi对象
func (*SysApi) Get ¶
func (e *SysApi) Get(d *dto.SysApiGetReq, p *actions.DataPermission, model *models.SysApi) *SysApi
Get 获取SysApi对象with id
func (*SysApi) GetPage ¶
func (e *SysApi) GetPage(c *dto.SysApiGetPageReq, p *actions.DataPermission, list *[]models.SysApi, count *int64) error
GetPage 获取SysApi列表
func (*SysApi) Remove ¶
func (e *SysApi) Remove(d *dto.SysApiDeleteReq, p *actions.DataPermission) error
Remove 删除SysApi
func (*SysApi) Update ¶
func (e *SysApi) Update(c *dto.SysApiUpdateReq, p *actions.DataPermission) error
Update 修改SysApi对象
type SysConfig ¶
func (*SysConfig) GetPage ¶
func (e *SysConfig) GetPage(c *dto.SysConfigGetPageReq, list *[]models.SysConfig, count *int64) error
GetPage 获取SysConfig列表
func (*SysConfig) GetWithKey ¶
func (e *SysConfig) GetWithKey(c *dto.SysConfigByKeyReq, resp *dto.GetSysConfigByKEYForServiceResp) error
GetWithKey 根据Key获取SysConfig
func (*SysConfig) GetWithKeyList ¶
func (*SysConfig) Insert ¶
func (e *SysConfig) Insert(c *dto.SysConfigControl) error
Insert 创建SysConfig对象
func (*SysConfig) Remove ¶
func (e *SysConfig) Remove(d *dto.SysConfigDeleteReq) error
Remove 删除SysConfig
func (*SysConfig) SetSysConfig ¶
func (e *SysConfig) SetSysConfig(c *[]dto.GetSetSysConfigReq) error
SetSysConfig 修改SysConfig对象
func (*SysConfig) Update ¶
func (e *SysConfig) Update(c *dto.SysConfigControl) error
Update 修改SysConfig对象
func (*SysConfig) UpdateForSet ¶
func (e *SysConfig) UpdateForSet(c *[]dto.GetSetSysConfigReq) error
type SysDept ¶
func (*SysDept) GetWithRoleId ¶
GetWithRoleId 获取角色的部门ID集合
func (*SysDept) SetDeptPage ¶
SetDeptPage 设置dept页面数据
func (*SysDept) SetDeptTree ¶
SetDeptTree 设置组织数据
type SysDictData ¶
func (*SysDictData) Get ¶
func (e *SysDictData) Get(d *dto.SysDictDataGetReq, model *models.SysDictData) error
Get 获取对象
func (*SysDictData) GetAll ¶
func (e *SysDictData) GetAll(c *dto.SysDictDataGetPageReq, list *[]models.SysDictData) error
GetAll 获取所有
func (*SysDictData) GetPage ¶
func (e *SysDictData) GetPage(c *dto.SysDictDataGetPageReq, list *[]models.SysDictData, count *int64) error
GetPage 获取列表
func (*SysDictData) Insert ¶
func (e *SysDictData) Insert(c *dto.SysDictDataInsertReq) error
Insert 创建对象
func (*SysDictData) Remove ¶
func (e *SysDictData) Remove(c *dto.SysDictDataDeleteReq) error
Remove 删除
func (*SysDictData) Update ¶
func (e *SysDictData) Update(c *dto.SysDictDataUpdateReq) error
Update 修改对象
type SysDictType ¶
func (*SysDictType) Get ¶
func (e *SysDictType) Get(d *dto.SysDictTypeGetReq, model *models.SysDictType) error
Get 获取对象
func (*SysDictType) GetAll ¶
func (e *SysDictType) GetAll(c *dto.SysDictTypeGetPageReq, list *[]models.SysDictType) error
GetAll 获取所有
func (*SysDictType) GetPage ¶
func (e *SysDictType) GetPage(c *dto.SysDictTypeGetPageReq, list *[]models.SysDictType, count *int64) error
GetPage 获取列表
func (*SysDictType) Insert ¶
func (e *SysDictType) Insert(c *dto.SysDictTypeInsertReq) error
Insert 创建对象
func (*SysDictType) Remove ¶
func (e *SysDictType) Remove(d *dto.SysDictTypeDeleteReq) error
Remove 删除
func (*SysDictType) Update ¶
func (e *SysDictType) Update(c *dto.SysDictTypeUpdateReq) error
Update 修改对象
type SysLoginLog ¶
func (*SysLoginLog) Get ¶
func (e *SysLoginLog) Get(d *dto.SysLoginLogGetReq, model *models.SysLoginLog) error
Get 获取SysLoginLog对象
func (*SysLoginLog) GetPage ¶
func (e *SysLoginLog) GetPage(c *dto.SysLoginLogGetPageReq, list *[]models.SysLoginLog, count *int64) error
GetPage 获取SysLoginLog列表
func (*SysLoginLog) Remove ¶
func (e *SysLoginLog) Remove(c *dto.SysLoginLogDeleteReq) error
Remove 删除SysLoginLog
type SysMenu ¶
func (*SysMenu) GetSysMenuByRoleName ¶
GetSysMenuByRoleName 左侧菜单
func (*SysMenu) Insert ¶
func (e *SysMenu) Insert(c *dto.SysMenuInsertReq) *SysMenu
Insert 创建SysMenu对象
func (*SysMenu) Remove ¶
func (e *SysMenu) Remove(d *dto.SysMenuDeleteReq) *SysMenu
Remove 删除SysMenu
func (*SysMenu) SetMenuRole ¶
SetMenuRole 获取左侧菜单树使用
type SysOperaLog ¶
func (*SysOperaLog) Get ¶
func (e *SysOperaLog) Get(d *dto.SysOperaLogGetReq, model *models.SysOperaLog) error
Get 获取SysOperaLog对象
func (*SysOperaLog) GetPage ¶
func (e *SysOperaLog) GetPage(c *dto.SysOperaLogGetPageReq, list *[]models.SysOperaLog, count *int64) error
GetPage 获取SysOperaLog列表
func (*SysOperaLog) Insert ¶
func (e *SysOperaLog) Insert(model *models.SysOperaLog) error
Insert 创建SysOperaLog对象
func (*SysOperaLog) Remove ¶
func (e *SysOperaLog) Remove(d *dto.SysOperaLogDeleteReq) error
Remove 删除SysOperaLog
type SysRole ¶
func (*SysRole) GetRoleMenuId ¶
GetRoleMenuId 获取角色对应的菜单ids
func (*SysRole) GetWithName ¶
GetWithName 获取SysRole对象
func (*SysRole) Insert ¶
func (e *SysRole) Insert(c *dto.SysRoleInsertReq, cb *casbin.SyncedEnforcer) error
Insert 创建SysRole对象
func (*SysRole) Remove ¶
func (e *SysRole) Remove(c *dto.SysRoleDeleteReq, cb *casbin.SyncedEnforcer) error
Remove 删除SysRole
func (*SysRole) Update ¶
func (e *SysRole) Update(c *dto.SysRoleUpdateReq, cb *casbin.SyncedEnforcer) error
Update 修改SysRole对象
func (*SysRole) UpdateDataScope ¶
func (e *SysRole) UpdateDataScope(c *dto.RoleDataScopeReq) *SysRole
func (*SysRole) UpdateStatus ¶
func (e *SysRole) UpdateStatus(c *dto.UpdateStatusReq) error
UpdateStatus 修改SysRole对象status
type SysUser ¶
func (*SysUser) Get ¶
func (e *SysUser) Get(d *dto.SysUserById, p *actions.DataPermission, model *models.SysUser) error
Get 获取SysUser对象
func (*SysUser) GetPage ¶
func (e *SysUser) GetPage(c *dto.SysUserGetPageReq, p *actions.DataPermission, list *[]models.SysUser, count *int64) error
GetPage 获取SysUser列表
func (*SysUser) GetProfile ¶
func (*SysUser) Remove ¶
func (e *SysUser) Remove(c *dto.SysUserById, p *actions.DataPermission) error
Remove 删除SysUser
func (*SysUser) ResetPwd ¶
func (e *SysUser) ResetPwd(c *dto.ResetSysUserPwdReq, p *actions.DataPermission) error
ResetPwd 重置用户密码
func (*SysUser) Update ¶
func (e *SysUser) Update(c *dto.SysUserUpdateReq, p *actions.DataPermission) error
Update 修改SysUser对象
func (*SysUser) UpdateAvatar ¶
func (e *SysUser) UpdateAvatar(c *dto.UpdateSysUserAvatarReq, p *actions.DataPermission) error
UpdateAvatar 更新用户头像
func (*SysUser) UpdatePwd ¶
func (e *SysUser) UpdatePwd(id int, oldPassword, newPassword string, p *actions.DataPermission) error
UpdatePwd 修改SysUser对象密码
func (*SysUser) UpdateStatus ¶
func (e *SysUser) UpdateStatus(c *dto.UpdateSysUserStatusReq, p *actions.DataPermission) error
UpdateStatus 更新用户状态