Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterAccountHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAccountHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountClient) error
- func RegisterAccountHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAccountHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountServer) error
- func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)
- type AccountClient
- type AccountServer
- type AuthReq
- type AuthReqValidationError
- type AuthResp
- type AuthRespValidationError
- type Empty
- type EmptyValidationError
- type GetByIDReq
- type GetByIDReqValidationError
- type GetByIDResp
- func (*GetByIDResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetByIDResp) GetUser() *UserModel
- func (*GetByIDResp) ProtoMessage()
- func (x *GetByIDResp) ProtoReflect() protoreflect.Message
- func (x *GetByIDResp) Reset()
- func (x *GetByIDResp) String() string
- func (m *GetByIDResp) Validate() error
- type GetByIDRespValidationError
- func (e GetByIDRespValidationError) Cause() error
- func (e GetByIDRespValidationError) Error() string
- func (e GetByIDRespValidationError) ErrorName() string
- func (e GetByIDRespValidationError) Field() string
- func (e GetByIDRespValidationError) Key() bool
- func (e GetByIDRespValidationError) Reason() string
- type GetMiniQRCodeReq
- func (*GetMiniQRCodeReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetMiniQRCodeReq) GetCode() string
- func (*GetMiniQRCodeReq) ProtoMessage()
- func (x *GetMiniQRCodeReq) ProtoReflect() protoreflect.Message
- func (x *GetMiniQRCodeReq) Reset()
- func (x *GetMiniQRCodeReq) String() string
- func (m *GetMiniQRCodeReq) Validate() error
- type GetMiniQRCodeReqValidationError
- func (e GetMiniQRCodeReqValidationError) Cause() error
- func (e GetMiniQRCodeReqValidationError) Error() string
- func (e GetMiniQRCodeReqValidationError) ErrorName() string
- func (e GetMiniQRCodeReqValidationError) Field() string
- func (e GetMiniQRCodeReqValidationError) Key() bool
- func (e GetMiniQRCodeReqValidationError) Reason() string
- type GetMiniQRCodeResp
- func (*GetMiniQRCodeResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetMiniQRCodeResp) GetQrcode() string
- func (*GetMiniQRCodeResp) ProtoMessage()
- func (x *GetMiniQRCodeResp) ProtoReflect() protoreflect.Message
- func (x *GetMiniQRCodeResp) Reset()
- func (x *GetMiniQRCodeResp) String() string
- func (m *GetMiniQRCodeResp) Validate() error
- type GetMiniQRCodeRespValidationError
- func (e GetMiniQRCodeRespValidationError) Cause() error
- func (e GetMiniQRCodeRespValidationError) Error() string
- func (e GetMiniQRCodeRespValidationError) ErrorName() string
- func (e GetMiniQRCodeRespValidationError) Field() string
- func (e GetMiniQRCodeRespValidationError) Key() bool
- func (e GetMiniQRCodeRespValidationError) Reason() string
- type LoginReq
- func (*LoginReq) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReq) GetAccount() string
- func (x *LoginReq) GetCode() string
- func (x *LoginReq) GetPassword() string
- func (x *LoginReq) GetType() string
- func (*LoginReq) ProtoMessage()
- func (x *LoginReq) ProtoReflect() protoreflect.Message
- func (x *LoginReq) Reset()
- func (x *LoginReq) String() string
- func (m *LoginReq) Validate() error
- type LoginReqValidationError
- type LoginResp
- type LoginRespValidationError
- type MiniLoginReq
- func (*MiniLoginReq) Descriptor() ([]byte, []int)deprecated
- func (x *MiniLoginReq) GetCode() string
- func (*MiniLoginReq) ProtoMessage()
- func (x *MiniLoginReq) ProtoReflect() protoreflect.Message
- func (x *MiniLoginReq) Reset()
- func (x *MiniLoginReq) String() string
- func (m *MiniLoginReq) Validate() error
- type MiniLoginReqValidationError
- func (e MiniLoginReqValidationError) Cause() error
- func (e MiniLoginReqValidationError) Error() string
- func (e MiniLoginReqValidationError) ErrorName() string
- func (e MiniLoginReqValidationError) Field() string
- func (e MiniLoginReqValidationError) Key() bool
- func (e MiniLoginReqValidationError) Reason() string
- type MiniLoginResp
- func (*MiniLoginResp) Descriptor() ([]byte, []int)deprecated
- func (x *MiniLoginResp) GetToken() string
- func (x *MiniLoginResp) GetUserInfo() *UserInfo
- func (*MiniLoginResp) ProtoMessage()
- func (x *MiniLoginResp) ProtoReflect() protoreflect.Message
- func (x *MiniLoginResp) Reset()
- func (x *MiniLoginResp) String() string
- func (m *MiniLoginResp) Validate() error
- type MiniLoginRespValidationError
- func (e MiniLoginRespValidationError) Cause() error
- func (e MiniLoginRespValidationError) Error() string
- func (e MiniLoginRespValidationError) ErrorName() string
- func (e MiniLoginRespValidationError) Field() string
- func (e MiniLoginRespValidationError) Key() bool
- func (e MiniLoginRespValidationError) Reason() string
- type Result
- func (*Result) Descriptor() ([]byte, []int)deprecated
- func (x *Result) GetCode() int64
- func (x *Result) GetData() *anypb.Any
- func (x *Result) GetMessage() string
- func (*Result) ProtoMessage()
- func (x *Result) ProtoReflect() protoreflect.Message
- func (x *Result) Reset()
- func (x *Result) String() string
- func (m *Result) Validate() error
- type ResultValidationError
- type SendVerificationCodeReq
- func (*SendVerificationCodeReq) Descriptor() ([]byte, []int)deprecated
- func (x *SendVerificationCodeReq) GetAccount() string
- func (x *SendVerificationCodeReq) GetType() string
- func (*SendVerificationCodeReq) ProtoMessage()
- func (x *SendVerificationCodeReq) ProtoReflect() protoreflect.Message
- func (x *SendVerificationCodeReq) Reset()
- func (x *SendVerificationCodeReq) String() string
- func (m *SendVerificationCodeReq) Validate() error
- type SendVerificationCodeReqValidationError
- func (e SendVerificationCodeReqValidationError) Cause() error
- func (e SendVerificationCodeReqValidationError) Error() string
- func (e SendVerificationCodeReqValidationError) ErrorName() string
- func (e SendVerificationCodeReqValidationError) Field() string
- func (e SendVerificationCodeReqValidationError) Key() bool
- func (e SendVerificationCodeReqValidationError) Reason() string
- type UnimplementedAccountServer
- func (UnimplementedAccountServer) Auth(context.Context, *AuthReq) (*AuthResp, error)
- func (UnimplementedAccountServer) GetByID(context.Context, *GetByIDReq) (*GetByIDResp, error)
- func (UnimplementedAccountServer) GetMiniQRCode(context.Context, *GetMiniQRCodeReq) (*GetMiniQRCodeResp, error)
- func (UnimplementedAccountServer) Login(context.Context, *LoginReq) (*LoginResp, error)
- func (UnimplementedAccountServer) MiniLogin(context.Context, *MiniLoginReq) (*MiniLoginResp, error)
- func (UnimplementedAccountServer) Ping(context.Context, *Empty) (*Result, error)
- func (UnimplementedAccountServer) SendVerificationCode(context.Context, *SendVerificationCodeReq) (*Empty, error)
- func (UnimplementedAccountServer) UpdatesUser(context.Context, *UpdatesUserReq) (*Empty, error)
- type UnsafeAccountServer
- type UpdatesUserReq
- func (*UpdatesUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatesUserReq) GetAvatarUrl() string
- func (x *UpdatesUserReq) GetNickName() string
- func (*UpdatesUserReq) ProtoMessage()
- func (x *UpdatesUserReq) ProtoReflect() protoreflect.Message
- func (x *UpdatesUserReq) Reset()
- func (x *UpdatesUserReq) String() string
- func (m *UpdatesUserReq) Validate() error
- type UpdatesUserReqValidationError
- func (e UpdatesUserReqValidationError) Cause() error
- func (e UpdatesUserReqValidationError) Error() string
- func (e UpdatesUserReqValidationError) ErrorName() string
- func (e UpdatesUserReqValidationError) Field() string
- func (e UpdatesUserReqValidationError) Key() bool
- func (e UpdatesUserReqValidationError) Reason() string
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfo) GetAvatarUrl() string
- func (x *UserInfo) GetNickName() string
- func (*UserInfo) ProtoMessage()
- func (x *UserInfo) ProtoReflect() protoreflect.Message
- func (x *UserInfo) Reset()
- func (x *UserInfo) String() string
- func (m *UserInfo) Validate() error
- type UserInfoValidationError
- type UserModel
- func (*UserModel) Descriptor() ([]byte, []int)deprecated
- func (x *UserModel) GetId() uint64
- func (x *UserModel) GetName() string
- func (*UserModel) ProtoMessage()
- func (x *UserModel) ProtoReflect() protoreflect.Message
- func (x *UserModel) Reset()
- func (x *UserModel) String() string
- func (m *UserModel) Validate() error
- type UserModelValidationError
Constants ¶
This section is empty.
Variables ¶
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)
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) ProtoMessage ¶
func (*AuthReq) ProtoMessage()
func (*AuthReq) ProtoReflect ¶
func (x *AuthReq) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*AuthResp) ProtoMessage()
func (*AuthResp) ProtoReflect ¶
func (x *AuthResp) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
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 ¶
func (e GetByIDReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetByIDReqValidationError) ErrorName ¶
func (e GetByIDReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetByIDReqValidationError) Field ¶
func (e GetByIDReqValidationError) Field() string
Field function returns field value.
func (GetByIDReqValidationError) Key ¶
func (e GetByIDReqValidationError) Key() bool
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 ¶
func (e GetByIDRespValidationError) Cause() error
Cause function returns cause value.
func (GetByIDRespValidationError) Error ¶
func (e GetByIDRespValidationError) Error() string
Error satisfies the builtin error interface
func (GetByIDRespValidationError) ErrorName ¶
func (e GetByIDRespValidationError) ErrorName() string
ErrorName returns error name.
func (GetByIDRespValidationError) Field ¶
func (e GetByIDRespValidationError) Field() string
Field function returns field value.
func (GetByIDRespValidationError) Key ¶
func (e GetByIDRespValidationError) Key() bool
Key function returns key value.
func (GetByIDRespValidationError) Reason ¶
func (e GetByIDRespValidationError) Reason() string
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 ¶
func (e GetMiniQRCodeReqValidationError) Cause() error
Cause function returns cause value.
func (GetMiniQRCodeReqValidationError) Error ¶
func (e GetMiniQRCodeReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetMiniQRCodeReqValidationError) ErrorName ¶
func (e GetMiniQRCodeReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetMiniQRCodeReqValidationError) Field ¶
func (e GetMiniQRCodeReqValidationError) Field() string
Field function returns field value.
func (GetMiniQRCodeReqValidationError) Key ¶
func (e GetMiniQRCodeReqValidationError) Key() bool
Key function returns key value.
func (GetMiniQRCodeReqValidationError) Reason ¶
func (e GetMiniQRCodeReqValidationError) Reason() string
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 ¶
func (e GetMiniQRCodeRespValidationError) Cause() error
Cause function returns cause value.
func (GetMiniQRCodeRespValidationError) Error ¶
func (e GetMiniQRCodeRespValidationError) Error() string
Error satisfies the builtin error interface
func (GetMiniQRCodeRespValidationError) ErrorName ¶
func (e GetMiniQRCodeRespValidationError) ErrorName() string
ErrorName returns error name.
func (GetMiniQRCodeRespValidationError) Field ¶
func (e GetMiniQRCodeRespValidationError) Field() string
Field function returns field value.
func (GetMiniQRCodeRespValidationError) Key ¶
func (e GetMiniQRCodeRespValidationError) Key() bool
Key function returns key value.
func (GetMiniQRCodeRespValidationError) Reason ¶
func (e GetMiniQRCodeRespValidationError) Reason() string
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) GetAccount ¶
func (*LoginReq) GetPassword ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*LoginResp) ProtoMessage()
func (*LoginResp) ProtoReflect ¶
func (x *LoginResp) ProtoReflect() protoreflect.Message
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 ¶
func (e LoginRespValidationError) Key() bool
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 ¶
func (e MiniLoginReqValidationError) Cause() error
Cause function returns cause value.
func (MiniLoginReqValidationError) Error ¶
func (e MiniLoginReqValidationError) Error() string
Error satisfies the builtin error interface
func (MiniLoginReqValidationError) ErrorName ¶
func (e MiniLoginReqValidationError) ErrorName() string
ErrorName returns error name.
func (MiniLoginReqValidationError) Field ¶
func (e MiniLoginReqValidationError) Field() string
Field function returns field value.
func (MiniLoginReqValidationError) Key ¶
func (e MiniLoginReqValidationError) Key() bool
Key function returns key value.
func (MiniLoginReqValidationError) Reason ¶
func (e MiniLoginReqValidationError) Reason() string
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 ¶
func (e MiniLoginRespValidationError) Cause() error
Cause function returns cause value.
func (MiniLoginRespValidationError) Error ¶
func (e MiniLoginRespValidationError) Error() string
Error satisfies the builtin error interface
func (MiniLoginRespValidationError) ErrorName ¶
func (e MiniLoginRespValidationError) ErrorName() string
ErrorName returns error name.
func (MiniLoginRespValidationError) Field ¶
func (e MiniLoginRespValidationError) Field() string
Field function returns field value.
func (MiniLoginRespValidationError) Key ¶
func (e MiniLoginRespValidationError) Key() bool
Key function returns key value.
func (MiniLoginRespValidationError) Reason ¶
func (e MiniLoginRespValidationError) Reason() string
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) GetMessage ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
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 ¶
func (e SendVerificationCodeReqValidationError) Cause() error
Cause function returns cause value.
func (SendVerificationCodeReqValidationError) Error ¶
func (e SendVerificationCodeReqValidationError) Error() string
Error satisfies the builtin error interface
func (SendVerificationCodeReqValidationError) ErrorName ¶
func (e SendVerificationCodeReqValidationError) ErrorName() string
ErrorName returns error name.
func (SendVerificationCodeReqValidationError) Field ¶
func (e SendVerificationCodeReqValidationError) Field() string
Field function returns field value.
func (SendVerificationCodeReqValidationError) Key ¶
func (e SendVerificationCodeReqValidationError) Key() bool
Key function returns key value.
func (SendVerificationCodeReqValidationError) Reason ¶
func (e SendVerificationCodeReqValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAccountServer ¶
type UnimplementedAccountServer struct { }
UnimplementedAccountServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountServer) GetByID ¶
func (UnimplementedAccountServer) GetByID(context.Context, *GetByIDReq) (*GetByIDResp, error)
func (UnimplementedAccountServer) GetMiniQRCode ¶
func (UnimplementedAccountServer) GetMiniQRCode(context.Context, *GetMiniQRCodeReq) (*GetMiniQRCodeResp, error)
func (UnimplementedAccountServer) MiniLogin ¶
func (UnimplementedAccountServer) MiniLogin(context.Context, *MiniLoginReq) (*MiniLoginResp, error)
func (UnimplementedAccountServer) SendVerificationCode ¶
func (UnimplementedAccountServer) SendVerificationCode(context.Context, *SendVerificationCodeReq) (*Empty, error)
func (UnimplementedAccountServer) UpdatesUser ¶
func (UnimplementedAccountServer) UpdatesUser(context.Context, *UpdatesUserReq) (*Empty, error)
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 ¶
func (e UpdatesUserReqValidationError) Cause() error
Cause function returns cause value.
func (UpdatesUserReqValidationError) Error ¶
func (e UpdatesUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatesUserReqValidationError) ErrorName ¶
func (e UpdatesUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatesUserReqValidationError) Field ¶
func (e UpdatesUserReqValidationError) Field() string
Field function returns field value.
func (UpdatesUserReqValidationError) Key ¶
func (e UpdatesUserReqValidationError) Key() bool
Key function returns key value.
func (UpdatesUserReqValidationError) Reason ¶
func (e UpdatesUserReqValidationError) Reason() string
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) GetAvatarUrl ¶
func (*UserInfo) GetNickName ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*UserModel) ProtoMessage()
func (*UserModel) ProtoReflect ¶
func (x *UserModel) ProtoReflect() protoreflect.Message
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 ¶
func (e UserModelValidationError) Key() bool
Key function returns key value.
func (UserModelValidationError) Reason ¶
func (e UserModelValidationError) Reason() string
Reason function returns reason value.