service

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAccess added in v0.0.3

func RegisterAccess(i IAccess)

func RegisterAccount

func RegisterAccount(i IAccount)

func RegisterAuth

func RegisterAuth(i IAuth)

func RegisterDomain

func RegisterDomain(i IDomain)

func RegisterHome

func RegisterHome(i IHome)

func RegisterMiddleware

func RegisterMiddleware(i IMiddleware)

func RegisterShort

func RegisterShort(i IShort)

func RegisterUser

func RegisterUser(i IUser)

Types

type IAccess added in v0.0.3

type IAccess interface {
	List(ctx context.Context, in *model.AccessListInput) (out *model.AccessListOutput, err error)
	Detail(ctx context.Context, in *model.AccessDetailInput) (out *model.AccessDetailOutput, err error)
}

func Access added in v0.0.3

func Access() IAccess

type IAccount

type IAccount interface {
	CreateAccount(ctx context.Context, in *model.CreateAccountInput) (out *model.CreateAccountOutput, err error)
	ModifyAccount(ctx context.Context, in *model.ModifyAccountInput) (out *model.ModifyAccountOutput, err error)
	ModifyPassword(ctx context.Context, in *model.ModifyPasswordInput) (out *model.ModifyPasswordOutput, err error)
}

func Account

func Account() IAccount

type IAuth

type IAuth interface {
	CreateAccessToken(ctx context.Context, in *model.CreateAccessTokenInput) (out *model.CreateAccessTokenOutput, err error)
	Authorization(ctx context.Context, in *model.AuthInput) (out *model.AuthOutput, err error)
}

func Auth

func Auth() IAuth

type IDomain

type IDomain interface {
	CreateDomainAuthorize(ctx context.Context, in *model.DomainAuthorizeInput) (out *model.DomainAuthorizeOutput, err error)
	QueryDomainAuthorize(ctx context.Context, in *model.QueryDomainAuthorizeInput) (out *model.QueryDomainAuthorizeOutput, err error)
	UpdateDomainAuthorize(ctx context.Context, in *model.DomainAuthorizeUpdateInput) (out *model.DomainAuthorizeUpdateOutput, err error)
	DeleteDomainAuthorize(ctx context.Context, in *model.DomainAuthorizeDeleteInput) (out *model.DomainAuthorizeDeleteOutput, err error)
	DomainAuthorizeDetail(ctx context.Context, in *model.DomainAuthorizeDetailInput) (out *model.DomainAuthorizeDetailOutput, err error)
	DomainAuthorizeList(ctx context.Context, in *model.DomainAuthorizeListInput) (out *model.DomainAuthorizeListOutput, err error)
}

func Domain

func Domain() IDomain

type IHome

type IHome interface {
	Index(ctx context.Context, in *model.HomeIndexInput) (out *model.HomeIndexOutput, err error)
}

func Home

func Home() IHome

type IMiddleware

type IMiddleware interface {
	ConsoleLogger(r *ghttp.Request)
	Logger(r *ghttp.Request)
	HandlerResponse(r *ghttp.Request)
	AuthorizationForAPI(r *ghttp.Request)
	AuthorizationForConsole(r *ghttp.Request)
}

func Middleware

func Middleware() IMiddleware

type IShort

type IShort interface {
	CreateShort(ctx context.Context, in *model.CreateShortInput) (out *model.CreateShortOutput, err error)
	ModifyShort(ctx context.Context, in *model.ModifyShortInput) (out *model.ModifyShortOutput, err error)
	QueryShort(ctx context.Context, in *model.QueryShortInput) (out *model.QueryShortOutput, err error)
	QueryStat(ctx context.Context, in *model.QueryStatInput) (out *model.QueryStatOutput, err error)
}

func Short

func Short() IShort

type IUser

type IUser interface {
	CreateMerchant(ctx context.Context, in *model.CreateMerchantInput) (out *model.CreateMerchantOutput, err error)
	QueryMerchant(ctx context.Context, in *model.QueryMerchantInput) (out *model.QueryMerchantOutput, err error)
	Detail(ctx context.Context, in *model.UserDetailInput) (out *model.UserDetailOutput, err error)
}

func User

func User() IUser

Jump to

Keyboard shortcuts

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