controller

package
v0.0.0-...-9fd2f02 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 (*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 (*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 (*RolePermissionAssignmentController) Handle

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 (*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 (*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 (*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 (*UserAuthorizationCodeController) Handle

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 (*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 (*UserRoleAssignmentController) Handle

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 (*UserTokenByAuthcodeController) Handle

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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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