app

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

Documentation

Index

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 GetRoleAppSingleton() (*RoleApp, error)

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 GetSadminAppSingleton() (*SadminApp, error)

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 GetTenantAppSingleton() (*TenantApp, error)

func (*TenantApp) TenantCreate

func (t *TenantApp) TenantCreate(ctx context.Context, c cmd.TenantCreateCmd) (rs cmd.TenantCreateResult, err error)

func (*TenantApp) TenantInit

func (t *TenantApp) TenantInit(ctx context.Context, c cmd.TenantInitCmd) (err error)

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

type ThisRoleApp

type ThisRoleApp struct {
}

func (*ThisRoleApp) This

func (t *ThisRoleApp) This() RoleAppIOCInterface

type ThisSadminApp

type ThisSadminApp struct {
}

func (*ThisSadminApp) This

type ThisTenantApp

type ThisTenantApp struct {
}

func (*ThisTenantApp) This

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 GetUserAppSingleton() (*UserApp, error)

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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