mmsclient

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseIDResp

type BaseIDResp = mms.BaseIDResp

type BaseResp

type BaseResp = mms.BaseResp

type BaseUUIDResp

type BaseUUIDResp = mms.BaseUUIDResp

type CallbackReq

type CallbackReq = mms.CallbackReq

type Empty

type Empty = mms.Empty

type IDReq

type IDReq = mms.IDReq

type IDsReq

type IDsReq = mms.IDsReq

type MemberInfo

type MemberInfo = mms.MemberInfo

type MemberListReq

type MemberListReq = mms.MemberListReq

type MemberListResp

type MemberListResp = mms.MemberListResp

type MemberLoginResp

type MemberLoginResp = mms.MemberLoginResp

type MemberRankInfo

type MemberRankInfo = mms.MemberRankInfo

type MemberRankListReq

type MemberRankListReq = mms.MemberRankListReq

type MemberRankListResp

type MemberRankListResp = mms.MemberRankListResp

type MemberRegisterReq

type MemberRegisterReq = mms.MemberRegisterReq

type Mms

type Mms interface {
	InitDatabase(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BaseResp, error)
	// Member management
	CreateMember(ctx context.Context, in *MemberInfo, opts ...grpc.CallOption) (*BaseUUIDResp, error)
	UpdateMember(ctx context.Context, in *MemberInfo, opts ...grpc.CallOption) (*BaseResp, error)
	GetMemberList(ctx context.Context, in *MemberListReq, opts ...grpc.CallOption) (*MemberListResp, error)
	DeleteMember(ctx context.Context, in *UUIDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetMemberById(ctx context.Context, in *UUIDReq, opts ...grpc.CallOption) (*MemberInfo, error)
	GetMemberByUsername(ctx context.Context, in *UsernameReq, opts ...grpc.CallOption) (*MemberInfo, error)
	// MemberRank management
	CreateMemberRank(ctx context.Context, in *MemberRankInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateMemberRank(ctx context.Context, in *MemberRankInfo, opts ...grpc.CallOption) (*BaseResp, error)
	GetMemberRankList(ctx context.Context, in *MemberRankListReq, opts ...grpc.CallOption) (*MemberRankListResp, error)
	GetMemberRankById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*MemberRankInfo, error)
	DeleteMemberRank(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	// OauthProvider management
	CreateOauthProvider(ctx context.Context, in *OauthProviderInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateOauthProvider(ctx context.Context, in *OauthProviderInfo, opts ...grpc.CallOption) (*BaseResp, error)
	GetOauthProviderList(ctx context.Context, in *OauthProviderListReq, opts ...grpc.CallOption) (*OauthProviderListResp, error)
	GetOauthProviderById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*OauthProviderInfo, error)
	DeleteOauthProvider(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	OauthLogin(ctx context.Context, in *OauthLoginReq, opts ...grpc.CallOption) (*OauthRedirectResp, error)
	OauthCallback(ctx context.Context, in *CallbackReq, opts ...grpc.CallOption) (*MemberInfo, error)
	WechatMiniProgramLogin(ctx context.Context, in *OauthLoginReq, opts ...grpc.CallOption) (*BaseResp, error)
	// Token management
	CreateToken(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*BaseUUIDResp, error)
	DeleteToken(ctx context.Context, in *UUIDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetTokenList(ctx context.Context, in *TokenListReq, opts ...grpc.CallOption) (*TokenListResp, error)
	GetTokenById(ctx context.Context, in *UUIDReq, opts ...grpc.CallOption) (*TokenInfo, error)
	BlockUserAllToken(ctx context.Context, in *UUIDReq, opts ...grpc.CallOption) (*BaseResp, error)
	UpdateToken(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*BaseResp, error)
}

func NewMms

func NewMms(cli zrpc.Client) Mms

type OauthLoginReq

type OauthLoginReq = mms.OauthLoginReq

type OauthProviderInfo

type OauthProviderInfo = mms.OauthProviderInfo

type OauthProviderListReq

type OauthProviderListReq = mms.OauthProviderListReq

type OauthProviderListResp

type OauthProviderListResp = mms.OauthProviderListResp

type OauthRedirectResp

type OauthRedirectResp = mms.OauthRedirectResp

type PageInfoReq

type PageInfoReq = mms.PageInfoReq

type TokenInfo

type TokenInfo = mms.TokenInfo

type TokenListReq

type TokenListReq = mms.TokenListReq

type TokenListResp

type TokenListResp = mms.TokenListResp

type UUIDReq

type UUIDReq = mms.UUIDReq

type UUIDsReq

type UUIDsReq = mms.UUIDsReq

type UsernameReq

type UsernameReq = mms.UsernameReq

Jump to

Keyboard shortcuts

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