service

package
v0.0.0-...-d3539a1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SysApi

type SysApi struct {
	service.Service
}

func (*SysApi) CheckStorageSysApi

func (e *SysApi) CheckStorageSysApi(c *[]runtime.Router) error

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

Remove 删除SysApi

func (*SysApi) Update

Update 修改SysApi对象

type SysConfig

type SysConfig struct {
	service.Service
}

func (*SysConfig) Get

func (e *SysConfig) Get(d *dto.SysConfigGetReq, model *models.SysConfig) error

Get 获取SysConfig对象

func (*SysConfig) GetForSet

func (e *SysConfig) GetForSet(c *[]dto.GetSetSysConfigReq) error

func (*SysConfig) GetPage

func (e *SysConfig) GetPage(c *dto.SysConfigGetPageReq, list *[]models.SysConfig, count *int64) error

GetPage 获取SysConfig列表

func (*SysConfig) GetWithKey

GetWithKey 根据Key获取SysConfig

func (*SysConfig) GetWithKeyList

func (e *SysConfig) GetWithKeyList(c *dto.SysConfigGetToSysAppReq, list *[]models.SysConfig) error

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

type SysDept struct {
	service.Service
}

func (*SysDept) Get

func (e *SysDept) Get(d *dto.SysDeptGetReq, model *models.SysDept) error

Get 获取SysDept对象

func (*SysDept) GetWithRoleId

func (e *SysDept) GetWithRoleId(roleId int) ([]int, error)

GetWithRoleId 获取角色的部门ID集合

func (*SysDept) Insert

func (e *SysDept) Insert(c *dto.SysDeptInsertReq) error

Insert 创建SysDept对象

func (*SysDept) Remove

func (e *SysDept) Remove(d *dto.SysDeptDeleteReq) error

Remove 删除SysDept

func (*SysDept) SetDeptLabel

func (e *SysDept) SetDeptLabel() (m []dto.DeptLabel, err error)

func (*SysDept) SetDeptPage

func (e *SysDept) SetDeptPage(c *dto.SysDeptGetPageReq) (m []models.SysDept, err error)

SetDeptPage 设置dept页面数据

func (*SysDept) SetDeptTree

func (e *SysDept) SetDeptTree(c *dto.SysDeptGetPageReq) (m []dto.DeptLabel, err error)

SetDeptTree 设置组织数据

func (*SysDept) Update

func (e *SysDept) Update(c *dto.SysDeptUpdateReq) error

Update 修改SysDept对象

type SysDictData

type SysDictData struct {
	service.Service
}

func (*SysDictData) Get

Get 获取对象

func (*SysDictData) GetAll

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

type SysDictType struct {
	service.Service
}

func (*SysDictType) Get

Get 获取对象

func (*SysDictType) GetAll

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

type SysLoginLog struct {
	service.Service
}

func (*SysLoginLog) Get

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

type SysMenu struct {
	service.Service
}

func (*SysMenu) Get

func (e *SysMenu) Get(d *dto.SysMenuGetReq, model *models.SysMenu) *SysMenu

Get 获取SysMenu对象

func (*SysMenu) GetList

func (e *SysMenu) GetList(c *dto.SysMenuGetPageReq, list *[]models.SysMenu) error

GetList 获取菜单数据

func (*SysMenu) GetPage

func (e *SysMenu) GetPage(c *dto.SysMenuGetPageReq, menus *[]models.SysMenu) *SysMenu

GetPage 获取SysMenu列表

func (*SysMenu) GetSysMenuByRoleName

func (e *SysMenu) GetSysMenuByRoleName(roleName ...string) ([]models.SysMenu, error)

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) SetLabel

func (e *SysMenu) SetLabel() (m []dto.MenuLabel, err error)

SetLabel 修改角色中 设置菜单基础数据

func (*SysMenu) SetMenuRole

func (e *SysMenu) SetMenuRole(roleName string) (m []models.SysMenu, err error)

SetMenuRole 获取左侧菜单树使用

func (*SysMenu) Update

func (e *SysMenu) Update(c *dto.SysMenuUpdateReq) *SysMenu

Update 修改SysMenu对象

type SysOperaLog

type SysOperaLog struct {
	service.Service
}

func (*SysOperaLog) Get

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 SysPost

type SysPost struct {
	service.Service
}

func (*SysPost) Get

func (e *SysPost) Get(d *dto.SysPostGetReq, model *models.SysPost) error

Get 获取SysPost对象

func (*SysPost) GetPage

func (e *SysPost) GetPage(c *dto.SysPostPageReq, list *[]models.SysPost, count *int64) error

GetPage 获取SysPost列表

func (*SysPost) Insert

func (e *SysPost) Insert(c *dto.SysPostInsertReq) error

Insert 创建SysPost对象

func (*SysPost) Remove

func (e *SysPost) Remove(d *dto.SysPostDeleteReq) error

Remove 删除SysPost

func (*SysPost) Update

func (e *SysPost) Update(c *dto.SysPostUpdateReq) error

Update 修改SysPost对象

type SysRole

type SysRole struct {
	service.Service
}

func (*SysRole) Get

func (e *SysRole) Get(d *dto.SysRoleGetReq, model *models.SysRole) error

Get 获取SysRole对象

func (*SysRole) GetById

func (e *SysRole) GetById(roleId int) ([]string, error)

GetById 获取SysRole对象

func (*SysRole) GetPage

func (e *SysRole) GetPage(c *dto.SysRoleGetPageReq, list *[]models.SysRole, count *int64) error

GetPage 获取SysRole列表

func (*SysRole) GetRoleMenuId

func (e *SysRole) GetRoleMenuId(roleId int) ([]int, error)

GetRoleMenuId 获取角色对应的菜单ids

func (*SysRole) GetWithName

func (e *SysRole) GetWithName(d *dto.SysRoleByName, model *models.SysRole) *SysRole

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 SysRoleMenu

type SysRoleMenu struct {
	service.Service
}

SysRoleMenu 即将弃用结构体

type SysUser

type SysUser struct {
	service.Service
}

func (*SysUser) Get

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 (e *SysUser) GetProfile(c *dto.SysUserById, user *models.SysUser, roles *[]models.SysRole, posts *[]models.SysPost) error

func (*SysUser) Insert

func (e *SysUser) Insert(c *dto.SysUserInsertReq) error

Insert 创建SysUser对象

func (*SysUser) Remove

func (e *SysUser) Remove(c *dto.SysUserById, p *actions.DataPermission) error

Remove 删除SysUser

func (*SysUser) ResetPwd

ResetPwd 重置用户密码

func (*SysUser) Update

Update 修改SysUser对象

func (*SysUser) UpdateAvatar

UpdateAvatar 更新用户头像

func (*SysUser) UpdatePwd

func (e *SysUser) UpdatePwd(id int, oldPassword, newPassword string, p *actions.DataPermission) error

UpdatePwd 修改SysUser对象密码

func (*SysUser) UpdateStatus

UpdateStatus 更新用户状态

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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