Documentation ¶
Index ¶
- func RegisterAccess(i IAccess)
- func RegisterAccount(i IAccount)
- func RegisterAuth(i IAuth)
- func RegisterDomain(i IDomain)
- func RegisterHome(i IHome)
- func RegisterMiddleware(i IMiddleware)
- func RegisterShort(i IShort)
- func RegisterUser(i IUser)
- type IAccess
- type IAccount
- type IAuth
- type IDomain
- type IHome
- type IMiddleware
- type IShort
- type IUser
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) }
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) }
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) }
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) }
type IHome ¶
type IHome interface {
Index(ctx context.Context, in *model.HomeIndexInput) (out *model.HomeIndexOutput, err error)
}
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) }
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) }
Click to show internal directories.
Click to hide internal directories.