agency

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgencyApi

type AgencyApi struct{}

func (*AgencyApi) CreateAgency

func (a *AgencyApi) CreateAgency(c *gin.Context)

@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

func (a *AgencyApi) DeleteAgencys(c *gin.Context)

@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

func (a *AgencyApi) GetAgency(c *gin.Context)

@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

func (a *AgencyApi) GetAgencys(c *gin.Context)

@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

func (a *AgencyApi) GetAllAgencys(c *gin.Context)

@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

func (a *AgencyApi) SwitchAgencys(c *gin.Context)

@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

func (a *AgencyApi) UpdateAgency(c *gin.Context)

@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

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

@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

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

@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

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

@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

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

@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

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

@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

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

@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

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

@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

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

@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]

func (*ApiApi) UpdateApi

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

@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/updateApi [put]

type ApiGroup

type ApiGroup struct {
	AgencyApi
	MenuApi
	ApiApi
	RoleApi
	UserApi
}
type MenuApi struct{}
func (a *MenuApi) CreateMenu(c *gin.Context)

@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 (a *MenuApi) DeleteMenus(c *gin.Context)

@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 (a *MenuApi) GetAllMenus(c *gin.Context)

@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 (a *MenuApi) GetMenu(c *gin.Context)

@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 (a *MenuApi) GetMenus(c *gin.Context)

@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 (a *MenuApi) GetMenusByRoleIds(c *gin.Context)

@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 (a *MenuApi) GetMenusByUserId(c *gin.Context)

@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 (a *MenuApi) SwitchMenus(c *gin.Context)

@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 (a *MenuApi) UpdateMenu(c *gin.Context)

@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

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

@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

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

@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

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

@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

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

@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

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

@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

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

@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

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

@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

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

@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

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

@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

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

@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

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

@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

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

@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

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

@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

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

@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

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

@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

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

@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

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

@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]

Jump to

Keyboard shortcuts

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