Documentation ¶
Index ¶
- Variables
- func RegisterAuthServiceHTTPServer(s *http.Server, srv AuthServiceHTTPServer)
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- func RegisterUserServiceHTTPServer(s *http.Server, srv UserServiceHTTPServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type AuthServiceClient
- type AuthServiceHTTPClient
- type AuthServiceHTTPClientImpl
- func (c *AuthServiceHTTPClientImpl) Captcha(ctx context.Context, in *CaptchaReq, opts ...http.CallOption) (*CaptchaReply, error)
- func (c *AuthServiceHTTPClientImpl) Login(ctx context.Context, in *LoginReq, opts ...http.CallOption) (*LoginToken, error)
- func (c *AuthServiceHTTPClientImpl) NewPasswd(ctx context.Context, in *NewPasswdReq, opts ...http.CallOption) (*v1.Empty, error)
- func (c *AuthServiceHTTPClientImpl) RefreshToken(ctx context.Context, in *v1.Empty, opts ...http.CallOption) (*LoginToken, error)
- type AuthServiceHTTPServer
- type AuthServiceServer
- type CaptchaReply
- func (*CaptchaReply) Descriptor() ([]byte, []int)deprecated
- func (x *CaptchaReply) GetImgBase64() string
- func (*CaptchaReply) ProtoMessage()
- func (x *CaptchaReply) ProtoReflect() protoreflect.Message
- func (x *CaptchaReply) Reset()
- func (x *CaptchaReply) String() string
- func (m *CaptchaReply) Validate() error
- func (m *CaptchaReply) ValidateAll() error
- type CaptchaReplyMultiError
- type CaptchaReplyValidationError
- func (e CaptchaReplyValidationError) Cause() error
- func (e CaptchaReplyValidationError) Error() string
- func (e CaptchaReplyValidationError) ErrorName() string
- func (e CaptchaReplyValidationError) Field() string
- func (e CaptchaReplyValidationError) Key() bool
- func (e CaptchaReplyValidationError) Reason() string
- type CaptchaReq
- func (*CaptchaReq) Descriptor() ([]byte, []int)deprecated
- func (x *CaptchaReq) GetUuid() string
- func (*CaptchaReq) ProtoMessage()
- func (x *CaptchaReq) ProtoReflect() protoreflect.Message
- func (x *CaptchaReq) Reset()
- func (x *CaptchaReq) String() string
- func (m *CaptchaReq) Validate() error
- func (m *CaptchaReq) ValidateAll() error
- type CaptchaReqMultiError
- type CaptchaReqValidationError
- type CreateUserReq
- func (*CreateUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserReq) GetAccount() string
- func (x *CreateUserReq) GetEmail() string
- func (x *CreateUserReq) GetName() string
- func (x *CreateUserReq) GetPassword() string
- func (x *CreateUserReq) GetPhone() string
- func (x *CreateUserReq) GetRole() string
- func (*CreateUserReq) ProtoMessage()
- func (x *CreateUserReq) ProtoReflect() protoreflect.Message
- func (x *CreateUserReq) Reset()
- func (x *CreateUserReq) String() string
- func (m *CreateUserReq) Validate() error
- type CreateUserReqValidationError
- func (e CreateUserReqValidationError) Cause() error
- func (e CreateUserReqValidationError) Error() string
- func (e CreateUserReqValidationError) ErrorName() string
- func (e CreateUserReqValidationError) Field() string
- func (e CreateUserReqValidationError) Key() bool
- func (e CreateUserReqValidationError) Reason() string
- type ListUserReq
- func (*ListUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserReq) GetKeyword() string
- func (x *ListUserReq) GetOption() *v1.ListOption
- func (x *ListUserReq) GetRole() string
- func (*ListUserReq) ProtoMessage()
- func (x *ListUserReq) ProtoReflect() protoreflect.Message
- func (x *ListUserReq) Reset()
- func (x *ListUserReq) String() string
- func (m *ListUserReq) Validate() error
- type ListUserReqValidationError
- func (e ListUserReqValidationError) Cause() error
- func (e ListUserReqValidationError) Error() string
- func (e ListUserReqValidationError) ErrorName() string
- func (e ListUserReqValidationError) Field() string
- func (e ListUserReqValidationError) Key() bool
- func (e ListUserReqValidationError) Reason() string
- type LoginReq
- func (*LoginReq) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReq) GetAccount() string
- func (x *LoginReq) GetCode() string
- func (x *LoginReq) GetPasswd() string
- func (x *LoginReq) GetUuid() string
- func (*LoginReq) ProtoMessage()
- func (x *LoginReq) ProtoReflect() protoreflect.Message
- func (x *LoginReq) Reset()
- func (x *LoginReq) String() string
- func (m *LoginReq) Validate() error
- func (m *LoginReq) ValidateAll() error
- type LoginReqMultiError
- type LoginReqValidationError
- type LoginToken
- func (*LoginToken) Descriptor() ([]byte, []int)deprecated
- func (x *LoginToken) GetToken() string
- func (x *LoginToken) GetTokenExpires() string
- func (x *LoginToken) GetUserInfo() *v1.User
- func (*LoginToken) ProtoMessage()
- func (x *LoginToken) ProtoReflect() protoreflect.Message
- func (x *LoginToken) Reset()
- func (x *LoginToken) String() string
- func (m *LoginToken) Validate() error
- func (m *LoginToken) ValidateAll() error
- type LoginTokenMultiError
- type LoginTokenValidationError
- type NewPasswdReq
- func (*NewPasswdReq) Descriptor() ([]byte, []int)deprecated
- func (x *NewPasswdReq) GetAccount() string
- func (x *NewPasswdReq) GetOldPasswd() string
- func (x *NewPasswdReq) GetPasswd() string
- func (x *NewPasswdReq) GetPasswdConfirm() string
- func (*NewPasswdReq) ProtoMessage()
- func (x *NewPasswdReq) ProtoReflect() protoreflect.Message
- func (x *NewPasswdReq) Reset()
- func (x *NewPasswdReq) String() string
- func (m *NewPasswdReq) Validate() error
- func (m *NewPasswdReq) ValidateAll() error
- type NewPasswdReqMultiError
- type NewPasswdReqValidationError
- func (e NewPasswdReqValidationError) Cause() error
- func (e NewPasswdReqValidationError) Error() string
- func (e NewPasswdReqValidationError) ErrorName() string
- func (e NewPasswdReqValidationError) Field() string
- func (e NewPasswdReqValidationError) Key() bool
- func (e NewPasswdReqValidationError) Reason() string
- type UnimplementedAuthServiceServer
- func (UnimplementedAuthServiceServer) Captcha(context.Context, *CaptchaReq) (*CaptchaReply, error)
- func (UnimplementedAuthServiceServer) Login(context.Context, *LoginReq) (*LoginToken, error)
- func (UnimplementedAuthServiceServer) NewPasswd(context.Context, *NewPasswdReq) (*v1.Empty, error)
- func (UnimplementedAuthServiceServer) RefreshToken(context.Context, *v1.Empty) (*LoginToken, error)
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserReq) (*v1.User, error)
- func (UnimplementedUserServiceServer) DelUser(context.Context, *v1.Ids) (*v1.Empty, error)
- func (UnimplementedUserServiceServer) GetUser(context.Context, *v1.Id) (*v1.User, error)
- func (UnimplementedUserServiceServer) ListUser(context.Context, *ListUserReq) (*UserListReply, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserReq) (*v1.User, error)
- func (UnimplementedUserServiceServer) UserInfo(context.Context, *v1.Empty) (*v1.User, error)
- type UnsafeAuthServiceServer
- type UnsafeUserServiceServer
- type UpdateUserReq
- func (*UpdateUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserReq) GetEmail() string
- func (x *UpdateUserReq) GetId() uint32
- func (x *UpdateUserReq) GetName() string
- func (x *UpdateUserReq) GetPhone() string
- func (*UpdateUserReq) ProtoMessage()
- func (x *UpdateUserReq) ProtoReflect() protoreflect.Message
- func (x *UpdateUserReq) Reset()
- func (x *UpdateUserReq) String() string
- func (m *UpdateUserReq) Validate() error
- type UpdateUserReqValidationError
- func (e UpdateUserReqValidationError) Cause() error
- func (e UpdateUserReqValidationError) Error() string
- func (e UpdateUserReqValidationError) ErrorName() string
- func (e UpdateUserReqValidationError) Field() string
- func (e UpdateUserReqValidationError) Key() bool
- func (e UpdateUserReqValidationError) Reason() string
- type UserListReply
- func (*UserListReply) Descriptor() ([]byte, []int)deprecated
- func (x *UserListReply) GetList() []*v1.User
- func (x *UserListReply) GetTotal() int64
- func (*UserListReply) ProtoMessage()
- func (x *UserListReply) ProtoReflect() protoreflect.Message
- func (x *UserListReply) Reset()
- func (x *UserListReply) String() string
- func (m *UserListReply) Validate() error
- type UserListReplyValidationError
- func (e UserListReplyValidationError) Cause() error
- func (e UserListReplyValidationError) Error() string
- func (e UserListReplyValidationError) ErrorName() string
- func (e UserListReplyValidationError) Field() string
- func (e UserListReplyValidationError) Key() bool
- func (e UserListReplyValidationError) Reason() string
- type UserServiceClient
- type UserServiceHTTPClient
- type UserServiceHTTPClientImpl
- func (c *UserServiceHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserReq, opts ...http.CallOption) (*v1.User, error)
- func (c *UserServiceHTTPClientImpl) DelUser(ctx context.Context, in *v1.Ids, opts ...http.CallOption) (*v1.Empty, error)
- func (c *UserServiceHTTPClientImpl) GetUser(ctx context.Context, in *v1.Id, opts ...http.CallOption) (*v1.User, error)
- func (c *UserServiceHTTPClientImpl) ListUser(ctx context.Context, in *ListUserReq, opts ...http.CallOption) (*UserListReply, error)
- func (c *UserServiceHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...http.CallOption) (*v1.User, error)
- func (c *UserServiceHTTPClientImpl) UserInfo(ctx context.Context, in *v1.Empty, opts ...http.CallOption) (*v1.User, error)
- type UserServiceHTTPServer
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.service.users.v1.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Captcha", Handler: _AuthService_Captcha_Handler, }, { MethodName: "Login", Handler: _AuthService_Login_Handler, }, { MethodName: "RefreshToken", Handler: _AuthService_RefreshToken_Handler, }, { MethodName: "NewPasswd", Handler: _AuthService_NewPasswd_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/users/v1/auth.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService 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_users_v1_auth_proto protoreflect.FileDescriptor
var File_api_users_v1_user_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.users.v1.user.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListUser", Handler: _UserService_ListUser_Handler, }, { MethodName: "GetUser", Handler: _UserService_GetUser_Handler, }, { MethodName: "UserInfo", Handler: _UserService_UserInfo_Handler, }, { MethodName: "DelUser", Handler: _UserService_DelUser_Handler, }, { MethodName: "CreateUser", Handler: _UserService_CreateUser_Handler, }, { MethodName: "UpdateUser", Handler: _UserService_UpdateUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/users/v1/user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAuthServiceHTTPServer ¶
func RegisterAuthServiceHTTPServer(s *http.Server, srv AuthServiceHTTPServer)
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
func RegisterUserServiceHTTPServer ¶
func RegisterUserServiceHTTPServer(s *http.Server, srv UserServiceHTTPServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface { // 图形验证码 Captcha(ctx context.Context, in *CaptchaReq, opts ...grpc.CallOption) (*CaptchaReply, error) //登录 Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginToken, error) //刷新登录token RefreshToken(ctx context.Context, in *v1.Empty, opts ...grpc.CallOption) (*LoginToken, error) //修改密码 NewPasswd(ctx context.Context, in *NewPasswdReq, opts ...grpc.CallOption) (*v1.Empty, error) }
AuthServiceClient is the client API for AuthService 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 NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceHTTPClient ¶
type AuthServiceHTTPClient interface { Captcha(ctx context.Context, req *CaptchaReq, opts ...http.CallOption) (rsp *CaptchaReply, err error) Login(ctx context.Context, req *LoginReq, opts ...http.CallOption) (rsp *LoginToken, err error) NewPasswd(ctx context.Context, req *NewPasswdReq, opts ...http.CallOption) (rsp *v1.Empty, err error) RefreshToken(ctx context.Context, req *v1.Empty, opts ...http.CallOption) (rsp *LoginToken, err error) }
func NewAuthServiceHTTPClient ¶
func NewAuthServiceHTTPClient(client *http.Client) AuthServiceHTTPClient
type AuthServiceHTTPClientImpl ¶
type AuthServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AuthServiceHTTPClientImpl) Captcha ¶
func (c *AuthServiceHTTPClientImpl) Captcha(ctx context.Context, in *CaptchaReq, opts ...http.CallOption) (*CaptchaReply, error)
func (*AuthServiceHTTPClientImpl) Login ¶
func (c *AuthServiceHTTPClientImpl) Login(ctx context.Context, in *LoginReq, opts ...http.CallOption) (*LoginToken, error)
func (*AuthServiceHTTPClientImpl) NewPasswd ¶
func (c *AuthServiceHTTPClientImpl) NewPasswd(ctx context.Context, in *NewPasswdReq, opts ...http.CallOption) (*v1.Empty, error)
func (*AuthServiceHTTPClientImpl) RefreshToken ¶
func (c *AuthServiceHTTPClientImpl) RefreshToken(ctx context.Context, in *v1.Empty, opts ...http.CallOption) (*LoginToken, error)
type AuthServiceHTTPServer ¶
type AuthServiceHTTPServer interface { Captcha(context.Context, *CaptchaReq) (*CaptchaReply, error) Login(context.Context, *LoginReq) (*LoginToken, error) NewPasswd(context.Context, *NewPasswdReq) (*v1.Empty, error) RefreshToken(context.Context, *v1.Empty) (*LoginToken, error) }
type AuthServiceServer ¶
type AuthServiceServer interface { // 图形验证码 Captcha(context.Context, *CaptchaReq) (*CaptchaReply, error) //登录 Login(context.Context, *LoginReq) (*LoginToken, error) //刷新登录token RefreshToken(context.Context, *v1.Empty) (*LoginToken, error) //修改密码 NewPasswd(context.Context, *NewPasswdReq) (*v1.Empty, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility
type CaptchaReply ¶
type CaptchaReply struct { // base64格式图片数据流 ImgBase64 string `protobuf:"bytes,1,opt,name=img_base64,json=imgBase64,proto3" json:"img_base64,omitempty"` // contains filtered or unexported fields }
func (*CaptchaReply) Descriptor
deprecated
func (*CaptchaReply) Descriptor() ([]byte, []int)
Deprecated: Use CaptchaReply.ProtoReflect.Descriptor instead.
func (*CaptchaReply) GetImgBase64 ¶
func (x *CaptchaReply) GetImgBase64() string
func (*CaptchaReply) ProtoMessage ¶
func (*CaptchaReply) ProtoMessage()
func (*CaptchaReply) ProtoReflect ¶
func (x *CaptchaReply) ProtoReflect() protoreflect.Message
func (*CaptchaReply) Reset ¶
func (x *CaptchaReply) Reset()
func (*CaptchaReply) String ¶
func (x *CaptchaReply) String() string
func (*CaptchaReply) Validate ¶
func (m *CaptchaReply) Validate() error
Validate checks the field values on CaptchaReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CaptchaReply) ValidateAll ¶
func (m *CaptchaReply) ValidateAll() error
ValidateAll checks the field values on CaptchaReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CaptchaReplyMultiError, or nil if none found.
type CaptchaReplyMultiError ¶
type CaptchaReplyMultiError []error
CaptchaReplyMultiError is an error wrapping multiple validation errors returned by CaptchaReply.ValidateAll() if the designated constraints aren't met.
func (CaptchaReplyMultiError) AllErrors ¶
func (m CaptchaReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CaptchaReplyMultiError) Error ¶
func (m CaptchaReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CaptchaReplyValidationError ¶
type CaptchaReplyValidationError struct {
// contains filtered or unexported fields
}
CaptchaReplyValidationError is the validation error returned by CaptchaReply.Validate if the designated constraints aren't met.
func (CaptchaReplyValidationError) Cause ¶
func (e CaptchaReplyValidationError) Cause() error
Cause function returns cause value.
func (CaptchaReplyValidationError) Error ¶
func (e CaptchaReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CaptchaReplyValidationError) ErrorName ¶
func (e CaptchaReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CaptchaReplyValidationError) Field ¶
func (e CaptchaReplyValidationError) Field() string
Field function returns field value.
func (CaptchaReplyValidationError) Key ¶
func (e CaptchaReplyValidationError) Key() bool
Key function returns key value.
func (CaptchaReplyValidationError) Reason ¶
func (e CaptchaReplyValidationError) Reason() string
Reason function returns reason value.
type CaptchaReq ¶
type CaptchaReq struct { // uuid Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*CaptchaReq) Descriptor
deprecated
func (*CaptchaReq) Descriptor() ([]byte, []int)
Deprecated: Use CaptchaReq.ProtoReflect.Descriptor instead.
func (*CaptchaReq) GetUuid ¶
func (x *CaptchaReq) GetUuid() string
func (*CaptchaReq) ProtoMessage ¶
func (*CaptchaReq) ProtoMessage()
func (*CaptchaReq) ProtoReflect ¶
func (x *CaptchaReq) ProtoReflect() protoreflect.Message
func (*CaptchaReq) Reset ¶
func (x *CaptchaReq) Reset()
func (*CaptchaReq) String ¶
func (x *CaptchaReq) String() string
func (*CaptchaReq) Validate ¶
func (m *CaptchaReq) Validate() error
Validate checks the field values on CaptchaReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CaptchaReq) ValidateAll ¶
func (m *CaptchaReq) ValidateAll() error
ValidateAll checks the field values on CaptchaReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CaptchaReqMultiError, or nil if none found.
type CaptchaReqMultiError ¶
type CaptchaReqMultiError []error
CaptchaReqMultiError is an error wrapping multiple validation errors returned by CaptchaReq.ValidateAll() if the designated constraints aren't met.
func (CaptchaReqMultiError) AllErrors ¶
func (m CaptchaReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CaptchaReqMultiError) Error ¶
func (m CaptchaReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CaptchaReqValidationError ¶
type CaptchaReqValidationError struct {
// contains filtered or unexported fields
}
CaptchaReqValidationError is the validation error returned by CaptchaReq.Validate if the designated constraints aren't met.
func (CaptchaReqValidationError) Cause ¶
func (e CaptchaReqValidationError) Cause() error
Cause function returns cause value.
func (CaptchaReqValidationError) Error ¶
func (e CaptchaReqValidationError) Error() string
Error satisfies the builtin error interface
func (CaptchaReqValidationError) ErrorName ¶
func (e CaptchaReqValidationError) ErrorName() string
ErrorName returns error name.
func (CaptchaReqValidationError) Field ¶
func (e CaptchaReqValidationError) Field() string
Field function returns field value.
func (CaptchaReqValidationError) Key ¶
func (e CaptchaReqValidationError) Key() bool
Key function returns key value.
func (CaptchaReqValidationError) Reason ¶
func (e CaptchaReqValidationError) Reason() string
Reason function returns reason value.
type CreateUserReq ¶
type CreateUserReq struct { //账号 Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // 名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 密码 Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // 角色 Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` // 手机号(可选) Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"` // 邮箱(可选) Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
创建用户请求
func (*CreateUserReq) Descriptor
deprecated
func (*CreateUserReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserReq.ProtoReflect.Descriptor instead.
func (*CreateUserReq) GetAccount ¶
func (x *CreateUserReq) GetAccount() string
func (*CreateUserReq) GetEmail ¶
func (x *CreateUserReq) GetEmail() string
func (*CreateUserReq) GetName ¶
func (x *CreateUserReq) GetName() string
func (*CreateUserReq) GetPassword ¶
func (x *CreateUserReq) GetPassword() string
func (*CreateUserReq) GetPhone ¶
func (x *CreateUserReq) GetPhone() string
func (*CreateUserReq) GetRole ¶
func (x *CreateUserReq) GetRole() string
func (*CreateUserReq) ProtoMessage ¶
func (*CreateUserReq) ProtoMessage()
func (*CreateUserReq) ProtoReflect ¶
func (x *CreateUserReq) ProtoReflect() protoreflect.Message
func (*CreateUserReq) Reset ¶
func (x *CreateUserReq) Reset()
func (*CreateUserReq) String ¶
func (x *CreateUserReq) String() string
func (*CreateUserReq) Validate ¶
func (m *CreateUserReq) Validate() error
Validate checks the field values on CreateUserReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateUserReqValidationError ¶
type CreateUserReqValidationError struct {
// contains filtered or unexported fields
}
CreateUserReqValidationError is the validation error returned by CreateUserReq.Validate if the designated constraints aren't met.
func (CreateUserReqValidationError) Cause ¶
func (e CreateUserReqValidationError) Cause() error
Cause function returns cause value.
func (CreateUserReqValidationError) Error ¶
func (e CreateUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserReqValidationError) ErrorName ¶
func (e CreateUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserReqValidationError) Field ¶
func (e CreateUserReqValidationError) Field() string
Field function returns field value.
func (CreateUserReqValidationError) Key ¶
func (e CreateUserReqValidationError) Key() bool
Key function returns key value.
func (CreateUserReqValidationError) Reason ¶
func (e CreateUserReqValidationError) Reason() string
Reason function returns reason value.
type ListUserReq ¶
type ListUserReq struct { Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` // 公用列表查询条件 Option *v1.ListOption `protobuf:"bytes,99,opt,name=option,proto3" json:"option,omitempty"` // contains filtered or unexported fields }
用户筛选条件
func (*ListUserReq) Descriptor
deprecated
func (*ListUserReq) Descriptor() ([]byte, []int)
Deprecated: Use ListUserReq.ProtoReflect.Descriptor instead.
func (*ListUserReq) GetKeyword ¶
func (x *ListUserReq) GetKeyword() string
func (*ListUserReq) GetOption ¶
func (x *ListUserReq) GetOption() *v1.ListOption
func (*ListUserReq) GetRole ¶
func (x *ListUserReq) GetRole() string
func (*ListUserReq) ProtoMessage ¶
func (*ListUserReq) ProtoMessage()
func (*ListUserReq) ProtoReflect ¶
func (x *ListUserReq) ProtoReflect() protoreflect.Message
func (*ListUserReq) Reset ¶
func (x *ListUserReq) Reset()
func (*ListUserReq) String ¶
func (x *ListUserReq) String() string
func (*ListUserReq) Validate ¶
func (m *ListUserReq) Validate() error
Validate checks the field values on ListUserReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListUserReqValidationError ¶
type ListUserReqValidationError struct {
// contains filtered or unexported fields
}
ListUserReqValidationError is the validation error returned by ListUserReq.Validate if the designated constraints aren't met.
func (ListUserReqValidationError) Cause ¶
func (e ListUserReqValidationError) Cause() error
Cause function returns cause value.
func (ListUserReqValidationError) Error ¶
func (e ListUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserReqValidationError) ErrorName ¶
func (e ListUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserReqValidationError) Field ¶
func (e ListUserReqValidationError) Field() string
Field function returns field value.
func (ListUserReqValidationError) Key ¶
func (e ListUserReqValidationError) Key() bool
Key function returns key value.
func (ListUserReqValidationError) Reason ¶
func (e ListUserReqValidationError) Reason() string
Reason function returns reason value.
type LoginReq ¶
type LoginReq struct { // 账号/手机号/邮箱 Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // 密码 非空为密码登录 Passwd string `protobuf:"bytes,2,opt,name=passwd,proto3" json:"passwd,omitempty"` // 验证码 Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` // uuid Uuid string `protobuf:"bytes,4,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
登录请求
func (*LoginReq) Descriptor
deprecated
func (*LoginReq) GetAccount ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
func (*LoginReq) Validate ¶
Validate checks the field values on LoginReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginReq) ValidateAll ¶
ValidateAll checks the field values on LoginReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginReqMultiError, or nil if none found.
type LoginReqMultiError ¶
type LoginReqMultiError []error
LoginReqMultiError is an error wrapping multiple validation errors returned by LoginReq.ValidateAll() if the designated constraints aren't met.
func (LoginReqMultiError) AllErrors ¶
func (m LoginReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginReqMultiError) Error ¶
func (m LoginReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
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 LoginToken ¶
type LoginToken struct { // jwt 登录token Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // token过期时间 TokenExpires string `protobuf:"bytes,2,opt,name=token_expires,json=tokenExpires,proto3" json:"token_expires,omitempty"` // 账户信息 UserInfo *v1.User `protobuf:"bytes,3,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"` // contains filtered or unexported fields }
登录信息
func (*LoginToken) Descriptor
deprecated
func (*LoginToken) Descriptor() ([]byte, []int)
Deprecated: Use LoginToken.ProtoReflect.Descriptor instead.
func (*LoginToken) GetToken ¶
func (x *LoginToken) GetToken() string
func (*LoginToken) GetTokenExpires ¶
func (x *LoginToken) GetTokenExpires() string
func (*LoginToken) GetUserInfo ¶
func (x *LoginToken) GetUserInfo() *v1.User
func (*LoginToken) ProtoMessage ¶
func (*LoginToken) ProtoMessage()
func (*LoginToken) ProtoReflect ¶
func (x *LoginToken) ProtoReflect() protoreflect.Message
func (*LoginToken) Reset ¶
func (x *LoginToken) Reset()
func (*LoginToken) String ¶
func (x *LoginToken) String() string
func (*LoginToken) Validate ¶
func (m *LoginToken) Validate() error
Validate checks the field values on LoginToken with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginToken) ValidateAll ¶
func (m *LoginToken) ValidateAll() error
ValidateAll checks the field values on LoginToken with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginTokenMultiError, or nil if none found.
type LoginTokenMultiError ¶
type LoginTokenMultiError []error
LoginTokenMultiError is an error wrapping multiple validation errors returned by LoginToken.ValidateAll() if the designated constraints aren't met.
func (LoginTokenMultiError) AllErrors ¶
func (m LoginTokenMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginTokenMultiError) Error ¶
func (m LoginTokenMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginTokenValidationError ¶
type LoginTokenValidationError struct {
// contains filtered or unexported fields
}
LoginTokenValidationError is the validation error returned by LoginToken.Validate if the designated constraints aren't met.
func (LoginTokenValidationError) Cause ¶
func (e LoginTokenValidationError) Cause() error
Cause function returns cause value.
func (LoginTokenValidationError) Error ¶
func (e LoginTokenValidationError) Error() string
Error satisfies the builtin error interface
func (LoginTokenValidationError) ErrorName ¶
func (e LoginTokenValidationError) ErrorName() string
ErrorName returns error name.
func (LoginTokenValidationError) Field ¶
func (e LoginTokenValidationError) Field() string
Field function returns field value.
func (LoginTokenValidationError) Key ¶
func (e LoginTokenValidationError) Key() bool
Key function returns key value.
func (LoginTokenValidationError) Reason ¶
func (e LoginTokenValidationError) Reason() string
Reason function returns reason value.
type NewPasswdReq ¶
type NewPasswdReq struct { // 账号 Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // 新密码 Passwd string `protobuf:"bytes,3,opt,name=passwd,proto3" json:"passwd,omitempty"` // 重复新密码 PasswdConfirm string `protobuf:"bytes,4,opt,name=passwd_confirm,json=passwdConfirm,proto3" json:"passwd_confirm,omitempty"` // 原密码 OldPasswd string `protobuf:"bytes,5,opt,name=old_passwd,json=oldPasswd,proto3" json:"old_passwd,omitempty"` // contains filtered or unexported fields }
修改密码请求
func (*NewPasswdReq) Descriptor
deprecated
func (*NewPasswdReq) Descriptor() ([]byte, []int)
Deprecated: Use NewPasswdReq.ProtoReflect.Descriptor instead.
func (*NewPasswdReq) GetAccount ¶
func (x *NewPasswdReq) GetAccount() string
func (*NewPasswdReq) GetOldPasswd ¶
func (x *NewPasswdReq) GetOldPasswd() string
func (*NewPasswdReq) GetPasswd ¶
func (x *NewPasswdReq) GetPasswd() string
func (*NewPasswdReq) GetPasswdConfirm ¶
func (x *NewPasswdReq) GetPasswdConfirm() string
func (*NewPasswdReq) ProtoMessage ¶
func (*NewPasswdReq) ProtoMessage()
func (*NewPasswdReq) ProtoReflect ¶
func (x *NewPasswdReq) ProtoReflect() protoreflect.Message
func (*NewPasswdReq) Reset ¶
func (x *NewPasswdReq) Reset()
func (*NewPasswdReq) String ¶
func (x *NewPasswdReq) String() string
func (*NewPasswdReq) Validate ¶
func (m *NewPasswdReq) Validate() error
Validate checks the field values on NewPasswdReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*NewPasswdReq) ValidateAll ¶
func (m *NewPasswdReq) ValidateAll() error
ValidateAll checks the field values on NewPasswdReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in NewPasswdReqMultiError, or nil if none found.
type NewPasswdReqMultiError ¶
type NewPasswdReqMultiError []error
NewPasswdReqMultiError is an error wrapping multiple validation errors returned by NewPasswdReq.ValidateAll() if the designated constraints aren't met.
func (NewPasswdReqMultiError) AllErrors ¶
func (m NewPasswdReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NewPasswdReqMultiError) Error ¶
func (m NewPasswdReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NewPasswdReqValidationError ¶
type NewPasswdReqValidationError struct {
// contains filtered or unexported fields
}
NewPasswdReqValidationError is the validation error returned by NewPasswdReq.Validate if the designated constraints aren't met.
func (NewPasswdReqValidationError) Cause ¶
func (e NewPasswdReqValidationError) Cause() error
Cause function returns cause value.
func (NewPasswdReqValidationError) Error ¶
func (e NewPasswdReqValidationError) Error() string
Error satisfies the builtin error interface
func (NewPasswdReqValidationError) ErrorName ¶
func (e NewPasswdReqValidationError) ErrorName() string
ErrorName returns error name.
func (NewPasswdReqValidationError) Field ¶
func (e NewPasswdReqValidationError) Field() string
Field function returns field value.
func (NewPasswdReqValidationError) Key ¶
func (e NewPasswdReqValidationError) Key() bool
Key function returns key value.
func (NewPasswdReqValidationError) Reason ¶
func (e NewPasswdReqValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) Captcha ¶
func (UnimplementedAuthServiceServer) Captcha(context.Context, *CaptchaReq) (*CaptchaReply, error)
func (UnimplementedAuthServiceServer) Login ¶
func (UnimplementedAuthServiceServer) Login(context.Context, *LoginReq) (*LoginToken, error)
func (UnimplementedAuthServiceServer) NewPasswd ¶
func (UnimplementedAuthServiceServer) NewPasswd(context.Context, *NewPasswdReq) (*v1.Empty, error)
func (UnimplementedAuthServiceServer) RefreshToken ¶
func (UnimplementedAuthServiceServer) RefreshToken(context.Context, *v1.Empty) (*LoginToken, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserReq) (*v1.User, error)
func (UnimplementedUserServiceServer) ListUser ¶
func (UnimplementedUserServiceServer) ListUser(context.Context, *ListUserReq) (*UserListReply, error)
func (UnimplementedUserServiceServer) UpdateUser ¶
func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserReq) (*v1.User, error)
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UpdateUserReq ¶
type UpdateUserReq struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 手机号 Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"` // 邮箱 Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
更新用户请求
func (*UpdateUserReq) Descriptor
deprecated
func (*UpdateUserReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserReq.ProtoReflect.Descriptor instead.
func (*UpdateUserReq) GetEmail ¶
func (x *UpdateUserReq) GetEmail() string
func (*UpdateUserReq) GetId ¶
func (x *UpdateUserReq) GetId() uint32
func (*UpdateUserReq) GetName ¶
func (x *UpdateUserReq) GetName() string
func (*UpdateUserReq) GetPhone ¶
func (x *UpdateUserReq) GetPhone() string
func (*UpdateUserReq) ProtoMessage ¶
func (*UpdateUserReq) ProtoMessage()
func (*UpdateUserReq) ProtoReflect ¶
func (x *UpdateUserReq) ProtoReflect() protoreflect.Message
func (*UpdateUserReq) Reset ¶
func (x *UpdateUserReq) Reset()
func (*UpdateUserReq) String ¶
func (x *UpdateUserReq) String() string
func (*UpdateUserReq) Validate ¶
func (m *UpdateUserReq) Validate() error
Validate checks the field values on UpdateUserReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateUserReqValidationError ¶
type UpdateUserReqValidationError struct {
// contains filtered or unexported fields
}
UpdateUserReqValidationError is the validation error returned by UpdateUserReq.Validate if the designated constraints aren't met.
func (UpdateUserReqValidationError) Cause ¶
func (e UpdateUserReqValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserReqValidationError) Error ¶
func (e UpdateUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserReqValidationError) ErrorName ¶
func (e UpdateUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserReqValidationError) Field ¶
func (e UpdateUserReqValidationError) Field() string
Field function returns field value.
func (UpdateUserReqValidationError) Key ¶
func (e UpdateUserReqValidationError) Key() bool
Key function returns key value.
func (UpdateUserReqValidationError) Reason ¶
func (e UpdateUserReqValidationError) Reason() string
Reason function returns reason value.
type UserListReply ¶
type UserListReply struct { List []*v1.User `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
用户列表
func (*UserListReply) Descriptor
deprecated
func (*UserListReply) Descriptor() ([]byte, []int)
Deprecated: Use UserListReply.ProtoReflect.Descriptor instead.
func (*UserListReply) GetList ¶
func (x *UserListReply) GetList() []*v1.User
func (*UserListReply) GetTotal ¶
func (x *UserListReply) GetTotal() int64
func (*UserListReply) ProtoMessage ¶
func (*UserListReply) ProtoMessage()
func (*UserListReply) ProtoReflect ¶
func (x *UserListReply) ProtoReflect() protoreflect.Message
func (*UserListReply) Reset ¶
func (x *UserListReply) Reset()
func (*UserListReply) String ¶
func (x *UserListReply) String() string
func (*UserListReply) Validate ¶
func (m *UserListReply) Validate() error
Validate checks the field values on UserListReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UserListReplyValidationError ¶
type UserListReplyValidationError struct {
// contains filtered or unexported fields
}
UserListReplyValidationError is the validation error returned by UserListReply.Validate if the designated constraints aren't met.
func (UserListReplyValidationError) Cause ¶
func (e UserListReplyValidationError) Cause() error
Cause function returns cause value.
func (UserListReplyValidationError) Error ¶
func (e UserListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UserListReplyValidationError) ErrorName ¶
func (e UserListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UserListReplyValidationError) Field ¶
func (e UserListReplyValidationError) Field() string
Field function returns field value.
func (UserListReplyValidationError) Key ¶
func (e UserListReplyValidationError) Key() bool
Key function returns key value.
func (UserListReplyValidationError) Reason ¶
func (e UserListReplyValidationError) Reason() string
Reason function returns reason value.
type UserServiceClient ¶
type UserServiceClient interface { // 查询用户列表 ListUser(ctx context.Context, in *ListUserReq, opts ...grpc.CallOption) (*UserListReply, error) // 查询用户详情 GetUser(ctx context.Context, in *v1.Id, opts ...grpc.CallOption) (*v1.User, error) //当前登陆用户信息 UserInfo(ctx context.Context, in *v1.Empty, opts ...grpc.CallOption) (*v1.User, error) // 删除用户 DelUser(ctx context.Context, in *v1.Ids, opts ...grpc.CallOption) (*v1.Empty, error) // 创建用户 CreateUser(ctx context.Context, in *CreateUserReq, opts ...grpc.CallOption) (*v1.User, error) // 更新用户信息 UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*v1.User, error) }
UserServiceClient is the client API for UserService 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 NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceHTTPClient ¶
type UserServiceHTTPClient interface { CreateUser(ctx context.Context, req *CreateUserReq, opts ...http.CallOption) (rsp *v1.User, err error) DelUser(ctx context.Context, req *v1.Ids, opts ...http.CallOption) (rsp *v1.Empty, err error) GetUser(ctx context.Context, req *v1.Id, opts ...http.CallOption) (rsp *v1.User, err error) ListUser(ctx context.Context, req *ListUserReq, opts ...http.CallOption) (rsp *UserListReply, err error) UpdateUser(ctx context.Context, req *UpdateUserReq, opts ...http.CallOption) (rsp *v1.User, err error) UserInfo(ctx context.Context, req *v1.Empty, opts ...http.CallOption) (rsp *v1.User, err error) }
func NewUserServiceHTTPClient ¶
func NewUserServiceHTTPClient(client *http.Client) UserServiceHTTPClient
type UserServiceHTTPClientImpl ¶
type UserServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserServiceHTTPClientImpl) CreateUser ¶
func (c *UserServiceHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserReq, opts ...http.CallOption) (*v1.User, error)
func (*UserServiceHTTPClientImpl) DelUser ¶
func (c *UserServiceHTTPClientImpl) DelUser(ctx context.Context, in *v1.Ids, opts ...http.CallOption) (*v1.Empty, error)
func (*UserServiceHTTPClientImpl) GetUser ¶
func (c *UserServiceHTTPClientImpl) GetUser(ctx context.Context, in *v1.Id, opts ...http.CallOption) (*v1.User, error)
func (*UserServiceHTTPClientImpl) ListUser ¶
func (c *UserServiceHTTPClientImpl) ListUser(ctx context.Context, in *ListUserReq, opts ...http.CallOption) (*UserListReply, error)
func (*UserServiceHTTPClientImpl) UpdateUser ¶
func (c *UserServiceHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...http.CallOption) (*v1.User, error)
type UserServiceHTTPServer ¶
type UserServiceHTTPServer interface { CreateUser(context.Context, *CreateUserReq) (*v1.User, error) DelUser(context.Context, *v1.Ids) (*v1.Empty, error) GetUser(context.Context, *v1.Id) (*v1.User, error) ListUser(context.Context, *ListUserReq) (*UserListReply, error) UpdateUser(context.Context, *UpdateUserReq) (*v1.User, error) UserInfo(context.Context, *v1.Empty) (*v1.User, error) }
type UserServiceServer ¶
type UserServiceServer interface { // 查询用户列表 ListUser(context.Context, *ListUserReq) (*UserListReply, error) // 查询用户详情 GetUser(context.Context, *v1.Id) (*v1.User, error) //当前登陆用户信息 UserInfo(context.Context, *v1.Empty) (*v1.User, error) // 删除用户 DelUser(context.Context, *v1.Ids) (*v1.Empty, error) // 创建用户 CreateUser(context.Context, *CreateUserReq) (*v1.User, error) // 更新用户信息 UpdateUser(context.Context, *UpdateUserReq) (*v1.User, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility