Documentation ¶
Index ¶
- type PermissionApp
- type PermissionAppIOCInterface
- type RoleApp
- type RoleAppIOCInterface
- type SadminApp
- type SadminAppIOCInterface
- type TenantApp
- func (t *TenantApp) TenantCreate(ctx context.Context, c cmd.TenantCreateCmd) (rs cmd.TenantCreateResult, err error)
- func (t *TenantApp) TenantInit(ctx context.Context, c cmd.TenantInitCmd) (err error)
- func (t *TenantApp) TenantTokenCreate(ctx context.Context, c cmd.TenantTokenCreateCmd) (rs cmd.TenantTokenCreateResult, err error)
- type TenantAppIOCInterface
- type ThisPermissionApp
- type ThisRoleApp
- type ThisSadminApp
- type ThisTenantApp
- type ThisUserApp
- type UserApp
- func (u *UserApp) UserAuthorizationCode(ctx context.Context, c cmd.UserAuthorizationCodeCmd) (rs cmd.UserAuthorizationCodeResult, err error)
- func (u *UserApp) UserCreate(ctx context.Context, c cmd.UserCreateCmd) (rs cmd.UserCreateResult, err error)
- func (u *UserApp) UserRoleAssignment(ctx context.Context, c cmd.UserRoleAssignmentCmd) (rs cmd.UserRoleAssignmentResult, err error)
- func (u *UserApp) UserTokenByAuthcode(ctx context.Context, c cmd.UserTokenByAuthcodeCmd) (rs cmd.UserTokenByAuthcodeResult, err error)
- type UserAppIOCInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PermissionApp ¶
type PermissionApp struct {
PermissionGateway gateway.IPermissionGateway `singleton:"github.com/zhanjunjie2019/clover/starter-auth/bc/auth/infr/gatewayimpl.PermissionGateway"`
}
func GetPermissionAppSingleton ¶
func GetPermissionAppSingleton() (*PermissionApp, error)
func (*PermissionApp) PermissionCreate ¶
func (p *PermissionApp) PermissionCreate(ctx context.Context, c cmd.PermissionCreateCmd) (rs cmd.PermissionCreateResult, err error)
type PermissionAppIOCInterface ¶
type PermissionAppIOCInterface interface {
PermissionCreate(ctx contextx.Context, c cmd.PermissionCreateCmd) (rs cmd.PermissionCreateResult, err error)
}
func GetPermissionAppIOCInterfaceSingleton ¶
func GetPermissionAppIOCInterfaceSingleton() (PermissionAppIOCInterface, error)
type RoleApp ¶
type RoleApp struct { RoleGateway gateway.IRoleGateway `singleton:"github.com/zhanjunjie2019/clover/starter-auth/bc/auth/infr/gatewayimpl.RoleGateway"` PermissionGateway gateway.IPermissionGateway `singleton:"github.com/zhanjunjie2019/clover/starter-auth/bc/auth/infr/gatewayimpl.PermissionGateway"` }
func GetRoleAppSingleton ¶
func (*RoleApp) RoleCreate ¶
func (r *RoleApp) RoleCreate(ctx context.Context, c cmd.RoleCreateCmd) (rs cmd.RoleCreateResult, err error)
func (*RoleApp) RolePermissionAssignment ¶
func (r *RoleApp) RolePermissionAssignment(ctx context.Context, c cmd.RolePermissionAssignmentCmd) (rs cmd.RolePermissionAssignmentResult, err error)
type RoleAppIOCInterface ¶
type RoleAppIOCInterface interface { RoleCreate(ctx contextx.Context, c cmd.RoleCreateCmd) (rs cmd.RoleCreateResult, err error) RolePermissionAssignment(ctx contextx.Context, c cmd.RolePermissionAssignmentCmd) (rs cmd.RolePermissionAssignmentResult, err error) }
func GetRoleAppIOCInterfaceSingleton ¶
func GetRoleAppIOCInterfaceSingleton() (RoleAppIOCInterface, error)
type SadminApp ¶
type SadminApp struct { }
func GetSadminAppSingleton ¶
func (*SadminApp) SadminTokenCreate ¶
func (s *SadminApp) SadminTokenCreate(ctx context.Context, c cmd.SadminTokenCreateCmd) (rs cmd.SadminTokenCreateResult, err error)
type SadminAppIOCInterface ¶
type SadminAppIOCInterface interface {
SadminTokenCreate(ctx contextx.Context, c cmd.SadminTokenCreateCmd) (rs cmd.SadminTokenCreateResult, err error)
}
func GetSadminAppIOCInterfaceSingleton ¶
func GetSadminAppIOCInterfaceSingleton() (SadminAppIOCInterface, error)
type TenantApp ¶
type TenantApp struct {
TenantGateway gateway.ITenantGateway `singleton:"github.com/zhanjunjie2019/clover/starter-auth/bc/auth/infr/gatewayimpl.TenantGateway"`
}
func GetTenantAppSingleton ¶
func (*TenantApp) TenantCreate ¶
func (t *TenantApp) TenantCreate(ctx context.Context, c cmd.TenantCreateCmd) (rs cmd.TenantCreateResult, err error)
func (*TenantApp) TenantInit ¶
func (*TenantApp) TenantTokenCreate ¶
func (t *TenantApp) TenantTokenCreate(ctx context.Context, c cmd.TenantTokenCreateCmd) (rs cmd.TenantTokenCreateResult, err error)
type TenantAppIOCInterface ¶
type TenantAppIOCInterface interface { TenantCreate(ctx contextx.Context, c cmd.TenantCreateCmd) (rs cmd.TenantCreateResult, err error) TenantInit(ctx contextx.Context, c cmd.TenantInitCmd) (err error) TenantTokenCreate(ctx contextx.Context, c cmd.TenantTokenCreateCmd) (rs cmd.TenantTokenCreateResult, err error) }
func GetTenantAppIOCInterfaceSingleton ¶
func GetTenantAppIOCInterfaceSingleton() (TenantAppIOCInterface, error)
type ThisPermissionApp ¶
type ThisPermissionApp struct { }
func (*ThisPermissionApp) This ¶
func (t *ThisPermissionApp) This() PermissionAppIOCInterface
type ThisRoleApp ¶
type ThisRoleApp struct { }
func (*ThisRoleApp) This ¶
func (t *ThisRoleApp) This() RoleAppIOCInterface
type ThisSadminApp ¶
type ThisSadminApp struct { }
func (*ThisSadminApp) This ¶
func (t *ThisSadminApp) This() SadminAppIOCInterface
type ThisTenantApp ¶
type ThisTenantApp struct { }
func (*ThisTenantApp) This ¶
func (t *ThisTenantApp) This() TenantAppIOCInterface
type ThisUserApp ¶
type ThisUserApp struct { }
func (*ThisUserApp) This ¶
func (t *ThisUserApp) This() UserAppIOCInterface
type UserApp ¶
type UserApp struct { UserGateway gateway.IUserGateway `singleton:"github.com/zhanjunjie2019/clover/starter-auth/bc/auth/infr/gatewayimpl.UserGateway"` RoleGateway gateway.IRoleGateway `singleton:"github.com/zhanjunjie2019/clover/starter-auth/bc/auth/infr/gatewayimpl.RoleGateway"` TenantGateway gateway.ITenantGateway `singleton:"github.com/zhanjunjie2019/clover/starter-auth/bc/auth/infr/gatewayimpl.TenantGateway"` }
func GetUserAppSingleton ¶
func (*UserApp) UserAuthorizationCode ¶
func (u *UserApp) UserAuthorizationCode(ctx context.Context, c cmd.UserAuthorizationCodeCmd) (rs cmd.UserAuthorizationCodeResult, err error)
UserAuthorizationCode 登录验证用户账号密码,验证通过后在Redis保存一个授权码60秒有效,关联用户信息。用以可以用授权码接口换取登录Token。
func (*UserApp) UserCreate ¶
func (u *UserApp) UserCreate(ctx context.Context, c cmd.UserCreateCmd) (rs cmd.UserCreateResult, err error)
func (*UserApp) UserRoleAssignment ¶
func (u *UserApp) UserRoleAssignment(ctx context.Context, c cmd.UserRoleAssignmentCmd) (rs cmd.UserRoleAssignmentResult, err error)
func (*UserApp) UserTokenByAuthcode ¶
func (u *UserApp) UserTokenByAuthcode(ctx context.Context, c cmd.UserTokenByAuthcodeCmd) (rs cmd.UserTokenByAuthcodeResult, err error)
type UserAppIOCInterface ¶
type UserAppIOCInterface interface { UserCreate(ctx contextx.Context, c cmd.UserCreateCmd) (rs cmd.UserCreateResult, err error) UserAuthorizationCode(ctx contextx.Context, c cmd.UserAuthorizationCodeCmd) (rs cmd.UserAuthorizationCodeResult, err error) UserTokenByAuthcode(ctx contextx.Context, c cmd.UserTokenByAuthcodeCmd) (rs cmd.UserTokenByAuthcodeResult, err error) UserRoleAssignment(ctx contextx.Context, c cmd.UserRoleAssignmentCmd) (rs cmd.UserRoleAssignmentResult, err error) }
func GetUserAppIOCInterfaceSingleton ¶
func GetUserAppIOCInterfaceSingleton() (UserAppIOCInterface, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.