v1

package
v0.0.0-...-e505ea4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 28 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var Account_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "task_system.scheduler.v1.Account",
	HandlerType: (*AccountServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _Account_Ping_Handler,
		},
		{
			MethodName: "SendVerificationCode",
			Handler:    _Account_SendVerificationCode_Handler,
		},
		{
			MethodName: "Auth",
			Handler:    _Account_Auth_Handler,
		},
		{
			MethodName: "Login",
			Handler:    _Account_Login_Handler,
		},
		{
			MethodName: "GetMiniQRCode",
			Handler:    _Account_GetMiniQRCode_Handler,
		},
		{
			MethodName: "MiniLogin",
			Handler:    _Account_MiniLogin_Handler,
		},
		{
			MethodName: "UpdatesUser",
			Handler:    _Account_UpdatesUser_Handler,
		},
		{
			MethodName: "GetByID",
			Handler:    _Account_GetByID_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/account.proto",
}

Account_ServiceDesc is the grpc.ServiceDesc for Account service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_v1_account_proto protoreflect.FileDescriptor

Functions

func RegisterAccountHandler

func RegisterAccountHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAccountHandler registers the http handlers for service Account to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAccountHandlerClient

func RegisterAccountHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountClient) error

RegisterAccountHandlerClient registers the http handlers for service Account to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AccountClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AccountClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AccountClient" to call the correct interceptors.

func RegisterAccountHandlerFromEndpoint

func RegisterAccountHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAccountHandlerFromEndpoint is same as RegisterAccountHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAccountHandlerServer

func RegisterAccountHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountServer) error

RegisterAccountHandlerServer registers the http handlers for service Account to "mux". UnaryRPC :call AccountServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAccountHandlerFromEndpoint instead.

func RegisterAccountServer

func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)

Types

type AccountClient

type AccountClient interface {
	Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Result, error)
	// 发送验证码
	SendVerificationCode(ctx context.Context, in *SendVerificationCodeReq, opts ...grpc.CallOption) (*Empty, error)
	// 鉴权
	Auth(ctx context.Context, in *AuthReq, opts ...grpc.CallOption) (*AuthResp, error)
	// 登录
	Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginResp, error)
	// 获取小程序授权登录二维码
	GetMiniQRCode(ctx context.Context, in *GetMiniQRCodeReq, opts ...grpc.CallOption) (*GetMiniQRCodeResp, error)
	// 小程序登录
	MiniLogin(ctx context.Context, in *MiniLoginReq, opts ...grpc.CallOption) (*MiniLoginResp, error)
	// 更新用户信息
	UpdatesUser(ctx context.Context, in *UpdatesUserReq, opts ...grpc.CallOption) (*Empty, error)
	// 获取用户信息
	GetByID(ctx context.Context, in *GetByIDReq, opts ...grpc.CallOption) (*GetByIDResp, error)
}

AccountClient is the client API for Account service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAccountClient

func NewAccountClient(cc grpc.ClientConnInterface) AccountClient

type AccountServer

type AccountServer interface {
	Ping(context.Context, *Empty) (*Result, error)
	// 发送验证码
	SendVerificationCode(context.Context, *SendVerificationCodeReq) (*Empty, error)
	// 鉴权
	Auth(context.Context, *AuthReq) (*AuthResp, error)
	// 登录
	Login(context.Context, *LoginReq) (*LoginResp, error)
	// 获取小程序授权登录二维码
	GetMiniQRCode(context.Context, *GetMiniQRCodeReq) (*GetMiniQRCodeResp, error)
	// 小程序登录
	MiniLogin(context.Context, *MiniLoginReq) (*MiniLoginResp, error)
	// 更新用户信息
	UpdatesUser(context.Context, *UpdatesUserReq) (*Empty, error)
	// 获取用户信息
	GetByID(context.Context, *GetByIDReq) (*GetByIDResp, error)
	// contains filtered or unexported methods
}

AccountServer is the server API for Account service. All implementations must embed UnimplementedAccountServer for forward compatibility

type AuthReq

type AuthReq struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthReq) Descriptor deprecated

func (*AuthReq) Descriptor() ([]byte, []int)

Deprecated: Use AuthReq.ProtoReflect.Descriptor instead.

func (*AuthReq) GetToken

func (x *AuthReq) GetToken() string

func (*AuthReq) ProtoMessage

func (*AuthReq) ProtoMessage()

func (*AuthReq) ProtoReflect

func (x *AuthReq) ProtoReflect() protoreflect.Message

func (*AuthReq) Reset

func (x *AuthReq) Reset()

func (*AuthReq) String

func (x *AuthReq) String() string

func (*AuthReq) Validate

func (m *AuthReq) Validate() error

Validate checks the field values on AuthReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type AuthReqValidationError

type AuthReqValidationError struct {
	// contains filtered or unexported fields
}

AuthReqValidationError is the validation error returned by AuthReq.Validate if the designated constraints aren't met.

func (AuthReqValidationError) Cause

func (e AuthReqValidationError) Cause() error

Cause function returns cause value.

func (AuthReqValidationError) Error

func (e AuthReqValidationError) Error() string

Error satisfies the builtin error interface

func (AuthReqValidationError) ErrorName

func (e AuthReqValidationError) ErrorName() string

ErrorName returns error name.

func (AuthReqValidationError) Field

func (e AuthReqValidationError) Field() string

Field function returns field value.

func (AuthReqValidationError) Key

func (e AuthReqValidationError) Key() bool

Key function returns key value.

func (AuthReqValidationError) Reason

func (e AuthReqValidationError) Reason() string

Reason function returns reason value.

type AuthResp

type AuthResp struct {
	// contains filtered or unexported fields
}

func (*AuthResp) Descriptor deprecated

func (*AuthResp) Descriptor() ([]byte, []int)

Deprecated: Use AuthResp.ProtoReflect.Descriptor instead.

func (*AuthResp) ProtoMessage

func (*AuthResp) ProtoMessage()

func (*AuthResp) ProtoReflect

func (x *AuthResp) ProtoReflect() protoreflect.Message

func (*AuthResp) Reset

func (x *AuthResp) Reset()

func (*AuthResp) String

func (x *AuthResp) String() string

func (*AuthResp) Validate

func (m *AuthResp) Validate() error

Validate checks the field values on AuthResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type AuthRespValidationError

type AuthRespValidationError struct {
	// contains filtered or unexported fields
}

AuthRespValidationError is the validation error returned by AuthResp.Validate if the designated constraints aren't met.

func (AuthRespValidationError) Cause

func (e AuthRespValidationError) Cause() error

Cause function returns cause value.

func (AuthRespValidationError) Error

func (e AuthRespValidationError) Error() string

Error satisfies the builtin error interface

func (AuthRespValidationError) ErrorName

func (e AuthRespValidationError) ErrorName() string

ErrorName returns error name.

func (AuthRespValidationError) Field

func (e AuthRespValidationError) Field() string

Field function returns field value.

func (AuthRespValidationError) Key

func (e AuthRespValidationError) Key() bool

Key function returns key value.

func (AuthRespValidationError) Reason

func (e AuthRespValidationError) Reason() string

Reason function returns reason value.

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

func (*Empty) Validate

func (m *Empty) Validate() error

Validate checks the field values on Empty with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type EmptyValidationError

type EmptyValidationError struct {
	// contains filtered or unexported fields
}

EmptyValidationError is the validation error returned by Empty.Validate if the designated constraints aren't met.

func (EmptyValidationError) Cause

func (e EmptyValidationError) Cause() error

Cause function returns cause value.

func (EmptyValidationError) Error

func (e EmptyValidationError) Error() string

Error satisfies the builtin error interface

func (EmptyValidationError) ErrorName

func (e EmptyValidationError) ErrorName() string

ErrorName returns error name.

func (EmptyValidationError) Field

func (e EmptyValidationError) Field() string

Field function returns field value.

func (EmptyValidationError) Key

func (e EmptyValidationError) Key() bool

Key function returns key value.

func (EmptyValidationError) Reason

func (e EmptyValidationError) Reason() string

Reason function returns reason value.

type GetByIDReq

type GetByIDReq struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetByIDReq) Descriptor deprecated

func (*GetByIDReq) Descriptor() ([]byte, []int)

Deprecated: Use GetByIDReq.ProtoReflect.Descriptor instead.

func (*GetByIDReq) GetId

func (x *GetByIDReq) GetId() uint64

func (*GetByIDReq) ProtoMessage

func (*GetByIDReq) ProtoMessage()

func (*GetByIDReq) ProtoReflect

func (x *GetByIDReq) ProtoReflect() protoreflect.Message

func (*GetByIDReq) Reset

func (x *GetByIDReq) Reset()

func (*GetByIDReq) String

func (x *GetByIDReq) String() string

func (*GetByIDReq) Validate

func (m *GetByIDReq) Validate() error

Validate checks the field values on GetByIDReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetByIDReqValidationError

type GetByIDReqValidationError struct {
	// contains filtered or unexported fields
}

GetByIDReqValidationError is the validation error returned by GetByIDReq.Validate if the designated constraints aren't met.

func (GetByIDReqValidationError) Cause

func (e GetByIDReqValidationError) Cause() error

Cause function returns cause value.

func (GetByIDReqValidationError) Error

Error satisfies the builtin error interface

func (GetByIDReqValidationError) ErrorName

func (e GetByIDReqValidationError) ErrorName() string

ErrorName returns error name.

func (GetByIDReqValidationError) Field

Field function returns field value.

func (GetByIDReqValidationError) Key

Key function returns key value.

func (GetByIDReqValidationError) Reason

func (e GetByIDReqValidationError) Reason() string

Reason function returns reason value.

type GetByIDResp

type GetByIDResp struct {
	User *UserModel `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetByIDResp) Descriptor deprecated

func (*GetByIDResp) Descriptor() ([]byte, []int)

Deprecated: Use GetByIDResp.ProtoReflect.Descriptor instead.

func (*GetByIDResp) GetUser

func (x *GetByIDResp) GetUser() *UserModel

func (*GetByIDResp) ProtoMessage

func (*GetByIDResp) ProtoMessage()

func (*GetByIDResp) ProtoReflect

func (x *GetByIDResp) ProtoReflect() protoreflect.Message

func (*GetByIDResp) Reset

func (x *GetByIDResp) Reset()

func (*GetByIDResp) String

func (x *GetByIDResp) String() string

func (*GetByIDResp) Validate

func (m *GetByIDResp) Validate() error

Validate checks the field values on GetByIDResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetByIDRespValidationError

type GetByIDRespValidationError struct {
	// contains filtered or unexported fields
}

GetByIDRespValidationError is the validation error returned by GetByIDResp.Validate if the designated constraints aren't met.

func (GetByIDRespValidationError) Cause

Cause function returns cause value.

func (GetByIDRespValidationError) Error

Error satisfies the builtin error interface

func (GetByIDRespValidationError) ErrorName

func (e GetByIDRespValidationError) ErrorName() string

ErrorName returns error name.

func (GetByIDRespValidationError) Field

Field function returns field value.

func (GetByIDRespValidationError) Key

Key function returns key value.

func (GetByIDRespValidationError) Reason

Reason function returns reason value.

type GetMiniQRCodeReq

type GetMiniQRCodeReq struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMiniQRCodeReq) Descriptor deprecated

func (*GetMiniQRCodeReq) Descriptor() ([]byte, []int)

Deprecated: Use GetMiniQRCodeReq.ProtoReflect.Descriptor instead.

func (*GetMiniQRCodeReq) GetCode

func (x *GetMiniQRCodeReq) GetCode() string

func (*GetMiniQRCodeReq) ProtoMessage

func (*GetMiniQRCodeReq) ProtoMessage()

func (*GetMiniQRCodeReq) ProtoReflect

func (x *GetMiniQRCodeReq) ProtoReflect() protoreflect.Message

func (*GetMiniQRCodeReq) Reset

func (x *GetMiniQRCodeReq) Reset()

func (*GetMiniQRCodeReq) String

func (x *GetMiniQRCodeReq) String() string

func (*GetMiniQRCodeReq) Validate

func (m *GetMiniQRCodeReq) Validate() error

Validate checks the field values on GetMiniQRCodeReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetMiniQRCodeReqValidationError

type GetMiniQRCodeReqValidationError struct {
	// contains filtered or unexported fields
}

GetMiniQRCodeReqValidationError is the validation error returned by GetMiniQRCodeReq.Validate if the designated constraints aren't met.

func (GetMiniQRCodeReqValidationError) Cause

Cause function returns cause value.

func (GetMiniQRCodeReqValidationError) Error

Error satisfies the builtin error interface

func (GetMiniQRCodeReqValidationError) ErrorName

ErrorName returns error name.

func (GetMiniQRCodeReqValidationError) Field

Field function returns field value.

func (GetMiniQRCodeReqValidationError) Key

Key function returns key value.

func (GetMiniQRCodeReqValidationError) Reason

Reason function returns reason value.

type GetMiniQRCodeResp

type GetMiniQRCodeResp struct {
	Qrcode string `protobuf:"bytes,1,opt,name=qrcode,proto3" json:"qrcode,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMiniQRCodeResp) Descriptor deprecated

func (*GetMiniQRCodeResp) Descriptor() ([]byte, []int)

Deprecated: Use GetMiniQRCodeResp.ProtoReflect.Descriptor instead.

func (*GetMiniQRCodeResp) GetQrcode

func (x *GetMiniQRCodeResp) GetQrcode() string

func (*GetMiniQRCodeResp) ProtoMessage

func (*GetMiniQRCodeResp) ProtoMessage()

func (*GetMiniQRCodeResp) ProtoReflect

func (x *GetMiniQRCodeResp) ProtoReflect() protoreflect.Message

func (*GetMiniQRCodeResp) Reset

func (x *GetMiniQRCodeResp) Reset()

func (*GetMiniQRCodeResp) String

func (x *GetMiniQRCodeResp) String() string

func (*GetMiniQRCodeResp) Validate

func (m *GetMiniQRCodeResp) Validate() error

Validate checks the field values on GetMiniQRCodeResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetMiniQRCodeRespValidationError

type GetMiniQRCodeRespValidationError struct {
	// contains filtered or unexported fields
}

GetMiniQRCodeRespValidationError is the validation error returned by GetMiniQRCodeResp.Validate if the designated constraints aren't met.

func (GetMiniQRCodeRespValidationError) Cause

Cause function returns cause value.

func (GetMiniQRCodeRespValidationError) Error

Error satisfies the builtin error interface

func (GetMiniQRCodeRespValidationError) ErrorName

ErrorName returns error name.

func (GetMiniQRCodeRespValidationError) Field

Field function returns field value.

func (GetMiniQRCodeRespValidationError) Key

Key function returns key value.

func (GetMiniQRCodeRespValidationError) Reason

Reason function returns reason value.

type LoginReq

type LoginReq struct {
	Account  string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Code     string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	Type     string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginReq) Descriptor deprecated

func (*LoginReq) Descriptor() ([]byte, []int)

Deprecated: Use LoginReq.ProtoReflect.Descriptor instead.

func (*LoginReq) GetAccount

func (x *LoginReq) GetAccount() string

func (*LoginReq) GetCode

func (x *LoginReq) GetCode() string

func (*LoginReq) GetPassword

func (x *LoginReq) GetPassword() string

func (*LoginReq) GetType

func (x *LoginReq) GetType() string

func (*LoginReq) ProtoMessage

func (*LoginReq) ProtoMessage()

func (*LoginReq) ProtoReflect

func (x *LoginReq) ProtoReflect() protoreflect.Message

func (*LoginReq) Reset

func (x *LoginReq) Reset()

func (*LoginReq) String

func (x *LoginReq) String() string

func (*LoginReq) Validate

func (m *LoginReq) Validate() error

Validate checks the field values on LoginReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type LoginReqValidationError

type LoginReqValidationError struct {
	// contains filtered or unexported fields
}

LoginReqValidationError is the validation error returned by LoginReq.Validate if the designated constraints aren't met.

func (LoginReqValidationError) Cause

func (e LoginReqValidationError) Cause() error

Cause function returns cause value.

func (LoginReqValidationError) Error

func (e LoginReqValidationError) Error() string

Error satisfies the builtin error interface

func (LoginReqValidationError) ErrorName

func (e LoginReqValidationError) ErrorName() string

ErrorName returns error name.

func (LoginReqValidationError) Field

func (e LoginReqValidationError) Field() string

Field function returns field value.

func (LoginReqValidationError) Key

func (e LoginReqValidationError) Key() bool

Key function returns key value.

func (LoginReqValidationError) Reason

func (e LoginReqValidationError) Reason() string

Reason function returns reason value.

type LoginResp

type LoginResp struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResp) Descriptor deprecated

func (*LoginResp) Descriptor() ([]byte, []int)

Deprecated: Use LoginResp.ProtoReflect.Descriptor instead.

func (*LoginResp) GetToken

func (x *LoginResp) GetToken() string

func (*LoginResp) ProtoMessage

func (*LoginResp) ProtoMessage()

func (*LoginResp) ProtoReflect

func (x *LoginResp) ProtoReflect() protoreflect.Message

func (*LoginResp) Reset

func (x *LoginResp) Reset()

func (*LoginResp) String

func (x *LoginResp) String() string

func (*LoginResp) Validate

func (m *LoginResp) Validate() error

Validate checks the field values on LoginResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type LoginRespValidationError

type LoginRespValidationError struct {
	// contains filtered or unexported fields
}

LoginRespValidationError is the validation error returned by LoginResp.Validate if the designated constraints aren't met.

func (LoginRespValidationError) Cause

func (e LoginRespValidationError) Cause() error

Cause function returns cause value.

func (LoginRespValidationError) Error

func (e LoginRespValidationError) Error() string

Error satisfies the builtin error interface

func (LoginRespValidationError) ErrorName

func (e LoginRespValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRespValidationError) Field

func (e LoginRespValidationError) Field() string

Field function returns field value.

func (LoginRespValidationError) Key

Key function returns key value.

func (LoginRespValidationError) Reason

func (e LoginRespValidationError) Reason() string

Reason function returns reason value.

type MiniLoginReq

type MiniLoginReq struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*MiniLoginReq) Descriptor deprecated

func (*MiniLoginReq) Descriptor() ([]byte, []int)

Deprecated: Use MiniLoginReq.ProtoReflect.Descriptor instead.

func (*MiniLoginReq) GetCode

func (x *MiniLoginReq) GetCode() string

func (*MiniLoginReq) ProtoMessage

func (*MiniLoginReq) ProtoMessage()

func (*MiniLoginReq) ProtoReflect

func (x *MiniLoginReq) ProtoReflect() protoreflect.Message

func (*MiniLoginReq) Reset

func (x *MiniLoginReq) Reset()

func (*MiniLoginReq) String

func (x *MiniLoginReq) String() string

func (*MiniLoginReq) Validate

func (m *MiniLoginReq) Validate() error

Validate checks the field values on MiniLoginReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type MiniLoginReqValidationError

type MiniLoginReqValidationError struct {
	// contains filtered or unexported fields
}

MiniLoginReqValidationError is the validation error returned by MiniLoginReq.Validate if the designated constraints aren't met.

func (MiniLoginReqValidationError) Cause

Cause function returns cause value.

func (MiniLoginReqValidationError) Error

Error satisfies the builtin error interface

func (MiniLoginReqValidationError) ErrorName

func (e MiniLoginReqValidationError) ErrorName() string

ErrorName returns error name.

func (MiniLoginReqValidationError) Field

Field function returns field value.

func (MiniLoginReqValidationError) Key

Key function returns key value.

func (MiniLoginReqValidationError) Reason

Reason function returns reason value.

type MiniLoginResp

type MiniLoginResp struct {
	Token    string    `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	UserInfo *UserInfo `protobuf:"bytes,2,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"`
	// contains filtered or unexported fields
}

func (*MiniLoginResp) Descriptor deprecated

func (*MiniLoginResp) Descriptor() ([]byte, []int)

Deprecated: Use MiniLoginResp.ProtoReflect.Descriptor instead.

func (*MiniLoginResp) GetToken

func (x *MiniLoginResp) GetToken() string

func (*MiniLoginResp) GetUserInfo

func (x *MiniLoginResp) GetUserInfo() *UserInfo

func (*MiniLoginResp) ProtoMessage

func (*MiniLoginResp) ProtoMessage()

func (*MiniLoginResp) ProtoReflect

func (x *MiniLoginResp) ProtoReflect() protoreflect.Message

func (*MiniLoginResp) Reset

func (x *MiniLoginResp) Reset()

func (*MiniLoginResp) String

func (x *MiniLoginResp) String() string

func (*MiniLoginResp) Validate

func (m *MiniLoginResp) Validate() error

Validate checks the field values on MiniLoginResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type MiniLoginRespValidationError

type MiniLoginRespValidationError struct {
	// contains filtered or unexported fields
}

MiniLoginRespValidationError is the validation error returned by MiniLoginResp.Validate if the designated constraints aren't met.

func (MiniLoginRespValidationError) Cause

Cause function returns cause value.

func (MiniLoginRespValidationError) Error

Error satisfies the builtin error interface

func (MiniLoginRespValidationError) ErrorName

func (e MiniLoginRespValidationError) ErrorName() string

ErrorName returns error name.

func (MiniLoginRespValidationError) Field

Field function returns field value.

func (MiniLoginRespValidationError) Key

Key function returns key value.

func (MiniLoginRespValidationError) Reason

Reason function returns reason value.

type Result

type Result struct {
	Code    int64      `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Result) Descriptor deprecated

func (*Result) Descriptor() ([]byte, []int)

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetCode

func (x *Result) GetCode() int64

func (*Result) GetData

func (x *Result) GetData() *anypb.Any

func (*Result) GetMessage

func (x *Result) GetMessage() string

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

func (x *Result) ProtoReflect() protoreflect.Message

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

func (*Result) Validate

func (m *Result) Validate() error

Validate checks the field values on Result with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ResultValidationError

type ResultValidationError struct {
	// contains filtered or unexported fields
}

ResultValidationError is the validation error returned by Result.Validate if the designated constraints aren't met.

func (ResultValidationError) Cause

func (e ResultValidationError) Cause() error

Cause function returns cause value.

func (ResultValidationError) Error

func (e ResultValidationError) Error() string

Error satisfies the builtin error interface

func (ResultValidationError) ErrorName

func (e ResultValidationError) ErrorName() string

ErrorName returns error name.

func (ResultValidationError) Field

func (e ResultValidationError) Field() string

Field function returns field value.

func (ResultValidationError) Key

func (e ResultValidationError) Key() bool

Key function returns key value.

func (ResultValidationError) Reason

func (e ResultValidationError) Reason() string

Reason function returns reason value.

type SendVerificationCodeReq

type SendVerificationCodeReq struct {
	Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Type    string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*SendVerificationCodeReq) Descriptor deprecated

func (*SendVerificationCodeReq) Descriptor() ([]byte, []int)

Deprecated: Use SendVerificationCodeReq.ProtoReflect.Descriptor instead.

func (*SendVerificationCodeReq) GetAccount

func (x *SendVerificationCodeReq) GetAccount() string

func (*SendVerificationCodeReq) GetType

func (x *SendVerificationCodeReq) GetType() string

func (*SendVerificationCodeReq) ProtoMessage

func (*SendVerificationCodeReq) ProtoMessage()

func (*SendVerificationCodeReq) ProtoReflect

func (x *SendVerificationCodeReq) ProtoReflect() protoreflect.Message

func (*SendVerificationCodeReq) Reset

func (x *SendVerificationCodeReq) Reset()

func (*SendVerificationCodeReq) String

func (x *SendVerificationCodeReq) String() string

func (*SendVerificationCodeReq) Validate

func (m *SendVerificationCodeReq) Validate() error

Validate checks the field values on SendVerificationCodeReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SendVerificationCodeReqValidationError

type SendVerificationCodeReqValidationError struct {
	// contains filtered or unexported fields
}

SendVerificationCodeReqValidationError is the validation error returned by SendVerificationCodeReq.Validate if the designated constraints aren't met.

func (SendVerificationCodeReqValidationError) Cause

Cause function returns cause value.

func (SendVerificationCodeReqValidationError) Error

Error satisfies the builtin error interface

func (SendVerificationCodeReqValidationError) ErrorName

ErrorName returns error name.

func (SendVerificationCodeReqValidationError) Field

Field function returns field value.

func (SendVerificationCodeReqValidationError) Key

Key function returns key value.

func (SendVerificationCodeReqValidationError) Reason

Reason function returns reason value.

type UnimplementedAccountServer

type UnimplementedAccountServer struct {
}

UnimplementedAccountServer must be embedded to have forward compatible implementations.

func (UnimplementedAccountServer) Auth

func (UnimplementedAccountServer) GetByID

func (UnimplementedAccountServer) GetMiniQRCode

func (UnimplementedAccountServer) Login

func (UnimplementedAccountServer) MiniLogin

func (UnimplementedAccountServer) Ping

func (UnimplementedAccountServer) SendVerificationCode

func (UnimplementedAccountServer) UpdatesUser

type UnsafeAccountServer

type UnsafeAccountServer interface {
	// contains filtered or unexported methods
}

UnsafeAccountServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServer will result in compilation errors.

type UpdatesUserReq

type UpdatesUserReq struct {
	NickName  string `protobuf:"bytes,2,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
	AvatarUrl string `protobuf:"bytes,3,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatesUserReq) Descriptor deprecated

func (*UpdatesUserReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdatesUserReq.ProtoReflect.Descriptor instead.

func (*UpdatesUserReq) GetAvatarUrl

func (x *UpdatesUserReq) GetAvatarUrl() string

func (*UpdatesUserReq) GetNickName

func (x *UpdatesUserReq) GetNickName() string

func (*UpdatesUserReq) ProtoMessage

func (*UpdatesUserReq) ProtoMessage()

func (*UpdatesUserReq) ProtoReflect

func (x *UpdatesUserReq) ProtoReflect() protoreflect.Message

func (*UpdatesUserReq) Reset

func (x *UpdatesUserReq) Reset()

func (*UpdatesUserReq) String

func (x *UpdatesUserReq) String() string

func (*UpdatesUserReq) Validate

func (m *UpdatesUserReq) Validate() error

Validate checks the field values on UpdatesUserReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UpdatesUserReqValidationError

type UpdatesUserReqValidationError struct {
	// contains filtered or unexported fields
}

UpdatesUserReqValidationError is the validation error returned by UpdatesUserReq.Validate if the designated constraints aren't met.

func (UpdatesUserReqValidationError) Cause

Cause function returns cause value.

func (UpdatesUserReqValidationError) Error

Error satisfies the builtin error interface

func (UpdatesUserReqValidationError) ErrorName

func (e UpdatesUserReqValidationError) ErrorName() string

ErrorName returns error name.

func (UpdatesUserReqValidationError) Field

Field function returns field value.

func (UpdatesUserReqValidationError) Key

Key function returns key value.

func (UpdatesUserReqValidationError) Reason

Reason function returns reason value.

type UserInfo

type UserInfo struct {
	NickName  string `protobuf:"bytes,1,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
	AvatarUrl string `protobuf:"bytes,2,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
	// contains filtered or unexported fields
}

func (*UserInfo) Descriptor deprecated

func (*UserInfo) Descriptor() ([]byte, []int)

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetAvatarUrl

func (x *UserInfo) GetAvatarUrl() string

func (*UserInfo) GetNickName

func (x *UserInfo) GetNickName() string

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

func (x *UserInfo) ProtoReflect() protoreflect.Message

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

func (*UserInfo) Validate

func (m *UserInfo) Validate() error

Validate checks the field values on UserInfo with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UserInfoValidationError

type UserInfoValidationError struct {
	// contains filtered or unexported fields
}

UserInfoValidationError is the validation error returned by UserInfo.Validate if the designated constraints aren't met.

func (UserInfoValidationError) Cause

func (e UserInfoValidationError) Cause() error

Cause function returns cause value.

func (UserInfoValidationError) Error

func (e UserInfoValidationError) Error() string

Error satisfies the builtin error interface

func (UserInfoValidationError) ErrorName

func (e UserInfoValidationError) ErrorName() string

ErrorName returns error name.

func (UserInfoValidationError) Field

func (e UserInfoValidationError) Field() string

Field function returns field value.

func (UserInfoValidationError) Key

func (e UserInfoValidationError) Key() bool

Key function returns key value.

func (UserInfoValidationError) Reason

func (e UserInfoValidationError) Reason() string

Reason function returns reason value.

type UserModel

type UserModel struct {
	Id   uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UserModel) Descriptor deprecated

func (*UserModel) Descriptor() ([]byte, []int)

Deprecated: Use UserModel.ProtoReflect.Descriptor instead.

func (*UserModel) GetId

func (x *UserModel) GetId() uint64

func (*UserModel) GetName

func (x *UserModel) GetName() string

func (*UserModel) ProtoMessage

func (*UserModel) ProtoMessage()

func (*UserModel) ProtoReflect

func (x *UserModel) ProtoReflect() protoreflect.Message

func (*UserModel) Reset

func (x *UserModel) Reset()

func (*UserModel) String

func (x *UserModel) String() string

func (*UserModel) Validate

func (m *UserModel) Validate() error

Validate checks the field values on UserModel with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UserModelValidationError

type UserModelValidationError struct {
	// contains filtered or unexported fields
}

UserModelValidationError is the validation error returned by UserModel.Validate if the designated constraints aren't met.

func (UserModelValidationError) Cause

func (e UserModelValidationError) Cause() error

Cause function returns cause value.

func (UserModelValidationError) Error

func (e UserModelValidationError) Error() string

Error satisfies the builtin error interface

func (UserModelValidationError) ErrorName

func (e UserModelValidationError) ErrorName() string

ErrorName returns error name.

func (UserModelValidationError) Field

func (e UserModelValidationError) Field() string

Field function returns field value.

func (UserModelValidationError) Key

Key function returns key value.

func (UserModelValidationError) Reason

func (e UserModelValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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