Documentation ¶
Index ¶
- Variables
- func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type AddressInfo
- func (*AddressInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AddressInfo) GetCity() string
- func (x *AddressInfo) GetCountry() string
- func (x *AddressInfo) GetCountryDistrict() string
- func (x *AddressInfo) GetDetailedAddress() string
- func (x *AddressInfo) GetId() int64
- func (x *AddressInfo) GetIsDefault() int64
- func (x *AddressInfo) GetProvince() string
- func (x *AddressInfo) GetStatus() int64
- func (x *AddressInfo) GetUserId() int64
- func (*AddressInfo) ProtoMessage()
- func (x *AddressInfo) ProtoReflect() protoreflect.Message
- func (x *AddressInfo) Reset()
- func (x *AddressInfo) String() string
- type CheckUserOKReply
- type CheckUserOKRequest
- type CreateAddressReply
- type CreateAddressRequest
- func (*CreateAddressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAddressRequest) GetCity() string
- func (x *CreateAddressRequest) GetCountry() string
- func (x *CreateAddressRequest) GetCountryDistrict() string
- func (x *CreateAddressRequest) GetDetailedAddress() string
- func (x *CreateAddressRequest) GetIsDefault() int64
- func (x *CreateAddressRequest) GetProvince() string
- func (x *CreateAddressRequest) GetStatus() int64
- func (*CreateAddressRequest) ProtoMessage()
- func (x *CreateAddressRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAddressRequest) Reset()
- func (x *CreateAddressRequest) String() string
- type DeleteAddressReply
- type DeleteAddressRequest
- func (*DeleteAddressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAddressRequest) GetId() int64
- func (*DeleteAddressRequest) ProtoMessage()
- func (x *DeleteAddressRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteAddressRequest) Reset()
- func (x *DeleteAddressRequest) String() string
- type GetAddressReply
- func (*GetAddressReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetAddressReply) GetCity() string
- func (x *GetAddressReply) GetCountry() string
- func (x *GetAddressReply) GetCountryDistrict() string
- func (x *GetAddressReply) GetDetailedAddress() string
- func (x *GetAddressReply) GetId() int64
- func (x *GetAddressReply) GetIsDefault() int64
- func (x *GetAddressReply) GetProvince() string
- func (x *GetAddressReply) GetStatus() int64
- func (x *GetAddressReply) GetUserId() int64
- func (*GetAddressReply) ProtoMessage()
- func (x *GetAddressReply) ProtoReflect() protoreflect.Message
- func (x *GetAddressReply) Reset()
- func (x *GetAddressReply) String() string
- type GetAddressRequest
- type GetUserReply
- type GetUserRequest
- type ListAddressReply
- func (*ListAddressReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListAddressReply) GetCount() int64
- func (x *ListAddressReply) GetResults() []*AddressInfo
- func (*ListAddressReply) ProtoMessage()
- func (x *ListAddressReply) ProtoReflect() protoreflect.Message
- func (x *ListAddressReply) Reset()
- func (x *ListAddressReply) String() string
- type ListAddressRequest
- func (*ListAddressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAddressRequest) GetPage() int64
- func (x *ListAddressRequest) GetPageSize() int64
- func (*ListAddressRequest) ProtoMessage()
- func (x *ListAddressRequest) ProtoReflect() protoreflect.Message
- func (x *ListAddressRequest) Reset()
- func (x *ListAddressRequest) String() string
- type LoginByUsernameRequest
- func (*LoginByUsernameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginByUsernameRequest) GetPassword() string
- func (x *LoginByUsernameRequest) GetUsername() string
- func (*LoginByUsernameRequest) ProtoMessage()
- func (x *LoginByUsernameRequest) ProtoReflect() protoreflect.Message
- func (x *LoginByUsernameRequest) Reset()
- func (x *LoginByUsernameRequest) String() string
- type LoginByVerifyCodeRequest
- func (*LoginByVerifyCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginByVerifyCodeRequest) GetCode() string
- func (x *LoginByVerifyCodeRequest) GetMobile() string
- func (*LoginByVerifyCodeRequest) ProtoMessage()
- func (x *LoginByVerifyCodeRequest) ProtoReflect() protoreflect.Message
- func (x *LoginByVerifyCodeRequest) Reset()
- func (x *LoginByVerifyCodeRequest) String() string
- type LoginUserReply
- type RegisterUserReply
- type RegisterUserRequest
- func (*RegisterUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterUserRequest) GetAvatar() string
- func (x *RegisterUserRequest) GetId() int64
- func (x *RegisterUserRequest) GetMobile() string
- func (x *RegisterUserRequest) GetNickname() string
- func (x *RegisterUserRequest) GetPassword() string
- func (x *RegisterUserRequest) GetUsername() string
- func (*RegisterUserRequest) ProtoMessage()
- func (x *RegisterUserRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterUserRequest) Reset()
- func (x *RegisterUserRequest) String() string
- type UnimplementedUserServer
- func (UnimplementedUserServer) CheckUserOK(context.Context, *CheckUserOKRequest) (*CheckUserOKReply, error)
- func (UnimplementedUserServer) CreateAddress(context.Context, *CreateAddressRequest) (*CreateAddressReply, error)
- func (UnimplementedUserServer) DeleteAddress(context.Context, *DeleteAddressRequest) (*DeleteAddressReply, error)
- func (UnimplementedUserServer) GetAddress(context.Context, *GetAddressRequest) (*GetAddressReply, error)
- func (UnimplementedUserServer) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error)
- func (UnimplementedUserServer) ListAddress(context.Context, *ListAddressRequest) (*ListAddressReply, error)
- func (UnimplementedUserServer) LoginByUsername(context.Context, *LoginByUsernameRequest) (*LoginUserReply, error)
- func (UnimplementedUserServer) LoginByVerifyCode(context.Context, *LoginByVerifyCodeRequest) (*LoginUserReply, error)
- func (UnimplementedUserServer) RegisterUser(context.Context, *RegisterUserRequest) (*RegisterUserReply, error)
- func (UnimplementedUserServer) UpdateAddress(context.Context, *UpdateAddressRequest) (*UpdateAddressReply, error)
- type UnsafeUserServer
- type UpdateAddressReply
- type UpdateAddressRequest
- func (*UpdateAddressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAddressRequest) GetCity() string
- func (x *UpdateAddressRequest) GetCountry() string
- func (x *UpdateAddressRequest) GetCountryDistrict() string
- func (x *UpdateAddressRequest) GetDetailedAddress() string
- func (x *UpdateAddressRequest) GetId() int64
- func (x *UpdateAddressRequest) GetIsDefault() int64
- func (x *UpdateAddressRequest) GetProvince() string
- func (x *UpdateAddressRequest) GetStatus() int64
- func (x *UpdateAddressRequest) GetUserId() int64
- func (*UpdateAddressRequest) ProtoMessage()
- func (x *UpdateAddressRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAddressRequest) Reset()
- func (x *UpdateAddressRequest) String() string
- type UserClient
- type UserHTTPClient
- type UserHTTPClientImpl
- func (c *UserHTTPClientImpl) CheckUserOK(ctx context.Context, in *CheckUserOKRequest, opts ...http.CallOption) (*CheckUserOKReply, error)
- func (c *UserHTTPClientImpl) CreateAddress(ctx context.Context, in *CreateAddressRequest, opts ...http.CallOption) (*CreateAddressReply, error)
- func (c *UserHTTPClientImpl) DeleteAddress(ctx context.Context, in *DeleteAddressRequest, opts ...http.CallOption) (*DeleteAddressReply, error)
- func (c *UserHTTPClientImpl) GetAddress(ctx context.Context, in *GetAddressRequest, opts ...http.CallOption) (*GetAddressReply, error)
- func (c *UserHTTPClientImpl) GetUser(ctx context.Context, in *GetUserRequest, opts ...http.CallOption) (*GetUserReply, error)
- func (c *UserHTTPClientImpl) ListAddress(ctx context.Context, in *ListAddressRequest, opts ...http.CallOption) (*ListAddressReply, error)
- func (c *UserHTTPClientImpl) LoginByUsername(ctx context.Context, in *LoginByUsernameRequest, opts ...http.CallOption) (*LoginUserReply, error)
- func (c *UserHTTPClientImpl) LoginByVerifyCode(ctx context.Context, in *LoginByVerifyCodeRequest, opts ...http.CallOption) (*LoginUserReply, error)
- func (c *UserHTTPClientImpl) RegisterUser(ctx context.Context, in *RegisterUserRequest, opts ...http.CallOption) (*RegisterUserReply, error)
- func (c *UserHTTPClientImpl) UpdateAddress(ctx context.Context, in *UpdateAddressRequest, opts ...http.CallOption) (*UpdateAddressReply, error)
- type UserHTTPServer
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfo) GetAvatar() string
- func (x *UserInfo) GetId() int64
- func (x *UserInfo) GetMobile() string
- func (x *UserInfo) GetNickname() string
- func (x *UserInfo) GetPassword() string
- func (x *UserInfo) GetStatus() int64
- func (x *UserInfo) GetUsername() string
- func (*UserInfo) ProtoMessage()
- func (x *UserInfo) ProtoReflect() protoreflect.Message
- func (x *UserInfo) Reset()
- func (x *UserInfo) String() string
- type UserServer
Constants ¶
This section is empty.
Variables ¶
var File_api_user_v1_user_proto protoreflect.FileDescriptor
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.user.v1.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterUser", Handler: _User_RegisterUser_Handler, }, { MethodName: "LoginByUsername", Handler: _User_LoginByUsername_Handler, }, { MethodName: "LoginByVerifyCode", Handler: _User_LoginByVerifyCode_Handler, }, { MethodName: "GetUser", Handler: _User_GetUser_Handler, }, { MethodName: "CheckUserOK", Handler: _User_CheckUserOK_Handler, }, { MethodName: "ListAddress", Handler: _User_ListAddress_Handler, }, { MethodName: "CreateAddress", Handler: _User_CreateAddress_Handler, }, { MethodName: "GetAddress", Handler: _User_GetAddress_Handler, }, { MethodName: "UpdateAddress", Handler: _User_UpdateAddress_Handler, }, { MethodName: "DeleteAddress", Handler: _User_DeleteAddress_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/user/v1/user.proto", }
User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserHTTPServer ¶
func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type AddressInfo ¶
type AddressInfo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"` Province string `protobuf:"bytes,4,opt,name=province,proto3" json:"province,omitempty"` City string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"` CountryDistrict string `protobuf:"bytes,6,opt,name=countryDistrict,proto3" json:"countryDistrict,omitempty"` DetailedAddress string `protobuf:"bytes,7,opt,name=detailedAddress,proto3" json:"detailedAddress,omitempty"` IsDefault int64 `protobuf:"varint,8,opt,name=isDefault,proto3" json:"isDefault,omitempty"` Status int64 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*AddressInfo) Descriptor
deprecated
func (*AddressInfo) Descriptor() ([]byte, []int)
Deprecated: Use AddressInfo.ProtoReflect.Descriptor instead.
func (*AddressInfo) GetCity ¶
func (x *AddressInfo) GetCity() string
func (*AddressInfo) GetCountry ¶
func (x *AddressInfo) GetCountry() string
func (*AddressInfo) GetCountryDistrict ¶
func (x *AddressInfo) GetCountryDistrict() string
func (*AddressInfo) GetDetailedAddress ¶
func (x *AddressInfo) GetDetailedAddress() string
func (*AddressInfo) GetId ¶
func (x *AddressInfo) GetId() int64
func (*AddressInfo) GetIsDefault ¶
func (x *AddressInfo) GetIsDefault() int64
func (*AddressInfo) GetProvince ¶
func (x *AddressInfo) GetProvince() string
func (*AddressInfo) GetStatus ¶
func (x *AddressInfo) GetStatus() int64
func (*AddressInfo) GetUserId ¶
func (x *AddressInfo) GetUserId() int64
func (*AddressInfo) ProtoMessage ¶
func (*AddressInfo) ProtoMessage()
func (*AddressInfo) ProtoReflect ¶
func (x *AddressInfo) ProtoReflect() protoreflect.Message
func (*AddressInfo) Reset ¶
func (x *AddressInfo) Reset()
func (*AddressInfo) String ¶
func (x *AddressInfo) String() string
type CheckUserOKReply ¶
type CheckUserOKReply struct { IsOk bool `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"` // contains filtered or unexported fields }
func (*CheckUserOKReply) Descriptor
deprecated
func (*CheckUserOKReply) Descriptor() ([]byte, []int)
Deprecated: Use CheckUserOKReply.ProtoReflect.Descriptor instead.
func (*CheckUserOKReply) GetIsOk ¶
func (x *CheckUserOKReply) GetIsOk() bool
func (*CheckUserOKReply) ProtoMessage ¶
func (*CheckUserOKReply) ProtoMessage()
func (*CheckUserOKReply) ProtoReflect ¶
func (x *CheckUserOKReply) ProtoReflect() protoreflect.Message
func (*CheckUserOKReply) Reset ¶
func (x *CheckUserOKReply) Reset()
func (*CheckUserOKReply) String ¶
func (x *CheckUserOKReply) String() string
type CheckUserOKRequest ¶
type CheckUserOKRequest struct {
// contains filtered or unexported fields
}
func (*CheckUserOKRequest) Descriptor
deprecated
func (*CheckUserOKRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckUserOKRequest.ProtoReflect.Descriptor instead.
func (*CheckUserOKRequest) ProtoMessage ¶
func (*CheckUserOKRequest) ProtoMessage()
func (*CheckUserOKRequest) ProtoReflect ¶
func (x *CheckUserOKRequest) ProtoReflect() protoreflect.Message
func (*CheckUserOKRequest) Reset ¶
func (x *CheckUserOKRequest) Reset()
func (*CheckUserOKRequest) String ¶
func (x *CheckUserOKRequest) String() string
type CreateAddressReply ¶
type CreateAddressReply struct {
// contains filtered or unexported fields
}
func (*CreateAddressReply) Descriptor
deprecated
func (*CreateAddressReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateAddressReply.ProtoReflect.Descriptor instead.
func (*CreateAddressReply) ProtoMessage ¶
func (*CreateAddressReply) ProtoMessage()
func (*CreateAddressReply) ProtoReflect ¶
func (x *CreateAddressReply) ProtoReflect() protoreflect.Message
func (*CreateAddressReply) Reset ¶
func (x *CreateAddressReply) Reset()
func (*CreateAddressReply) String ¶
func (x *CreateAddressReply) String() string
type CreateAddressRequest ¶
type CreateAddressRequest struct { Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"` Province string `protobuf:"bytes,2,opt,name=province,proto3" json:"province,omitempty"` City string `protobuf:"bytes,3,opt,name=city,proto3" json:"city,omitempty"` CountryDistrict string `protobuf:"bytes,4,opt,name=countryDistrict,proto3" json:"countryDistrict,omitempty"` DetailedAddress string `protobuf:"bytes,5,opt,name=detailedAddress,proto3" json:"detailedAddress,omitempty"` IsDefault int64 `protobuf:"varint,6,opt,name=isDefault,proto3" json:"isDefault,omitempty"` Status int64 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*CreateAddressRequest) Descriptor
deprecated
func (*CreateAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAddressRequest.ProtoReflect.Descriptor instead.
func (*CreateAddressRequest) GetCity ¶
func (x *CreateAddressRequest) GetCity() string
func (*CreateAddressRequest) GetCountry ¶
func (x *CreateAddressRequest) GetCountry() string
func (*CreateAddressRequest) GetCountryDistrict ¶
func (x *CreateAddressRequest) GetCountryDistrict() string
func (*CreateAddressRequest) GetDetailedAddress ¶
func (x *CreateAddressRequest) GetDetailedAddress() string
func (*CreateAddressRequest) GetIsDefault ¶
func (x *CreateAddressRequest) GetIsDefault() int64
func (*CreateAddressRequest) GetProvince ¶
func (x *CreateAddressRequest) GetProvince() string
func (*CreateAddressRequest) GetStatus ¶
func (x *CreateAddressRequest) GetStatus() int64
func (*CreateAddressRequest) ProtoMessage ¶
func (*CreateAddressRequest) ProtoMessage()
func (*CreateAddressRequest) ProtoReflect ¶
func (x *CreateAddressRequest) ProtoReflect() protoreflect.Message
func (*CreateAddressRequest) Reset ¶
func (x *CreateAddressRequest) Reset()
func (*CreateAddressRequest) String ¶
func (x *CreateAddressRequest) String() string
type DeleteAddressReply ¶
type DeleteAddressReply struct {
// contains filtered or unexported fields
}
func (*DeleteAddressReply) Descriptor
deprecated
func (*DeleteAddressReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAddressReply.ProtoReflect.Descriptor instead.
func (*DeleteAddressReply) ProtoMessage ¶
func (*DeleteAddressReply) ProtoMessage()
func (*DeleteAddressReply) ProtoReflect ¶
func (x *DeleteAddressReply) ProtoReflect() protoreflect.Message
func (*DeleteAddressReply) Reset ¶
func (x *DeleteAddressReply) Reset()
func (*DeleteAddressReply) String ¶
func (x *DeleteAddressReply) String() string
type DeleteAddressRequest ¶
type DeleteAddressRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteAddressRequest) Descriptor
deprecated
func (*DeleteAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAddressRequest.ProtoReflect.Descriptor instead.
func (*DeleteAddressRequest) GetId ¶
func (x *DeleteAddressRequest) GetId() int64
func (*DeleteAddressRequest) ProtoMessage ¶
func (*DeleteAddressRequest) ProtoMessage()
func (*DeleteAddressRequest) ProtoReflect ¶
func (x *DeleteAddressRequest) ProtoReflect() protoreflect.Message
func (*DeleteAddressRequest) Reset ¶
func (x *DeleteAddressRequest) Reset()
func (*DeleteAddressRequest) String ¶
func (x *DeleteAddressRequest) String() string
type GetAddressReply ¶
type GetAddressReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"` Province string `protobuf:"bytes,4,opt,name=province,proto3" json:"province,omitempty"` City string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"` CountryDistrict string `protobuf:"bytes,6,opt,name=countryDistrict,proto3" json:"countryDistrict,omitempty"` DetailedAddress string `protobuf:"bytes,7,opt,name=detailedAddress,proto3" json:"detailedAddress,omitempty"` IsDefault int64 `protobuf:"varint,8,opt,name=isDefault,proto3" json:"isDefault,omitempty"` Status int64 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*GetAddressReply) Descriptor
deprecated
func (*GetAddressReply) Descriptor() ([]byte, []int)
Deprecated: Use GetAddressReply.ProtoReflect.Descriptor instead.
func (*GetAddressReply) GetCity ¶
func (x *GetAddressReply) GetCity() string
func (*GetAddressReply) GetCountry ¶
func (x *GetAddressReply) GetCountry() string
func (*GetAddressReply) GetCountryDistrict ¶
func (x *GetAddressReply) GetCountryDistrict() string
func (*GetAddressReply) GetDetailedAddress ¶
func (x *GetAddressReply) GetDetailedAddress() string
func (*GetAddressReply) GetId ¶
func (x *GetAddressReply) GetId() int64
func (*GetAddressReply) GetIsDefault ¶
func (x *GetAddressReply) GetIsDefault() int64
func (*GetAddressReply) GetProvince ¶
func (x *GetAddressReply) GetProvince() string
func (*GetAddressReply) GetStatus ¶
func (x *GetAddressReply) GetStatus() int64
func (*GetAddressReply) GetUserId ¶
func (x *GetAddressReply) GetUserId() int64
func (*GetAddressReply) ProtoMessage ¶
func (*GetAddressReply) ProtoMessage()
func (*GetAddressReply) ProtoReflect ¶
func (x *GetAddressReply) ProtoReflect() protoreflect.Message
func (*GetAddressReply) Reset ¶
func (x *GetAddressReply) Reset()
func (*GetAddressReply) String ¶
func (x *GetAddressReply) String() string
type GetAddressRequest ¶
type GetAddressRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetAddressRequest) Descriptor
deprecated
func (*GetAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAddressRequest.ProtoReflect.Descriptor instead.
func (*GetAddressRequest) GetId ¶
func (x *GetAddressRequest) GetId() int64
func (*GetAddressRequest) ProtoMessage ¶
func (*GetAddressRequest) ProtoMessage()
func (*GetAddressRequest) ProtoReflect ¶
func (x *GetAddressRequest) ProtoReflect() protoreflect.Message
func (*GetAddressRequest) Reset ¶
func (x *GetAddressRequest) Reset()
func (*GetAddressRequest) String ¶
func (x *GetAddressRequest) String() string
type GetUserReply ¶
type GetUserReply struct { User *UserInfo `protobuf:"bytes,1,opt,name=User,proto3" json:"User,omitempty"` // contains filtered or unexported fields }
func (*GetUserReply) Descriptor
deprecated
func (*GetUserReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUserReply.ProtoReflect.Descriptor instead.
func (*GetUserReply) GetUser ¶
func (x *GetUserReply) GetUser() *UserInfo
func (*GetUserReply) ProtoMessage ¶
func (*GetUserReply) ProtoMessage()
func (*GetUserReply) ProtoReflect ¶
func (x *GetUserReply) ProtoReflect() protoreflect.Message
func (*GetUserReply) Reset ¶
func (x *GetUserReply) Reset()
func (*GetUserReply) String ¶
func (x *GetUserReply) String() string
type GetUserRequest ¶
type GetUserRequest struct {
// contains filtered or unexported fields
}
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type ListAddressReply ¶
type ListAddressReply struct { Results []*AddressInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*ListAddressReply) Descriptor
deprecated
func (*ListAddressReply) Descriptor() ([]byte, []int)
Deprecated: Use ListAddressReply.ProtoReflect.Descriptor instead.
func (*ListAddressReply) GetCount ¶
func (x *ListAddressReply) GetCount() int64
func (*ListAddressReply) GetResults ¶
func (x *ListAddressReply) GetResults() []*AddressInfo
func (*ListAddressReply) ProtoMessage ¶
func (*ListAddressReply) ProtoMessage()
func (*ListAddressReply) ProtoReflect ¶
func (x *ListAddressReply) ProtoReflect() protoreflect.Message
func (*ListAddressReply) Reset ¶
func (x *ListAddressReply) Reset()
func (*ListAddressReply) String ¶
func (x *ListAddressReply) String() string
type ListAddressRequest ¶
type ListAddressRequest struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
func (*ListAddressRequest) Descriptor
deprecated
func (*ListAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAddressRequest.ProtoReflect.Descriptor instead.
func (*ListAddressRequest) GetPage ¶
func (x *ListAddressRequest) GetPage() int64
func (*ListAddressRequest) GetPageSize ¶
func (x *ListAddressRequest) GetPageSize() int64
func (*ListAddressRequest) ProtoMessage ¶
func (*ListAddressRequest) ProtoMessage()
func (*ListAddressRequest) ProtoReflect ¶
func (x *ListAddressRequest) ProtoReflect() protoreflect.Message
func (*ListAddressRequest) Reset ¶
func (x *ListAddressRequest) Reset()
func (*ListAddressRequest) String ¶
func (x *ListAddressRequest) String() string
type LoginByUsernameRequest ¶
type LoginByUsernameRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginByUsernameRequest) Descriptor
deprecated
func (*LoginByUsernameRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginByUsernameRequest.ProtoReflect.Descriptor instead.
func (*LoginByUsernameRequest) GetPassword ¶
func (x *LoginByUsernameRequest) GetPassword() string
func (*LoginByUsernameRequest) GetUsername ¶
func (x *LoginByUsernameRequest) GetUsername() string
func (*LoginByUsernameRequest) ProtoMessage ¶
func (*LoginByUsernameRequest) ProtoMessage()
func (*LoginByUsernameRequest) ProtoReflect ¶
func (x *LoginByUsernameRequest) ProtoReflect() protoreflect.Message
func (*LoginByUsernameRequest) Reset ¶
func (x *LoginByUsernameRequest) Reset()
func (*LoginByUsernameRequest) String ¶
func (x *LoginByUsernameRequest) String() string
type LoginByVerifyCodeRequest ¶
type LoginByVerifyCodeRequest struct { Mobile string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*LoginByVerifyCodeRequest) Descriptor
deprecated
func (*LoginByVerifyCodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginByVerifyCodeRequest.ProtoReflect.Descriptor instead.
func (*LoginByVerifyCodeRequest) GetCode ¶
func (x *LoginByVerifyCodeRequest) GetCode() string
func (*LoginByVerifyCodeRequest) GetMobile ¶
func (x *LoginByVerifyCodeRequest) GetMobile() string
func (*LoginByVerifyCodeRequest) ProtoMessage ¶
func (*LoginByVerifyCodeRequest) ProtoMessage()
func (*LoginByVerifyCodeRequest) ProtoReflect ¶
func (x *LoginByVerifyCodeRequest) ProtoReflect() protoreflect.Message
func (*LoginByVerifyCodeRequest) Reset ¶
func (x *LoginByVerifyCodeRequest) Reset()
func (*LoginByVerifyCodeRequest) String ¶
func (x *LoginByVerifyCodeRequest) String() string
type LoginUserReply ¶
type LoginUserReply struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*LoginUserReply) Descriptor
deprecated
func (*LoginUserReply) Descriptor() ([]byte, []int)
Deprecated: Use LoginUserReply.ProtoReflect.Descriptor instead.
func (*LoginUserReply) GetToken ¶
func (x *LoginUserReply) GetToken() string
func (*LoginUserReply) ProtoMessage ¶
func (*LoginUserReply) ProtoMessage()
func (*LoginUserReply) ProtoReflect ¶
func (x *LoginUserReply) ProtoReflect() protoreflect.Message
func (*LoginUserReply) Reset ¶
func (x *LoginUserReply) Reset()
func (*LoginUserReply) String ¶
func (x *LoginUserReply) String() string
type RegisterUserReply ¶
type RegisterUserReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*RegisterUserReply) Descriptor
deprecated
func (*RegisterUserReply) Descriptor() ([]byte, []int)
Deprecated: Use RegisterUserReply.ProtoReflect.Descriptor instead.
func (*RegisterUserReply) GetMessage ¶
func (x *RegisterUserReply) GetMessage() string
func (*RegisterUserReply) ProtoMessage ¶
func (*RegisterUserReply) ProtoMessage()
func (*RegisterUserReply) ProtoReflect ¶
func (x *RegisterUserReply) ProtoReflect() protoreflect.Message
func (*RegisterUserReply) Reset ¶
func (x *RegisterUserReply) Reset()
func (*RegisterUserReply) String ¶
func (x *RegisterUserReply) String() string
type RegisterUserRequest ¶
type RegisterUserRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"` Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"` // contains filtered or unexported fields }
func (*RegisterUserRequest) Descriptor
deprecated
func (*RegisterUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterUserRequest.ProtoReflect.Descriptor instead.
func (*RegisterUserRequest) GetAvatar ¶
func (x *RegisterUserRequest) GetAvatar() string
func (*RegisterUserRequest) GetId ¶
func (x *RegisterUserRequest) GetId() int64
func (*RegisterUserRequest) GetMobile ¶
func (x *RegisterUserRequest) GetMobile() string
func (*RegisterUserRequest) GetNickname ¶
func (x *RegisterUserRequest) GetNickname() string
func (*RegisterUserRequest) GetPassword ¶
func (x *RegisterUserRequest) GetPassword() string
func (*RegisterUserRequest) GetUsername ¶
func (x *RegisterUserRequest) GetUsername() string
func (*RegisterUserRequest) ProtoMessage ¶
func (*RegisterUserRequest) ProtoMessage()
func (*RegisterUserRequest) ProtoReflect ¶
func (x *RegisterUserRequest) ProtoReflect() protoreflect.Message
func (*RegisterUserRequest) Reset ¶
func (x *RegisterUserRequest) Reset()
func (*RegisterUserRequest) String ¶
func (x *RegisterUserRequest) String() string
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServer) CheckUserOK ¶
func (UnimplementedUserServer) CheckUserOK(context.Context, *CheckUserOKRequest) (*CheckUserOKReply, error)
func (UnimplementedUserServer) CreateAddress ¶
func (UnimplementedUserServer) CreateAddress(context.Context, *CreateAddressRequest) (*CreateAddressReply, error)
func (UnimplementedUserServer) DeleteAddress ¶
func (UnimplementedUserServer) DeleteAddress(context.Context, *DeleteAddressRequest) (*DeleteAddressReply, error)
func (UnimplementedUserServer) GetAddress ¶
func (UnimplementedUserServer) GetAddress(context.Context, *GetAddressRequest) (*GetAddressReply, error)
func (UnimplementedUserServer) GetUser ¶
func (UnimplementedUserServer) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error)
func (UnimplementedUserServer) ListAddress ¶
func (UnimplementedUserServer) ListAddress(context.Context, *ListAddressRequest) (*ListAddressReply, error)
func (UnimplementedUserServer) LoginByUsername ¶
func (UnimplementedUserServer) LoginByUsername(context.Context, *LoginByUsernameRequest) (*LoginUserReply, error)
func (UnimplementedUserServer) LoginByVerifyCode ¶
func (UnimplementedUserServer) LoginByVerifyCode(context.Context, *LoginByVerifyCodeRequest) (*LoginUserReply, error)
func (UnimplementedUserServer) RegisterUser ¶
func (UnimplementedUserServer) RegisterUser(context.Context, *RegisterUserRequest) (*RegisterUserReply, error)
func (UnimplementedUserServer) UpdateAddress ¶
func (UnimplementedUserServer) UpdateAddress(context.Context, *UpdateAddressRequest) (*UpdateAddressReply, error)
type UnsafeUserServer ¶
type UnsafeUserServer interface {
// contains filtered or unexported methods
}
UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.
type UpdateAddressReply ¶
type UpdateAddressReply struct {
// contains filtered or unexported fields
}
func (*UpdateAddressReply) Descriptor
deprecated
func (*UpdateAddressReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAddressReply.ProtoReflect.Descriptor instead.
func (*UpdateAddressReply) ProtoMessage ¶
func (*UpdateAddressReply) ProtoMessage()
func (*UpdateAddressReply) ProtoReflect ¶
func (x *UpdateAddressReply) ProtoReflect() protoreflect.Message
func (*UpdateAddressReply) Reset ¶
func (x *UpdateAddressReply) Reset()
func (*UpdateAddressReply) String ¶
func (x *UpdateAddressReply) String() string
type UpdateAddressRequest ¶
type UpdateAddressRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"` Province string `protobuf:"bytes,4,opt,name=province,proto3" json:"province,omitempty"` City string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"` CountryDistrict string `protobuf:"bytes,6,opt,name=countryDistrict,proto3" json:"countryDistrict,omitempty"` DetailedAddress string `protobuf:"bytes,7,opt,name=detailedAddress,proto3" json:"detailedAddress,omitempty"` IsDefault int64 `protobuf:"varint,8,opt,name=isDefault,proto3" json:"isDefault,omitempty"` Status int64 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*UpdateAddressRequest) Descriptor
deprecated
func (*UpdateAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAddressRequest.ProtoReflect.Descriptor instead.
func (*UpdateAddressRequest) GetCity ¶
func (x *UpdateAddressRequest) GetCity() string
func (*UpdateAddressRequest) GetCountry ¶
func (x *UpdateAddressRequest) GetCountry() string
func (*UpdateAddressRequest) GetCountryDistrict ¶
func (x *UpdateAddressRequest) GetCountryDistrict() string
func (*UpdateAddressRequest) GetDetailedAddress ¶
func (x *UpdateAddressRequest) GetDetailedAddress() string
func (*UpdateAddressRequest) GetId ¶
func (x *UpdateAddressRequest) GetId() int64
func (*UpdateAddressRequest) GetIsDefault ¶
func (x *UpdateAddressRequest) GetIsDefault() int64
func (*UpdateAddressRequest) GetProvince ¶
func (x *UpdateAddressRequest) GetProvince() string
func (*UpdateAddressRequest) GetStatus ¶
func (x *UpdateAddressRequest) GetStatus() int64
func (*UpdateAddressRequest) GetUserId ¶
func (x *UpdateAddressRequest) GetUserId() int64
func (*UpdateAddressRequest) ProtoMessage ¶
func (*UpdateAddressRequest) ProtoMessage()
func (*UpdateAddressRequest) ProtoReflect ¶
func (x *UpdateAddressRequest) ProtoReflect() protoreflect.Message
func (*UpdateAddressRequest) Reset ¶
func (x *UpdateAddressRequest) Reset()
func (*UpdateAddressRequest) String ¶
func (x *UpdateAddressRequest) String() string
type UserClient ¶
type UserClient interface { // 用户注册 RegisterUser(ctx context.Context, in *RegisterUserRequest, opts ...grpc.CallOption) (*RegisterUserReply, error) // 用户登陆-账号密码 LoginByUsername(ctx context.Context, in *LoginByUsernameRequest, opts ...grpc.CallOption) (*LoginUserReply, error) // 用户登陆-短信验证码 LoginByVerifyCode(ctx context.Context, in *LoginByVerifyCodeRequest, opts ...grpc.CallOption) (*LoginUserReply, error) // 获取用户信息 GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserReply, error) // 检测用户是否正常 CheckUserOK(ctx context.Context, in *CheckUserOKRequest, opts ...grpc.CallOption) (*CheckUserOKReply, error) // 地址列表 ListAddress(ctx context.Context, in *ListAddressRequest, opts ...grpc.CallOption) (*ListAddressReply, error) // 地址创建 CreateAddress(ctx context.Context, in *CreateAddressRequest, opts ...grpc.CallOption) (*CreateAddressReply, error) // 地址详情 GetAddress(ctx context.Context, in *GetAddressRequest, opts ...grpc.CallOption) (*GetAddressReply, error) // 地址更新 UpdateAddress(ctx context.Context, in *UpdateAddressRequest, opts ...grpc.CallOption) (*UpdateAddressReply, error) // 地址删除 DeleteAddress(ctx context.Context, in *DeleteAddressRequest, opts ...grpc.CallOption) (*DeleteAddressReply, error) }
UserClient is the client API for User 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 NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) UserClient
type UserHTTPClient ¶
type UserHTTPClient interface { CheckUserOK(ctx context.Context, req *CheckUserOKRequest, opts ...http.CallOption) (rsp *CheckUserOKReply, err error) CreateAddress(ctx context.Context, req *CreateAddressRequest, opts ...http.CallOption) (rsp *CreateAddressReply, err error) DeleteAddress(ctx context.Context, req *DeleteAddressRequest, opts ...http.CallOption) (rsp *DeleteAddressReply, err error) GetAddress(ctx context.Context, req *GetAddressRequest, opts ...http.CallOption) (rsp *GetAddressReply, err error) GetUser(ctx context.Context, req *GetUserRequest, opts ...http.CallOption) (rsp *GetUserReply, err error) ListAddress(ctx context.Context, req *ListAddressRequest, opts ...http.CallOption) (rsp *ListAddressReply, err error) LoginByUsername(ctx context.Context, req *LoginByUsernameRequest, opts ...http.CallOption) (rsp *LoginUserReply, err error) LoginByVerifyCode(ctx context.Context, req *LoginByVerifyCodeRequest, opts ...http.CallOption) (rsp *LoginUserReply, err error) RegisterUser(ctx context.Context, req *RegisterUserRequest, opts ...http.CallOption) (rsp *RegisterUserReply, err error) UpdateAddress(ctx context.Context, req *UpdateAddressRequest, opts ...http.CallOption) (rsp *UpdateAddressReply, err error) }
func NewUserHTTPClient ¶
func NewUserHTTPClient(client *http.Client) UserHTTPClient
type UserHTTPClientImpl ¶
type UserHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserHTTPClientImpl) CheckUserOK ¶
func (c *UserHTTPClientImpl) CheckUserOK(ctx context.Context, in *CheckUserOKRequest, opts ...http.CallOption) (*CheckUserOKReply, error)
func (*UserHTTPClientImpl) CreateAddress ¶
func (c *UserHTTPClientImpl) CreateAddress(ctx context.Context, in *CreateAddressRequest, opts ...http.CallOption) (*CreateAddressReply, error)
func (*UserHTTPClientImpl) DeleteAddress ¶
func (c *UserHTTPClientImpl) DeleteAddress(ctx context.Context, in *DeleteAddressRequest, opts ...http.CallOption) (*DeleteAddressReply, error)
func (*UserHTTPClientImpl) GetAddress ¶
func (c *UserHTTPClientImpl) GetAddress(ctx context.Context, in *GetAddressRequest, opts ...http.CallOption) (*GetAddressReply, error)
func (*UserHTTPClientImpl) GetUser ¶
func (c *UserHTTPClientImpl) GetUser(ctx context.Context, in *GetUserRequest, opts ...http.CallOption) (*GetUserReply, error)
func (*UserHTTPClientImpl) ListAddress ¶
func (c *UserHTTPClientImpl) ListAddress(ctx context.Context, in *ListAddressRequest, opts ...http.CallOption) (*ListAddressReply, error)
func (*UserHTTPClientImpl) LoginByUsername ¶
func (c *UserHTTPClientImpl) LoginByUsername(ctx context.Context, in *LoginByUsernameRequest, opts ...http.CallOption) (*LoginUserReply, error)
func (*UserHTTPClientImpl) LoginByVerifyCode ¶
func (c *UserHTTPClientImpl) LoginByVerifyCode(ctx context.Context, in *LoginByVerifyCodeRequest, opts ...http.CallOption) (*LoginUserReply, error)
func (*UserHTTPClientImpl) RegisterUser ¶
func (c *UserHTTPClientImpl) RegisterUser(ctx context.Context, in *RegisterUserRequest, opts ...http.CallOption) (*RegisterUserReply, error)
func (*UserHTTPClientImpl) UpdateAddress ¶
func (c *UserHTTPClientImpl) UpdateAddress(ctx context.Context, in *UpdateAddressRequest, opts ...http.CallOption) (*UpdateAddressReply, error)
type UserHTTPServer ¶
type UserHTTPServer interface { CheckUserOK(context.Context, *CheckUserOKRequest) (*CheckUserOKReply, error) CreateAddress(context.Context, *CreateAddressRequest) (*CreateAddressReply, error) DeleteAddress(context.Context, *DeleteAddressRequest) (*DeleteAddressReply, error) GetAddress(context.Context, *GetAddressRequest) (*GetAddressReply, error) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error) ListAddress(context.Context, *ListAddressRequest) (*ListAddressReply, error) LoginByUsername(context.Context, *LoginByUsernameRequest) (*LoginUserReply, error) LoginByVerifyCode(context.Context, *LoginByVerifyCodeRequest) (*LoginUserReply, error) RegisterUser(context.Context, *RegisterUserRequest) (*RegisterUserReply, error) UpdateAddress(context.Context, *UpdateAddressRequest) (*UpdateAddressReply, error) }
type UserInfo ¶
type UserInfo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"` Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"` Status int64 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*UserInfo) Descriptor
deprecated
func (*UserInfo) GetNickname ¶
func (*UserInfo) GetPassword ¶
func (*UserInfo) GetUsername ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message
type UserServer ¶
type UserServer interface { // 用户注册 RegisterUser(context.Context, *RegisterUserRequest) (*RegisterUserReply, error) // 用户登陆-账号密码 LoginByUsername(context.Context, *LoginByUsernameRequest) (*LoginUserReply, error) // 用户登陆-短信验证码 LoginByVerifyCode(context.Context, *LoginByVerifyCodeRequest) (*LoginUserReply, error) // 获取用户信息 GetUser(context.Context, *GetUserRequest) (*GetUserReply, error) // 检测用户是否正常 CheckUserOK(context.Context, *CheckUserOKRequest) (*CheckUserOKReply, error) // 地址列表 ListAddress(context.Context, *ListAddressRequest) (*ListAddressReply, error) // 地址创建 CreateAddress(context.Context, *CreateAddressRequest) (*CreateAddressReply, error) // 地址详情 GetAddress(context.Context, *GetAddressRequest) (*GetAddressReply, error) // 地址更新 UpdateAddress(context.Context, *UpdateAddressRequest) (*UpdateAddressReply, error) // 地址删除 DeleteAddress(context.Context, *DeleteAddressRequest) (*DeleteAddressReply, error) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility