systemController

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type DeptController

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

func (*DeptController) DeptAdd

func (dc *DeptController) DeptAdd(c *gin.Context)

DeptAdd 添加部门 @Summary 添加部门 @Description 添加部门 @Tags 部门相关 @Param object body systemModels.SysDeptAdd true "公司信息" @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData "成功" @Router /system/dept [post]

func (*DeptController) DeptEdit

func (dc *DeptController) DeptEdit(c *gin.Context)

DeptEdit 修改部门 @Summary 修改部门 @Description 修改部门 @Tags 部门相关 @Param object body systemModels.SysDeptEdit true "公司信息" @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData "成功" @Router /system/dept [put]

func (*DeptController) DeptGetInfo

func (dc *DeptController) DeptGetInfo(c *gin.Context)

DeptGetInfo 根据用户ID获取用户信息 @Summary 根据用户ID获取用户信息 @Description 根据用户ID获取用户信息 @Tags 部门相关 @Param id path string true "deptId" @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData{data=systemModels.SysDeptVo} "成功" @Router /system/dept/{deptId} [get]

func (*DeptController) DeptList

func (dc *DeptController) DeptList(c *gin.Context)

DeptList 查询部门列表查询 @Summary 查询部门列表查询 @Description 查询部门列表查询 @Tags 部门相关 @Param object query systemModels.SysDeptDQL true "查询信息" @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData{data=commonModels.ListData{Rows=[]systemModels.SysDeptVo}} "成功" @Router /system/dept [get]

func (*DeptController) DeptRemove

func (dc *DeptController) DeptRemove(c *gin.Context)

DeptRemove 删除部门 @Summary 删除部门 @Description 删除部门 @Tags 部门相关 @Param id path string true "deptId" @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData "成功" @Router /system/dept/{deptId} [delete]

func (*DeptController) RoleDeptTreeSelect

func (dc *DeptController) RoleDeptTreeSelect(c *gin.Context)

RoleDeptTreeSelect 获取角色部门 @Summary 获取角色部门 @Description 获取角色部门 @Tags 部门相关 @Param id path string true "roleId" @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData{data=systemModels.RoleDeptTree} "成功" @Router /system/dept/roleDeptTreeSelect/{roleId} [get]

type DictDataController

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

func (*DictDataController) DictDataAdd

func (ddc *DictDataController) DictDataAdd(c *gin.Context)

func (*DictDataController) DictDataEdit

func (ddc *DictDataController) DictDataEdit(c *gin.Context)

func (*DictDataController) DictDataExport

func (ddc *DictDataController) DictDataExport(c *gin.Context)

func (*DictDataController) DictDataGetInfo

func (ddc *DictDataController) DictDataGetInfo(c *gin.Context)

func (*DictDataController) DictDataList

func (ddc *DictDataController) DictDataList(c *gin.Context)

func (*DictDataController) DictDataRemove

func (ddc *DictDataController) DictDataRemove(c *gin.Context)

func (*DictDataController) DictDataType

func (ddc *DictDataController) DictDataType(c *gin.Context)

type DictTypeController

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

func (*DictTypeController) DictTypeAdd

func (dtc *DictTypeController) DictTypeAdd(c *gin.Context)

func (*DictTypeController) DictTypeClearCache

func (dtc *DictTypeController) DictTypeClearCache(c *gin.Context)

func (*DictTypeController) DictTypeEdit

func (dtc *DictTypeController) DictTypeEdit(c *gin.Context)

func (*DictTypeController) DictTypeExport

func (dtc *DictTypeController) DictTypeExport(c *gin.Context)

func (*DictTypeController) DictTypeGetInfo

func (dtc *DictTypeController) DictTypeGetInfo(c *gin.Context)

func (*DictTypeController) DictTypeList

func (dtc *DictTypeController) DictTypeList(c *gin.Context)

func (*DictTypeController) DictTypeOptionselect

func (dtc *DictTypeController) DictTypeOptionselect(c *gin.Context)

func (*DictTypeController) DictTypeRemove

func (dtc *DictTypeController) DictTypeRemove(c *gin.Context)

type LoginController

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

func (*LoginController) GetCode

func (lc *LoginController) GetCode(c *gin.Context)

GetCode 获取验证码 @Summary 获取验证码 @Description 获取验证码 @Tags 登录 @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData "退出成功" @Router /logout [post]

func (*LoginController) GetInfo

func (lc *LoginController) GetInfo(c *gin.Context)

GetInfo 获取用户个人信息 @Summary 获取用户个人信息 @Description 获取用户个人信息 @Tags 登录 @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData{data=systemModels.GetInfo} "获取成功" @Router /getInfo [post]

func (*LoginController) Login

func (lc *LoginController) Login(c *gin.Context)

Login 用户登录 @Summary 用户登录 @Description 用户登录 @Tags 登录 @Param object body systemModels.LoginBody true "登录信息" @Produce application/json @Success 200 {object} commonModels.ResponseData "登录成功" @Failure 412 {object} commonModels.ResponseData "参数错误" @Failure 500 {object} commonModels.ResponseData "服务器错误" @Failure 601 {object} commonModels.ResponseData "用户名密码错误" @Router /login [post]

func (*LoginController) Logout

func (lc *LoginController) Logout(c *gin.Context)

Logout 退出 @Summary 退出 @Description 退出 @Tags 登录 @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData "退出成功" @Router /logout [post]

type PermissionController

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

func (*PermissionController) PermissionAdd

func (mc *PermissionController) PermissionAdd(c *gin.Context)

func (*PermissionController) PermissionEdit

func (mc *PermissionController) PermissionEdit(c *gin.Context)

func (*PermissionController) PermissionGetInfo

func (mc *PermissionController) PermissionGetInfo(c *gin.Context)

func (*PermissionController) PermissionList

func (mc *PermissionController) PermissionList(c *gin.Context)

func (*PermissionController) PermissionRemove

func (mc *PermissionController) PermissionRemove(c *gin.Context)

func (*PermissionController) PermissionTreeSelect

func (mc *PermissionController) PermissionTreeSelect(c *gin.Context)

func (*PermissionController) RolePermissionTreeselect

func (mc *PermissionController) RolePermissionTreeselect(c *gin.Context)

type PostController

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

func (*PostController) PostAdd

func (pc *PostController) PostAdd(c *gin.Context)

func (*PostController) PostEdit

func (pc *PostController) PostEdit(c *gin.Context)

func (*PostController) PostExport

func (pc *PostController) PostExport(c *gin.Context)

func (*PostController) PostGetInfo

func (pc *PostController) PostGetInfo(c *gin.Context)

func (*PostController) PostList

func (pc *PostController) PostList(c *gin.Context)

func (*PostController) PostRemove

func (pc *PostController) PostRemove(c *gin.Context)

type ProfileController

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

func (*ProfileController) Profile

func (pc *ProfileController) Profile(c *gin.Context)

func (*ProfileController) ProfileAvatar

func (pc *ProfileController) ProfileAvatar(c *gin.Context)

func (*ProfileController) ProfileUpdateProfile

func (pc *ProfileController) ProfileUpdateProfile(c *gin.Context)

func (*ProfileController) ProfileUpdatePwd

func (pc *ProfileController) ProfileUpdatePwd(c *gin.Context)

type RoleController

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

func (*RoleController) AllocatedList

func (rc *RoleController) AllocatedList(c *gin.Context)

func (*RoleController) CancelAuthUser

func (rc *RoleController) CancelAuthUser(c *gin.Context)

func (*RoleController) CancelAuthUserAll

func (rc *RoleController) CancelAuthUserAll(c *gin.Context)

func (*RoleController) InsertAuthUser

func (rc *RoleController) InsertAuthUser(c *gin.Context)

func (*RoleController) RoleAdd

func (rc *RoleController) RoleAdd(c *gin.Context)

func (*RoleController) RoleChangeStatus

func (rc *RoleController) RoleChangeStatus(c *gin.Context)

func (*RoleController) RoleDataScope

func (rc *RoleController) RoleDataScope(c *gin.Context)

func (*RoleController) RoleEdit

func (rc *RoleController) RoleEdit(c *gin.Context)

func (*RoleController) RoleExport

func (rc *RoleController) RoleExport(c *gin.Context)

func (*RoleController) RoleGetInfo

func (rc *RoleController) RoleGetInfo(c *gin.Context)

func (*RoleController) RoleList

func (rc *RoleController) RoleList(c *gin.Context)

func (*RoleController) RoleRemove

func (rc *RoleController) RoleRemove(c *gin.Context)

func (*RoleController) UnallocatedList

func (rc *RoleController) UnallocatedList(c *gin.Context)

type SystemController

type SystemController struct {
	DictData   *DictDataController
	DictType   *DictTypeController
	Login      *LoginController
	User       *UserController
	Dept       *DeptController
	Role       *RoleController
	Post       *PostController
	Permission *PermissionController
	Profile    *ProfileController
}

func NewTenantController

func NewTenantController(
	DictData *DictDataController,
	DictType *DictTypeController,
	Login *LoginController,
	User *UserController,
	Dept *DeptController,
	Role *RoleController,
	Post *PostController,
	Permission *PermissionController,
	Profile *ProfileController,
) *SystemController

type UserController

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

func (*UserController) ChangeStatus

func (uc *UserController) ChangeStatus(c *gin.Context)

ChangeStatus 修改用户状态 @Summary 修改用户状态 @Description 修改用户状态 @Tags 用户相关 @Param object body systemModels.EditUserStatus true "用户信息" @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData "成功" @Router /system/user/changeStatus [put]

func (*UserController) ImportTemplate

func (uc *UserController) ImportTemplate(c *gin.Context)

ImportTemplate 获取导入末班 @Summary 导出用户 @Description 导出用户 @Tags 系统用户 @Security BearerAuth @Produce application/json @Success 200 {object} []byte @Router /system/user/export [post]

func (*UserController) InsertAuthRole

func (uc *UserController) InsertAuthRole(c *gin.Context)

InsertAuthRole 授权角色 @Summary 授权角色 @Description 授权角色 @Tags 用户相关 @Param string query string true "角色id" @Param string query string true "用户id" @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData{data=commonModels.ListData{Rows=[]systemModels.SysUserVo}} "成功" @Router /system/user [put]

func (*UserController) ResetPwd

func (uc *UserController) ResetPwd(c *gin.Context)

ResetPwd 重置密码 @Summary 重置密码 @Description 重置密码 @Tags 用户相关 @Param object body systemModels.ResetPwd true "密码" @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData "成功" @Router /system/user/resetPwd [put]

func (*UserController) UserAdd

func (uc *UserController) UserAdd(c *gin.Context)

UserAdd 添加用户 @Summary 添加用户 @Description 添加用户 @Tags 用户相关 @Param object body systemModels.SysUserAdd true "用户信息" @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData "成功" @Router /system/user [post]

func (*UserController) UserAuthRole

func (uc *UserController) UserAuthRole(c *gin.Context)

UserAuthRole 根据用户编号获取授权角色 @Summary 根据用户编号获取授权角色 @Description 根据用户编号获取授权角色 @Tags 用户相关 @Param id path string true "userId" @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData{data=systemModels.Auth} "成功" @Router /system/user/authRole/{userId} [get]

func (*UserController) UserEdit

func (uc *UserController) UserEdit(c *gin.Context)

UserEdit 修改用户 @Summary 修改用户 @Description 修改用户 @Tags 用户相关 @Param object body systemModels.SysUserEdit true "用户信息" @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData "成功" @Router /system/user [put]

func (*UserController) UserExport

func (uc *UserController) UserExport(c *gin.Context)

UserExport 导出用户 @Summary 导出用户 @Description 导出用户 @Tags 系统用户 @Param object query systemModels.SysUserDQL true "查询信息" @Security BearerAuth @Produce application/json @Success 200 {object} []byte @Router /system/user/export [post]

func (*UserController) UserGetInfo

func (uc *UserController) UserGetInfo(c *gin.Context)

UserGetInfo 获取当前用户信息 @Summary 获取当前用户信息 @Description 获取当前用户信息 @Tags 用户相关 @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData{data=systemModels.UserInfo} "成功" @Router /system/user/ [get]

func (*UserController) UserGetInfoById

func (uc *UserController) UserGetInfoById(c *gin.Context)

UserGetInfoById 根据用户ID获取用户信息 @Summary 根据用户ID获取用户信息 @Description 根据用户ID获取用户信息 @Tags 用户相关 @Param id path string true "userId" @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData{data=systemModels.Auth} "成功" @Router /system/user/{userId} [get]

func (*UserController) UserImportData

func (uc *UserController) UserImportData(c *gin.Context)

UserImportData 导入用户 @Summary 导入用户 @Description 导入用户 @Tags 系统用户 @Param file formData file true "file" @Accept multipart/form-data @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData @Router /system/user/importData [post]

func (*UserController) UserList

func (uc *UserController) UserList(c *gin.Context)

UserList 查询用户列表 @Summary 查询用户列表 @Description 查询用户列表 @Tags 用户相关 @Param object query systemModels.SysUserDQL true "查询信息" @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData{data=commonModels.ListData{Rows=[]systemModels.SysUserVo}} "成功" @Router /system/user [get]

func (*UserController) UserRemove

func (uc *UserController) UserRemove(c *gin.Context)

UserRemove 删除用户 @Summary 删除用户 @Description 删除用户 @Tags 系统用户 @Param userIds path []string true "userIds" @Security BearerAuth @Produce application/json @Success 200 {object} commonModels.ResponseData @Router /system/user/{userIds} [delete]

Jump to

Keyboard shortcuts

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