Documentation ¶
Index ¶
- type ApiApi
- func (a *ApiApi) CreateApi(c *gin.Context)
- func (a *ApiApi) DeleteApis(c *gin.Context)
- func (a *ApiApi) GetAllApis(c *gin.Context)
- func (a *ApiApi) GetApi(c *gin.Context)
- func (a *ApiApi) GetApis(c *gin.Context)
- func (a *ApiApi) GetApisByRoleId(c *gin.Context)
- func (a *ApiApi) GetApisByUserId(c *gin.Context)
- func (a *ApiApi) SwitchApis(c *gin.Context)
- func (a *ApiApi) UpdateApi(c *gin.Context)
- type ApiGroup
- type BaseApi
- type DictionaryApi
- func (a *DictionaryApi) CreateDictionary(c *gin.Context)
- func (a *DictionaryApi) DeleteDictionarys(c *gin.Context)
- func (a *DictionaryApi) GetAllDictionarys(c *gin.Context)
- func (a *DictionaryApi) GetDictionary(c *gin.Context)
- func (a *DictionaryApi) GetDictionarys(c *gin.Context)
- func (a *DictionaryApi) SwitchDictionarys(c *gin.Context)
- func (a *DictionaryApi) UpdateDictionary(c *gin.Context)
- type MenuApi
- func (a *MenuApi) CreateMenu(c *gin.Context)
- func (a *MenuApi) DeleteMenus(c *gin.Context)
- func (a *MenuApi) GetAllMenus(c *gin.Context)
- func (a *MenuApi) GetMenu(c *gin.Context)
- func (a *MenuApi) GetMenus(c *gin.Context)
- func (a *MenuApi) GetMenusByRoleIds(c *gin.Context)
- func (a *MenuApi) GetMenusByUserId(c *gin.Context)
- func (a *MenuApi) SwitchMenus(c *gin.Context)
- func (a *MenuApi) UpdateMenu(c *gin.Context)
- type PendingItem
- type RoleApi
- func (a *RoleApi) CreateRole(c *gin.Context)
- func (a *RoleApi) DeleteRoles(c *gin.Context)
- func (a *RoleApi) GetAllRoles(c *gin.Context)
- func (a *RoleApi) GetRole(c *gin.Context)
- func (a *RoleApi) GetRoles(c *gin.Context)
- func (a *RoleApi) SwitchRoles(c *gin.Context)
- func (a *RoleApi) UpdateRole(c *gin.Context)
- func (a *RoleApi) UpdateRoleApis(c *gin.Context)
- func (a *RoleApi) UpdateRoleMenus(c *gin.Context)
- type UserApi
- func (a *UserApi) CreateUser(c *gin.Context)
- func (a *UserApi) DeleteUsers(c *gin.Context)
- func (a *UserApi) GetAllUsers(c *gin.Context)
- func (a *UserApi) GetUser(c *gin.Context)
- func (a *UserApi) GetUsers(c *gin.Context)
- func (a *UserApi) Login(c *gin.Context)
- func (a *UserApi) SwitchUsers(c *gin.Context)
- func (a *UserApi) UpdateUser(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiApi ¶
type ApiApi struct{}
func (*ApiApi) CreateApi ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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]
type BaseApi ¶
type BaseApi struct{}
func (*BaseApi) GetAllPendings ¶
@Tags Base基础 @Summary 查询待办事项列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Success 200 {object} response.Response{data=[]PendingItem} "响应" @Router /getAllPendings [get]
func (*BaseApi) GetCaptcha ¶
@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 ¶
type MenuApi struct{}
func (*MenuApi) CreateMenu ¶
@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 (*MenuApi) DeleteMenus ¶
@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 (*MenuApi) GetAllMenus ¶
@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 (*MenuApi) GetMenu ¶
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 (*MenuApi) GetMenus ¶
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 (*MenuApi) GetMenusByRoleIds ¶
@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 (*MenuApi) GetMenusByUserId ¶
@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 (*MenuApi) SwitchMenus ¶
@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 (*MenuApi) UpdateMenu ¶
@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 RoleApi ¶
type RoleApi struct{}
func (*RoleApi) CreateRole ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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]