Documentation ¶
Index ¶
- type PermissionCreateController
- type PermissionCreateControllerIOCInterface
- type RoleCreateController
- type RoleCreateControllerIOCInterface
- type RolePermissionAssignmentController
- type RolePermissionAssignmentControllerIOCInterface
- type SadminTokenCreateController
- type SadminTokenCreateControllerIOCInterface
- type TenantCreateController
- type TenantCreateControllerIOCInterface
- type TenantTokenCreateController
- type TenantTokenCreateControllerIOCInterface
- type UserAuthorizationCodeController
- type UserAuthorizationCodeControllerIOCInterface
- type UserCreateController
- type UserCreateControllerIOCInterface
- type UserRoleAssignmentController
- type UserRoleAssignmentControllerIOCInterface
- type UserTokenByAuthcodeController
- type UserTokenByAuthcodeControllerIOCInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PermissionCreateController ¶
type PermissionCreateController struct {
PermissionApp app.PermissionAppIOCInterface `singleton:""`
}
func (*PermissionCreateController) GetOption ¶
func (p *PermissionCreateController) GetOption() defs.ControllerOptions
func (*PermissionCreateController) Handle ¶
func (p *PermissionCreateController) Handle(c *gin.Context)
Handle 创建资源权限许可 @Tags permission @Summary 创建资源权限许可 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body vo.PermissionReqVO true "创建资源权限许可" @Success 200 {object} response.Response{data=vo.PermissionRspVO} @Router /auth/permission-create [post]
type PermissionCreateControllerIOCInterface ¶
type PermissionCreateControllerIOCInterface interface { GetOption() defs.ControllerOptions Handle(c *gin.Context) }
type RoleCreateController ¶
type RoleCreateController struct {
RoleApp app.RoleAppIOCInterface `singleton:""`
}
func (*RoleCreateController) GetOption ¶
func (r *RoleCreateController) GetOption() defs.ControllerOptions
func (*RoleCreateController) Handle ¶
func (r *RoleCreateController) Handle(c *gin.Context)
Handle 创建角色,需要租户管理员权限 @Tags role @Summary 创建角色,需要租户管理员权限 @Security ApiKeyAuth @accept application/json @Produce application/json @Param Tenant-ID header string true "租户ID" @Param data body vo.RoleCreateReqVO true "创建角色" @Success 200 {object} response.Response{data=vo.RoleCreateRspVO} @Router /auth/role-create [post]
type RoleCreateControllerIOCInterface ¶
type RoleCreateControllerIOCInterface interface { GetOption() defs.ControllerOptions Handle(c *gin.Context) }
type RolePermissionAssignmentController ¶
type RolePermissionAssignmentController struct {
RoleApp app.RoleAppIOCInterface `singleton:""`
}
func (*RolePermissionAssignmentController) GetOption ¶
func (r *RolePermissionAssignmentController) GetOption() defs.ControllerOptions
func (*RolePermissionAssignmentController) Handle ¶
func (r *RolePermissionAssignmentController) Handle(c *gin.Context)
Handle 角色赋予资源许可,需要租户管理员权限 @Tags role @Summary 角色赋予资源许可,需要租户管理员权限 @Security ApiKeyAuth @accept application/json @Produce application/json @Param Tenant-ID header string true "租户ID" @Param data body vo.RolePermissionAssignmentReqVO true "角色赋予资源许可" @Success 200 {object} response.Response{data=vo.RolePermissionAssignmentRspVO} @Router /auth/role-permission-assignment [post]
type RolePermissionAssignmentControllerIOCInterface ¶
type RolePermissionAssignmentControllerIOCInterface interface { GetOption() defs.ControllerOptions Handle(c *gin.Context) }
type SadminTokenCreateController ¶
type SadminTokenCreateController struct {
SadminApp app.SadminAppIOCInterface `singleton:""`
}
func (*SadminTokenCreateController) GetOption ¶
func (s *SadminTokenCreateController) GetOption() defs.ControllerOptions
func (*SadminTokenCreateController) Handle ¶
func (s *SadminTokenCreateController) Handle(c *gin.Context)
Handle 获得超管Token @Tags sadmin @Summary 获得超管Token @accept application/json @Produce application/json @Param data body vo.SadminTokenCreateReqVO true "获得超管Token" @Success 200 {object} response.Response{data=vo.SadminTokenCreateRspVO} @Router /auth/sadmin-token-create [post]
type SadminTokenCreateControllerIOCInterface ¶
type SadminTokenCreateControllerIOCInterface interface { GetOption() defs.ControllerOptions Handle(c *gin.Context) }
type TenantCreateController ¶
type TenantCreateController struct {
TenantApp app.TenantAppIOCInterface `singleton:""`
}
func (*TenantCreateController) GetOption ¶
func (t *TenantCreateController) GetOption() defs.ControllerOptions
func (*TenantCreateController) Handle ¶
func (t *TenantCreateController) Handle(c *gin.Context)
Handle 创建租户 @Tags tenant @Summary 创建租户 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body vo.TenantCreateReqVO true "创建租户" @Success 200 {object} response.Response{data=vo.TenantCreateRspVO} @Router /auth/tenant-create [post]
type TenantCreateControllerIOCInterface ¶
type TenantCreateControllerIOCInterface interface { GetOption() defs.ControllerOptions Handle(c *gin.Context) }
type TenantTokenCreateController ¶
type TenantTokenCreateController struct {
TenantApp app.TenantAppIOCInterface `singleton:""`
}
func (*TenantTokenCreateController) GetOption ¶
func (t *TenantTokenCreateController) GetOption() defs.ControllerOptions
func (*TenantTokenCreateController) Handle ¶
func (t *TenantTokenCreateController) Handle(c *gin.Context)
Handle 创建租户管理员Token @Tags tenant @Summary 创建租户Token @accept application/json @Produce application/json @Param data body vo.TenantTokenCreateReqVO true "创建租户Token" @Success 200 {object} response.Response{data=vo.TenantTokenCreateRspVO} @Router /auth/tenant-token-create [post]
type TenantTokenCreateControllerIOCInterface ¶
type TenantTokenCreateControllerIOCInterface interface { GetOption() defs.ControllerOptions Handle(c *gin.Context) }
type UserAuthorizationCodeController ¶
type UserAuthorizationCodeController struct {
UserApp app.UserAppIOCInterface `singleton:""`
}
func (*UserAuthorizationCodeController) GetOption ¶
func (u *UserAuthorizationCodeController) GetOption() defs.ControllerOptions
func (*UserAuthorizationCodeController) Handle ¶
func (u *UserAuthorizationCodeController) Handle(c *gin.Context)
Handle 用户登录获得授权码,注意授权码不是Token,不能直接用于访问接口 @Tags user @Summary 登录验证用户账号密码,验证通过后授权码60秒有效,关联用户信息。可以用授权码接口换取登录Token。 @accept application/json @Produce application/json @Param Tenant-ID header string true "租户ID" @Param data body vo.UserAuthorizationCodeReqVO true "用户登录获得授权码,注意授权码不是Token,不能直接用于访问接口" @Success 200 {object} response.Response{data=vo.UserAuthorizationCodeRspVO} @Router /auth/user-authorization-code [post]
type UserAuthorizationCodeControllerIOCInterface ¶
type UserAuthorizationCodeControllerIOCInterface interface { GetOption() defs.ControllerOptions Handle(c *gin.Context) }
type UserCreateController ¶
type UserCreateController struct {
UserApp app.UserAppIOCInterface `singleton:""`
}
func (*UserCreateController) GetOption ¶
func (u *UserCreateController) GetOption() defs.ControllerOptions
func (*UserCreateController) Handle ¶
func (u *UserCreateController) Handle(c *gin.Context)
Handle 创建用户,需要租户管理员权限 @Tags user @Summary 创建用户,需要租户管理员权限 @Security ApiKeyAuth @accept application/json @Produce application/json @Param Tenant-ID header string true "租户ID" @Param data body vo.UserCreateReqVO true "创建用户" @Success 200 {object} response.Response{data=vo.UserCreateRspVO} @Router /auth/user-create [post]
type UserCreateControllerIOCInterface ¶
type UserCreateControllerIOCInterface interface { GetOption() defs.ControllerOptions Handle(c *gin.Context) }
type UserRoleAssignmentController ¶
type UserRoleAssignmentController struct {
UserApp app.UserAppIOCInterface `singleton:""`
}
func (*UserRoleAssignmentController) GetOption ¶
func (u *UserRoleAssignmentController) GetOption() defs.ControllerOptions
func (*UserRoleAssignmentController) Handle ¶
func (u *UserRoleAssignmentController) Handle(c *gin.Context)
Handle 用户赋予角色,需要租户管理员权限 @Tags user @Summary 用户赋予角色,需要租户管理员权限 @Security ApiKeyAuth @accept application/json @Produce application/json @Param Tenant-ID header string true "租户ID" @Param data body vo.UserRoleAssignmentReqVO true "用户赋予角色" @Success 200 {object} response.Response{data=vo.UserRoleAssignmentRspVO} @Router /auth/user-role-assignment [post]
type UserRoleAssignmentControllerIOCInterface ¶
type UserRoleAssignmentControllerIOCInterface interface { GetOption() defs.ControllerOptions Handle(c *gin.Context) }
type UserTokenByAuthcodeController ¶
type UserTokenByAuthcodeController struct {
UserApp app.UserAppIOCInterface `singleton:""`
}
func (*UserTokenByAuthcodeController) GetOption ¶
func (u *UserTokenByAuthcodeController) GetOption() defs.ControllerOptions
func (*UserTokenByAuthcodeController) Handle ¶
func (u *UserTokenByAuthcodeController) Handle(c *gin.Context)
Handle 使用授权码获取用户token信息 @Tags user @Summary 使用授权码获取用户token信息 @accept application/json @Produce application/json @Param Tenant-ID header string true "租户ID" @Param data body vo.UserTokenByAuthcodeReqVO true "使用授权码获取用户token信息" @Success 200 {object} response.Response{data=vo.UserTokenByAuthcodeRspVO} @Router /auth/user-token-by-authcode [post]
type UserTokenByAuthcodeControllerIOCInterface ¶
type UserTokenByAuthcodeControllerIOCInterface interface { GetOption() defs.ControllerOptions Handle(c *gin.Context) }