Documentation ¶
Index ¶
- type AgencyApi
- func (a *AgencyApi) CreateAgency(c *gin.Context)
- func (a *AgencyApi) DeleteAgencys(c *gin.Context)
- func (a *AgencyApi) GetAgency(c *gin.Context)
- func (a *AgencyApi) GetAgencys(c *gin.Context)
- func (a *AgencyApi) GetAllAgencys(c *gin.Context)
- func (a *AgencyApi) SwitchAgencys(c *gin.Context)
- func (a *AgencyApi) UpdateAgency(c *gin.Context)
- 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 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 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 AgencyApi ¶
type AgencyApi struct{}
func (*AgencyApi) CreateAgency ¶
@Tags Agency代售点 @Summary 新增代售点 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body agency.Agency true "请求" @Success 200 {object} response.Response{data=agency.Agency} "响应" @Router /agency/createAgency [post]
func (*AgencyApi) DeleteAgencys ¶
@Tags Agency代售点 @Summary 删除代售点 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.IdsRequest true "请求" @Success 200 {object} response.Response "响应" @Router /agency/deleteAgencys [delete]
func (*AgencyApi) GetAgency ¶
@Tags Agency代售点 @Summary 查询代售点 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdRequest true "请求" @Success 200 {object} response.Response{data=agency.Agency} "响应" @Router /agency/getAgency [get]
func (*AgencyApi) GetAgencys ¶
@Tags Agency代售点 @Summary 查询代售点列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query agency.AgencyRequest true "请求" @Success 200 {object} response.Response{data=response.ListData{list=[]agency.Agency}} "响应" @Router /agency/getAgencys [get]
func (*AgencyApi) GetAllAgencys ¶
@Tags Agency代售点 @Summary 查询全部代售点列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query agency.AgencyRequest true "请求" @Success 200 {object} response.Response{data=[]agency.Agency} "响应" @Router /agency/getAllAgencys [get]
func (*AgencyApi) SwitchAgencys ¶
@Tags Agency代售点 @Summary 开关代售点列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.SwitchRequest true "请求" @Success 200 {object} response.Response "响应" @Router /agency/switchAgencys [put]
func (*AgencyApi) UpdateAgency ¶
@Tags Agency代售点 @Summary 修改代售点 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body agency.Agency true "请求" @Success 200 {object} response.Response{data=agency.Agency} "响应" @Router /agency/updateAgency [put]
type ApiApi ¶
type ApiApi struct{}
func (*ApiApi) CreateApi ¶
@Tags AgencyApi代售点Api @Summary 新增Api @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body agency.Api true "请求" @Success 200 {object} response.Response{data=agency.Api} "响应" @Router /agencyApi/createApi [post]
func (*ApiApi) DeleteApis ¶
@Tags AgencyApi代售点Api @Summary 删除Api @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.IdsRequest true "请求" @Success 200 {object} response.Response "响应" @Router /agencyApi/deleteApis [delete]
func (*ApiApi) GetAllApis ¶
@Tags AgencyApi代售点Api @Summary 查询全部Api列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query agency.ApiRequest true "请求" @Success 200 {object} response.Response{data=[]agency.Api} "响应" @Router /agencyApi/getAllApis [get]
func (*ApiApi) GetApi ¶
@Tags AgencyApi代售点Api @Summary 查询Api @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdRequest true "请求" @Success 200 {object} response.Response{data=agency.Api} "响应" @Router /agencyApi/getApi [get]
func (*ApiApi) GetApis ¶
@Tags AgencyApi代售点Api @Summary 查询Api列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query agency.ApiRequest true "请求" @Success 200 {object} response.Response{data=response.ListData{list=[]agency.Api}} "响应" @Router /agencyApi/getApis [get]
func (*ApiApi) GetApisByRoleId ¶
@Tags AgencyApi代售点Api @Summary 根据角色Id查询Api列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdRequest true "请求" @Success 200 {object} response.Response{data=[]agency.Api} "响应" @Router /api/getApisByRoleId [get]
func (*ApiApi) GetApisByUserId ¶
@Tags AgencyApi代售点Api @Summary 根据用户Id查询Api列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdRequest true "请求" @Success 200 {object} response.Response{data=[]agency.Api} "响应" @Router /api/getApisByUserId [get]
func (*ApiApi) SwitchApis ¶
@Tags AgencyApi代售点Api @Summary 开关Api列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.SwitchRequest true "请求" @Success 200 {object} response.Response "响应" @Router /agencyApi/switchApis [put]
type MenuApi ¶
type MenuApi struct{}
func (*MenuApi) CreateMenu ¶
@Tags AgencyMenu代售点菜单 @Summary 新增菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body agency.Menu true "请求" @Success 200 {object} response.Response{data=agency.Menu} "响应" @Router /agencyMenu/createMenu [post]
func (*MenuApi) DeleteMenus ¶
@Tags AgencyMenu代售点菜单 @Summary 删除菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.IdsRequest true "请求" @Success 200 {object} response.Response "响应" @Router /agencyMenu/deleteMenus [delete]
func (*MenuApi) GetAllMenus ¶
@Tags AgencyMenu代售点菜单 @Summary 查询全部菜单列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query agency.MenuRequest true "请求" @Success 200 {object} response.Response{data=[]agency.Menu} "响应" @Router /agencyMenu/getAllMenus [get]
func (*MenuApi) GetMenu ¶
@Tags AgencyMenu代售点菜单 @Summary 查询菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdRequest true "请求" @Success 200 {object} response.Response{data=agency.Menu} "响应" @Router /agencyMenu/getMenu [get]
func (*MenuApi) GetMenus ¶
@Tags AgencyMenu代售点菜单 @Summary 查询菜单列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query agency.MenuRequest true "请求" @Success 200 {object} response.Response{data=response.ListData{list=[]agency.Menu}} "响应" @Router /agencyMenu/getMenus [get]
func (*MenuApi) GetMenusByRoleIds ¶
@Tags AgencyMenu代售点菜单 @Summary 根据角色Id列表查询菜单列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdsRequest true "请求" @Success 200 {object} response.Response{data=[]agency.Menu} "响应" @Router /menu/getMenusByRoleIds [get]
func (*MenuApi) GetMenusByUserId ¶
@Tags AgencyMenu代售点菜单 @Summary 根据用户Id查询菜单列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdRequest true "请求" @Success 200 {object} response.Response{data=[]agency.Menu} "响应" @Router /menu/getMenusByUserId [get]
func (*MenuApi) SwitchMenus ¶
@Tags AgencyMenu代售点菜单 @Summary 开关菜单列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.SwitchRequest true "请求" @Success 200 {object} response.Response "响应" @Router /agencyMenu/switchMenus [put]
func (*MenuApi) UpdateMenu ¶
@Tags AgencyMenu代售点菜单 @Summary 修改菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body agency.Menu true "请求" @Success 200 {object} response.Response{data=agency.Menu} "响应" @Router /agencyMenu/updateMenu [put]
type RoleApi ¶
type RoleApi struct{}
func (*RoleApi) CreateRole ¶
@Tags AgencyRole代售点角色 @Summary 新增角色 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body agency.Role true "请求" @Success 200 {object} response.Response{data=agency.Role} "响应" @Router /agencyRole/createRole [post]
func (*RoleApi) DeleteRoles ¶
@Tags AgencyRole代售点角色 @Summary 删除角色 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.IdsRequest true "请求" @Success 200 {object} response.Response "响应" @Router /agencyRole/deleteRoles [delete]
func (*RoleApi) GetAllRoles ¶
@Tags AgencyRole代售点角色 @Summary 查询全部角色列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query agency.RoleRequest true "请求" @Success 200 {object} response.Response{data=[]agency.Role} "响应" @Router /agencyRole/getAllRoles [get]
func (*RoleApi) GetRole ¶
@Tags AgencyRole代售点角色 @Summary 查询角色 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdRequest true "请求" @Success 200 {object} response.Response{data=agency.Role} "响应" @Router /agencyRole/getRole [get]
func (*RoleApi) GetRoles ¶
@Tags AgencyRole代售点角色 @Summary 查询角色列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query agency.RoleRequest true "请求" @Success 200 {object} response.Response{data=response.ListData{list=[]agency.Role}} "响应" @Router /agencyRole/getRoles [get]
func (*RoleApi) SwitchRoles ¶
@Tags AgencyRole代售点角色 @Summary 开关角色列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.SwitchRequest true "请求" @Success 200 {object} response.Response "响应" @Router /agencyRole/switchRoles [put]
func (*RoleApi) UpdateRole ¶
@Tags AgencyRole代售点角色 @Summary 修改角色 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body agency.Role true "请求" @Success 200 {object} response.Response{data=agency.Role} "响应" @Router /agencyRole/updateRole [put]
func (*RoleApi) UpdateRoleApis ¶
@Tags AgencyRole代售点角色 @Summary 修改角色权限Api @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body agency.Role true "请求" @Success 200 {object} response.Response{data=agency.Role} "响应" @Router /agencyRole/updateRoleApis [post]
func (*RoleApi) UpdateRoleMenus ¶
@Tags AgencyRole代售点角色 @Summary 修改角色权限菜单 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body agency.Role true "请求" @Success 200 {object} response.Response{} "响应" @Router /agencyRole/updateRoleMenus [post]
type UserApi ¶
type UserApi struct{}
func (*UserApi) CreateUser ¶
@Tags AgencyUser代售点用户 @Summary 新增用户 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body agency.User true "请求" @Success 200 {object} response.Response{data=agency.User} "响应" @Router /agencyUser/createUser [post]
func (*UserApi) DeleteUsers ¶
@Tags AgencyUser代售点用户 @Summary 删除用户 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.IdsRequest true "请求" @Success 200 {object} response.Response "响应" @Router /agencyUser/deleteUsers [delete]
func (*UserApi) GetAllUsers ¶
@Tags AgencyUser代售点用户 @Summary 查询全部用户列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query agency.UserRequest true "请求" @Success 200 {object} response.Response{data=[]agency.User} "响应" @Router /agencyUser/getAllUsers [get]
func (*UserApi) GetUser ¶
@Tags AgencyUser代售点用户 @Summary 查询用户 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query request.IdRequest true "请求" @Success 200 {object} response.Response{data=agency.User} "响应" @Router /agencyUser/getUser [get]
func (*UserApi) GetUsers ¶
@Tags AgencyUser代售点用户 @Summary 查询用户列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query agency.UserRequest true "请求" @Success 200 {object} response.Response{data=response.ListData{list=[]agency.User}} "响应" @Router /agencyUser/getUsers [get]
func (*UserApi) Login ¶
@Tags AgencyUser代售点用户 @Summary 用户登录 @accept application/json @Produce application/json @Param data body agency.LoginRequest true "请求" @Success 200 {object} response.Response{data=agency.LoginResponse} "响应" @Router /user/login [post]
func (*UserApi) SwitchUsers ¶
@Tags AgencyUser代售点用户 @Summary 开关用户列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.SwitchRequest true "请求" @Success 200 {object} response.Response "响应" @Router /agencyUser/switchUsers [put]
func (*UserApi) UpdateUser ¶
@Tags AgencyUser代售点用户 @Summary 修改用户 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body agency.User true "请求" @Success 200 {object} response.Response{data=agency.User} "响应" @Router /agencyUser/updateUser [put]