system

package
v0.0.0-...-01c5a3f Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiApi

type ApiApi struct{}

func (*ApiApi) CreateApi

func (a *ApiApi) CreateApi(c *gin.Context)

@Tags Api接口 @Summary 新增Api @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.Api true "请求" @Success 200 {object} response.Response{data=system.Api} "响应" @Router /api/createApi [post]

func (*ApiApi) DeleteApis

func (a *ApiApi) DeleteApis(c *gin.Context)

@Tags Api接口 @Summary 删除Api @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.IdsRequest true "请求" @Success 200 {object} response.Response "响应" @Router /api/deleteApis [delete]

func (*ApiApi) GetAllApis

func (a *ApiApi) GetAllApis(c *gin.Context)

@Tags Api接口 @Summary 查询全部Api列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query system.ApiRequest true "请求" @Success 200 {object} response.Response{data=[]system.Api} "响应" @Router /api/getAllApis [get]

func (*ApiApi) GetApi

func (a *ApiApi) GetApi(c *gin.Context)

@Tags Api接口 @Summary 查询Api @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdRequest true "请求" @Success 200 {object} response.Response{data=system.Api} "响应" @Router /api/getApi [get]

func (*ApiApi) GetApis

func (a *ApiApi) GetApis(c *gin.Context)

@Tags Api接口 @Summary 查询Api列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query system.ApiRequest true "请求" @Success 200 {object} response.Response{data=response.ListData{list=[]system.Api}} "响应" @Router /api/getApis [get]

func (*ApiApi) GetApisByRoleId

func (a *ApiApi) GetApisByRoleId(c *gin.Context)

@Tags Api接口 @Summary 根据角色Id查询Api列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdRequest true "请求" @Success 200 {object} response.Response{data=[]system.Api} "响应" @Router /api/getApisByRoleId [get]

func (*ApiApi) GetApisByUserId

func (a *ApiApi) GetApisByUserId(c *gin.Context)

@Tags Api接口 @Summary 根据用户Id查询Api列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdRequest true "请求" @Success 200 {object} response.Response{data=[]system.Api} "响应" @Router /api/getApisByUserId [get]

func (*ApiApi) SwitchApis

func (a *ApiApi) SwitchApis(c *gin.Context)

@Tags Api接口 @Summary 开关Api @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.SwitchRequest true "请求" @Success 200 {object} response.Response "响应" @Router /api/switchApis [put]

func (*ApiApi) UpdateApi

func (a *ApiApi) UpdateApi(c *gin.Context)

@Tags Api接口 @Summary 修改Api @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.Api true "请求" @Success 200 {object} response.Response{data=system.Api} "响应" @Router /api/updateApi [put]

type ApiGroup

type ApiGroup struct {
	BaseApi
	DictionaryApi
	MenuApi
	ApiApi
	RoleApi
	UserApi
}

type BaseApi

type BaseApi struct{}

func (*BaseApi) GetAllPendings

func (a *BaseApi) GetAllPendings(c *gin.Context)

@Tags Base基础 @Summary 查询待办事项列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Success 200 {object} response.Response{data=[]PendingItem} "响应" @Router /getAllPendings [get]

func (*BaseApi) GetCaptcha

func (a *BaseApi) GetCaptcha(c *gin.Context)

@Tags Base基础 @Summary 查询验证码 @accept application/json @Produce application/json @Success 200 {object} response.Response{data=util.Captcha} "响应" @Router /getCaptcha [get]

type DictionaryApi

type DictionaryApi struct{}

func (*DictionaryApi) CreateDictionary

func (a *DictionaryApi) CreateDictionary(c *gin.Context)

@Tags Dictionary字典 @Summary 新增字典 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.Dictionary true "请求" @Success 200 {object} response.Response{data=system.Dictionary} "响应" @Router /dictionary/createDictionary [post]

func (*DictionaryApi) DeleteDictionarys

func (a *DictionaryApi) DeleteDictionarys(c *gin.Context)

@Tags Dictionary字典 @Summary 删除字典 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.IdRequest true "请求" @Success 200 {object} response.Response "响应" @Router /dictionary/deleteDictionarys [delete]

func (*DictionaryApi) GetAllDictionarys

func (a *DictionaryApi) GetAllDictionarys(c *gin.Context)

@Tags Dictionary字典 @Summary 查询全部字典列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query system.DictionaryRequest true "请求" @Success 200 {object} response.Response{data=[]system.Dictionary} "响应" @Router /dictionary/getAllDictionarys [get]

func (*DictionaryApi) GetDictionary

func (a *DictionaryApi) GetDictionary(c *gin.Context)

@Tags Dictionary字典 @Summary 查询字典 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdRequest true "请求" @Success 200 {object} response.Response{data=system.Dictionary} "响应" @Router /dictionary/getDictionary [get]

func (*DictionaryApi) GetDictionarys

func (a *DictionaryApi) GetDictionarys(c *gin.Context)

@Tags Dictionary字典 @Summary 查询字典列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query system.DictionaryRequest true "请求" @Success 200 {object} response.Response{data=response.ListData{list=[]system.Dictionary}} "响应" @Router /dictionary/getDictionarys [get]

func (*DictionaryApi) SwitchDictionarys

func (a *DictionaryApi) SwitchDictionarys(c *gin.Context)

@Tags Dictionary字典 @Summary 开关字典 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.SwitchRequest true "请求" @Success 200 {object} response.Response "响应" @Router /dictionary/switchDictionarys [put]

func (*DictionaryApi) UpdateDictionary

func (a *DictionaryApi) UpdateDictionary(c *gin.Context)

@Tags Dictionary字典 @Summary 修改字典 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.Dictionary true "请求" @Success 200 {object} response.Response{data=system.Dictionary} "响应" @Router /dictionary/updateDictionary [put]

type MenuApi struct{}
func (a *MenuApi) CreateMenu(c *gin.Context)

@Tags Menu菜单 @Summary 新增菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.Menu true "请求" @Success 200 {object} response.Response{data=system.Menu} "响应" @Router /menu/createMenu [post]

func (a *MenuApi) DeleteMenus(c *gin.Context)

@Tags Menu菜单 @Summary 删除菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.IdsRequest true "请求" @Success 200 {object} response.Response "响应" @Router /menu/deleteMenus [delete]

func (a *MenuApi) GetAllMenus(c *gin.Context)

@Tags Menu菜单 @Summary 查询全部菜单列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query system.MenuRequest true "请求" @Success 200 {object} response.Response{data=[]system.Menu} "响应" @Router /menu/getAllMenus [get]

func (a *MenuApi) GetMenu(c *gin.Context)

GetMenu @Tags Menu菜单 @Summary 查询菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdRequest true "请求" @Success 200 {object} response.Response{data=system.Menu} "响应" @Router /menu/getMenu [get]

func (a *MenuApi) GetMenus(c *gin.Context)

GetMenus @Tags Menu菜单 @Summary 查询菜单列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query system.MenuRequest true "请求" @Success 200 {object} response.Response{data=response.ListData{list=[]system.Menu}} "响应" @Router /menu/getMenus [get]

func (a *MenuApi) GetMenusByRoleIds(c *gin.Context)

@Tags Menu菜单 @Summary 根据角色Id列表查询菜单列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdsRequest true "请求" @Success 200 {object} response.Response{data=[]system.Menu} "响应" @Router /menu/getMenusByRoleIds [get]

func (a *MenuApi) GetMenusByUserId(c *gin.Context)

@Tags Menu菜单 @Summary 根据用户Id查询菜单列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdRequest true "请求" @Success 200 {object} response.Response{data=[]system.Menu} "响应" @Router /menu/getMenusByUserId [get]

func (a *MenuApi) SwitchMenus(c *gin.Context)

@Tags Menu菜单 @Summary 开关菜单列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.SwitchRequest true "请求" @Success 200 {object} response.Response "响应" @Router /menu/switchMenus [put]

func (a *MenuApi) UpdateMenu(c *gin.Context)

@Tags Menu菜单 @Summary 修改菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.Menu true "请求" @Success 200 {object} response.Response{data=system.Menu} "响应" @Router /menu/updateMenu [put]

type PendingItem

type PendingItem struct {
	MenuName     string `json:"menuName"`     //菜单名称
	PendingCount int64  `json:"pendingCount"` //代办数量
}

type RoleApi

type RoleApi struct{}

func (*RoleApi) CreateRole

func (a *RoleApi) CreateRole(c *gin.Context)

@Tags Role角色 @Summary 新增角色 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.Role true "请求" @Success 200 {object} response.Response{data=system.Role} "响应" @Router /role/createRole [post]

func (*RoleApi) DeleteRoles

func (a *RoleApi) DeleteRoles(c *gin.Context)

@Tags Role角色 @Summary 删除角色 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.IdsRequest true "请求" @Success 200 {object} response.Response "响应" @Router /role/deleteRoles [delete]

func (*RoleApi) GetAllRoles

func (a *RoleApi) GetAllRoles(c *gin.Context)

@Tags Role角色 @Summary 查询全部角色列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query system.RoleRequest true "请求" @Success 200 {object} response.Response{data=[]system.Role} "响应" @Router /role/getAllRoles [get]

func (*RoleApi) GetRole

func (a *RoleApi) GetRole(c *gin.Context)

@Tags Role角色 @Summary 查询角色 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdRequest true "请求" @Success 200 {object} response.Response{data=system.Role} "响应" @Router /role/getRole [get]

func (*RoleApi) GetRoles

func (a *RoleApi) GetRoles(c *gin.Context)

@Tags Role角色 @Summary 查询角色列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query system.RoleRequest true "请求" @Success 200 {object} response.Response{data=response.ListData{list=[]system.Role}} "响应" @Router /role/getRoles [get]

func (*RoleApi) SwitchRoles

func (a *RoleApi) SwitchRoles(c *gin.Context)

@Tags Role角色 @Summary 开关角色列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.SwitchRequest true "请求" @Success 200 {object} response.Response "响应" @Router /role/switchRoles [put]

func (*RoleApi) UpdateRole

func (a *RoleApi) UpdateRole(c *gin.Context)

@Tags Role角色 @Summary 修改角色 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.Role true "请求" @Success 200 {object} response.Response{data=system.Role} "响应" @Router /role/updateRole [put]

func (*RoleApi) UpdateRoleApis

func (a *RoleApi) UpdateRoleApis(c *gin.Context)

@Tags Role角色 @Summary 修改角色权限Api @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.Role true "请求" @Success 200 {object} response.Response{data=system.Role} "响应" @Router /role/updateRoleApis [post]

func (*RoleApi) UpdateRoleMenus

func (a *RoleApi) UpdateRoleMenus(c *gin.Context)

@Tags Role角色 @Summary 修改角色权限菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.Role true "请求" @Success 200 {object} response.Response{} "响应" @Router /role/updateRoleMenus [post]

type UserApi

type UserApi struct{}

func (*UserApi) CreateUser

func (a *UserApi) CreateUser(c *gin.Context)

@Tags User用户 @Summary 新增用户 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.User true "请求" @Success 200 {object} response.Response{data=system.User} "响应" @Router /user/createUser [post]

func (*UserApi) DeleteUsers

func (a *UserApi) DeleteUsers(c *gin.Context)

@Tags User用户 @Summary 删除用户 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.IdsRequest true "请求" @Success 200 {object} response.Response "响应" @Router /user/deleteUsers [delete]

func (*UserApi) GetAllUsers

func (a *UserApi) GetAllUsers(c *gin.Context)

@Tags User用户 @Summary 查询全部用户列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query system.UserRequest true "请求" @Success 200 {object} response.Response{data=[]system.User} "响应" @Router /user/getAllUsers [get]

func (*UserApi) GetUser

func (a *UserApi) GetUser(c *gin.Context)

@Tags User用户 @Summary 查询用户 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdRequest true "请求" @Success 200 {object} response.Response{data=system.User} "响应" @Router /user/getUser [get]

func (*UserApi) GetUsers

func (a *UserApi) GetUsers(c *gin.Context)

@Tags User用户 @Summary 查询用户列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query system.UserRequest true "请求" @Success 200 {object} response.Response{data=response.ListData{list=[]system.User}} "响应" @Router /user/getUsers [get]

func (*UserApi) Login

func (a *UserApi) Login(c *gin.Context)

@Tags User用户 @Summary 用户登录 @accept application/json @Produce application/json @Param data body system.LoginRequest true "请求" @Success 200 {object} response.Response{data=system.LoginResponse} "响应" @Router /user/login [post]

func (*UserApi) SwitchUsers

func (a *UserApi) SwitchUsers(c *gin.Context)

@Tags User用户 @Summary 开关用户列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.SwitchRequest true "请求" @Success 200 {object} response.Response "响应" @Router /user/switchUsers [put]

func (*UserApi) UpdateUser

func (a *UserApi) UpdateUser(c *gin.Context)

@Tags User用户 @Summary 修改用户 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body system.User true "请求" @Success 200 {object} response.Response{data=system.User} "响应" @Router /user/updateUser [put]

Jump to

Keyboard shortcuts

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