Documentation ¶
Index ¶
- Variables
- func ErrorLoginFailed(format string, args ...interface{}) *errors.Error
- func ErrorRegisterFailed(format string, args ...interface{}) *errors.Error
- func ErrorUnknownError(format string, args ...interface{}) *errors.Error
- func ErrorUsernameConflict(format string, args ...interface{}) *errors.Error
- func IsLoginFailed(err error) bool
- func IsRegisterFailed(err error) bool
- func IsUnknownError(err error) bool
- func IsUsernameConflict(err error) bool
- func RegisterShopInterfaceHTTPServer(s *http.Server, srv ShopInterfaceHTTPServer)
- func RegisterShopInterfaceServer(s grpc.ServiceRegistrar, srv ShopInterfaceServer)
- type AddCartItemReply
- type AddCartItemReq
- type CreateAddressReply
- func (*CreateAddressReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAddressReply) GetAddress() string
- func (x *CreateAddressReply) GetCity() string
- func (x *CreateAddressReply) GetCountry() string
- func (x *CreateAddressReply) GetId() int64
- func (x *CreateAddressReply) GetMobile() string
- func (x *CreateAddressReply) GetName() string
- func (x *CreateAddressReply) GetPostCode() string
- func (*CreateAddressReply) ProtoMessage()
- func (x *CreateAddressReply) ProtoReflect() protoreflect.Message
- func (x *CreateAddressReply) Reset()
- func (x *CreateAddressReply) String() string
- type CreateAddressReq
- func (*CreateAddressReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAddressReq) GetAddress() string
- func (x *CreateAddressReq) GetCity() string
- func (x *CreateAddressReq) GetCountry() string
- func (x *CreateAddressReq) GetMobile() string
- func (x *CreateAddressReq) GetName() string
- func (x *CreateAddressReq) GetPostCode() string
- func (x *CreateAddressReq) GetUid() int64
- func (*CreateAddressReq) ProtoMessage()
- func (x *CreateAddressReq) ProtoReflect() protoreflect.Message
- func (x *CreateAddressReq) Reset()
- func (x *CreateAddressReq) String() string
- type CreateCardReply
- type CreateCardReq
- func (*CreateCardReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCardReq) GetCardNo() string
- func (x *CreateCardReq) GetCcv() string
- func (x *CreateCardReq) GetExpires() string
- func (x *CreateCardReq) GetUid() int64
- func (*CreateCardReq) ProtoMessage()
- func (x *CreateCardReq) ProtoReflect() protoreflect.Message
- func (x *CreateCardReq) Reset()
- func (x *CreateCardReq) String() string
- type CreateOrderReply
- type CreateOrderReq
- type CreateUserReply
- func (*CreateUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserReply) GetId() int64
- func (x *CreateUserReply) GetUsername() string
- func (*CreateUserReply) ProtoMessage()
- func (x *CreateUserReply) ProtoReflect() protoreflect.Message
- func (x *CreateUserReply) Reset()
- func (x *CreateUserReply) String() string
- type CreateUserReq
- func (*CreateUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserReq) GetPassword() string
- func (x *CreateUserReq) GetUsername() string
- func (*CreateUserReq) ProtoMessage()
- func (x *CreateUserReq) ProtoReflect() protoreflect.Message
- func (x *CreateUserReq) Reset()
- func (x *CreateUserReq) String() string
- type DeleteCardReply
- type DeleteCardReq
- type GetAddressReply
- func (*GetAddressReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetAddressReply) GetAddress() string
- func (x *GetAddressReply) GetCity() string
- func (x *GetAddressReply) GetCountry() string
- func (x *GetAddressReply) GetId() int64
- func (x *GetAddressReply) GetMobile() string
- func (x *GetAddressReply) GetName() string
- func (x *GetAddressReply) GetPostCode() string
- func (*GetAddressReply) ProtoMessage()
- func (x *GetAddressReply) ProtoReflect() protoreflect.Message
- func (x *GetAddressReply) Reset()
- func (x *GetAddressReply) String() string
- type GetAddressReq
- type GetBeerReply
- func (*GetBeerReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetBeerReply) GetCount() int64
- func (x *GetBeerReply) GetDescription() string
- func (x *GetBeerReply) GetId() int64
- func (x *GetBeerReply) GetImage() []*GetBeerReply_Image
- func (x *GetBeerReply) GetName() string
- func (*GetBeerReply) ProtoMessage()
- func (x *GetBeerReply) ProtoReflect() protoreflect.Message
- func (x *GetBeerReply) Reset()
- func (x *GetBeerReply) String() string
- type GetBeerReply_Image
- type GetBeerReq
- type GetCardReply
- func (*GetCardReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetCardReply) GetCardNo() string
- func (x *GetCardReply) GetCcv() string
- func (x *GetCardReply) GetExpires() string
- func (x *GetCardReply) GetId() int64
- func (*GetCardReply) ProtoMessage()
- func (x *GetCardReply) ProtoReflect() protoreflect.Message
- func (x *GetCardReply) Reset()
- func (x *GetCardReply) String() string
- type GetCardReq
- type GetUserReply
- func (*GetUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserReply) GetId() int64
- func (x *GetUserReply) GetUsername() string
- func (*GetUserReply) ProtoMessage()
- func (x *GetUserReply) ProtoReflect() protoreflect.Message
- func (x *GetUserReply) Reset()
- func (x *GetUserReply) String() string
- type GetUserReq
- type ListAddressReply
- func (*ListAddressReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListAddressReply) GetResults() []*ListAddressReply_Address
- func (*ListAddressReply) ProtoMessage()
- func (x *ListAddressReply) ProtoReflect() protoreflect.Message
- func (x *ListAddressReply) Reset()
- func (x *ListAddressReply) String() string
- type ListAddressReply_Address
- func (*ListAddressReply_Address) Descriptor() ([]byte, []int)deprecated
- func (x *ListAddressReply_Address) GetAddress() string
- func (x *ListAddressReply_Address) GetCity() string
- func (x *ListAddressReply_Address) GetCountry() string
- func (x *ListAddressReply_Address) GetId() int64
- func (x *ListAddressReply_Address) GetMobile() string
- func (x *ListAddressReply_Address) GetName() string
- func (x *ListAddressReply_Address) GetPostCode() string
- func (*ListAddressReply_Address) ProtoMessage()
- func (x *ListAddressReply_Address) ProtoReflect() protoreflect.Message
- func (x *ListAddressReply_Address) Reset()
- func (x *ListAddressReply_Address) String() string
- type ListAddressReq
- type ListBeerReply
- type ListBeerReply_Beer
- func (*ListBeerReply_Beer) Descriptor() ([]byte, []int)deprecated
- func (x *ListBeerReply_Beer) GetCount() int64
- func (x *ListBeerReply_Beer) GetDescription() string
- func (x *ListBeerReply_Beer) GetId() int64
- func (x *ListBeerReply_Beer) GetImage() []*ListBeerReply_Beer_Image
- func (x *ListBeerReply_Beer) GetName() string
- func (*ListBeerReply_Beer) ProtoMessage()
- func (x *ListBeerReply_Beer) ProtoReflect() protoreflect.Message
- func (x *ListBeerReply_Beer) Reset()
- func (x *ListBeerReply_Beer) String() string
- type ListBeerReply_Beer_Image
- func (*ListBeerReply_Beer_Image) Descriptor() ([]byte, []int)deprecated
- func (x *ListBeerReply_Beer_Image) GetUrl() string
- func (*ListBeerReply_Beer_Image) ProtoMessage()
- func (x *ListBeerReply_Beer_Image) ProtoReflect() protoreflect.Message
- func (x *ListBeerReply_Beer_Image) Reset()
- func (x *ListBeerReply_Beer_Image) String() string
- type ListBeerReq
- func (*ListBeerReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListBeerReq) GetPageNum() int64
- func (x *ListBeerReq) GetPageSize() int64
- func (*ListBeerReq) ProtoMessage()
- func (x *ListBeerReq) ProtoReflect() protoreflect.Message
- func (x *ListBeerReq) Reset()
- func (x *ListBeerReq) String() string
- type ListCardReply
- type ListCardReply_Card
- func (*ListCardReply_Card) Descriptor() ([]byte, []int)deprecated
- func (x *ListCardReply_Card) GetCardNo() string
- func (x *ListCardReply_Card) GetCcv() string
- func (x *ListCardReply_Card) GetExpires() string
- func (x *ListCardReply_Card) GetId() int64
- func (*ListCardReply_Card) ProtoMessage()
- func (x *ListCardReply_Card) ProtoReflect() protoreflect.Message
- func (x *ListCardReply_Card) Reset()
- func (x *ListCardReply_Card) String() string
- type ListCardReq
- type ListCartItemReply
- type ListCartItemReq
- func (*ListCartItemReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListCartItemReq) GetPageNum() int64
- func (x *ListCartItemReq) GetPageSize() int64
- func (*ListCartItemReq) ProtoMessage()
- func (x *ListCartItemReq) ProtoReflect() protoreflect.Message
- func (x *ListCartItemReq) Reset()
- func (x *ListCartItemReq) String() string
- type ListOrderReply
- type ListOrderReq
- func (*ListOrderReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrderReq) GetPageNum() int64
- func (x *ListOrderReq) GetPageSize() int64
- func (*ListOrderReq) ProtoMessage()
- func (x *ListOrderReq) ProtoReflect() protoreflect.Message
- func (x *ListOrderReq) Reset()
- func (x *ListOrderReq) String() string
- type LoginReply
- type LoginReq
- type LogoutReply
- type LogoutReq
- type RegisterReply
- type RegisterReq
- func (*RegisterReq) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterReq) GetPassword() string
- func (x *RegisterReq) GetUsername() string
- func (*RegisterReq) ProtoMessage()
- func (x *RegisterReq) ProtoReflect() protoreflect.Message
- func (x *RegisterReq) Reset()
- func (x *RegisterReq) String() string
- type ShopInterfaceClient
- type ShopInterfaceErrorReason
- func (ShopInterfaceErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ShopInterfaceErrorReason) Enum() *ShopInterfaceErrorReason
- func (ShopInterfaceErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ShopInterfaceErrorReason) Number() protoreflect.EnumNumber
- func (x ShopInterfaceErrorReason) String() string
- func (ShopInterfaceErrorReason) Type() protoreflect.EnumType
- type ShopInterfaceHTTPClient
- type ShopInterfaceHTTPClientImpl
- func (c *ShopInterfaceHTTPClientImpl) AddCartItem(ctx context.Context, in *AddCartItemReq, opts ...http.CallOption) (*AddCartItemReply, error)
- func (c *ShopInterfaceHTTPClientImpl) CreateAddress(ctx context.Context, in *CreateAddressReq, opts ...http.CallOption) (*CreateAddressReply, error)
- func (c *ShopInterfaceHTTPClientImpl) CreateCard(ctx context.Context, in *CreateCardReq, opts ...http.CallOption) (*CreateCardReply, error)
- func (c *ShopInterfaceHTTPClientImpl) CreateOrder(ctx context.Context, in *CreateOrderReq, opts ...http.CallOption) (*CreateOrderReply, error)
- func (c *ShopInterfaceHTTPClientImpl) DeleteCard(ctx context.Context, in *DeleteCardReq, opts ...http.CallOption) (*DeleteCardReply, error)
- func (c *ShopInterfaceHTTPClientImpl) GetAddress(ctx context.Context, in *GetAddressReq, opts ...http.CallOption) (*GetAddressReply, error)
- func (c *ShopInterfaceHTTPClientImpl) GetBeer(ctx context.Context, in *GetBeerReq, opts ...http.CallOption) (*GetBeerReply, error)
- func (c *ShopInterfaceHTTPClientImpl) GetCard(ctx context.Context, in *GetCardReq, opts ...http.CallOption) (*GetCardReply, error)
- func (c *ShopInterfaceHTTPClientImpl) ListAddress(ctx context.Context, in *ListAddressReq, opts ...http.CallOption) (*ListAddressReply, error)
- func (c *ShopInterfaceHTTPClientImpl) ListBeer(ctx context.Context, in *ListBeerReq, opts ...http.CallOption) (*ListBeerReply, error)
- func (c *ShopInterfaceHTTPClientImpl) ListCard(ctx context.Context, in *ListCardReq, opts ...http.CallOption) (*ListCardReply, error)
- func (c *ShopInterfaceHTTPClientImpl) ListCartItem(ctx context.Context, in *ListCartItemReq, opts ...http.CallOption) (*ListCartItemReply, error)
- func (c *ShopInterfaceHTTPClientImpl) ListOrder(ctx context.Context, in *ListOrderReq, opts ...http.CallOption) (*ListOrderReply, error)
- func (c *ShopInterfaceHTTPClientImpl) Login(ctx context.Context, in *LoginReq, opts ...http.CallOption) (*LoginReply, error)
- func (c *ShopInterfaceHTTPClientImpl) Logout(ctx context.Context, in *LogoutReq, opts ...http.CallOption) (*LogoutReply, error)
- func (c *ShopInterfaceHTTPClientImpl) Register(ctx context.Context, in *RegisterReq, opts ...http.CallOption) (*RegisterReply, error)
- type ShopInterfaceHTTPServer
- type ShopInterfaceServer
- type UnimplementedShopInterfaceServer
- func (UnimplementedShopInterfaceServer) AddCartItem(context.Context, *AddCartItemReq) (*AddCartItemReply, error)
- func (UnimplementedShopInterfaceServer) CreateAddress(context.Context, *CreateAddressReq) (*CreateAddressReply, error)
- func (UnimplementedShopInterfaceServer) CreateCard(context.Context, *CreateCardReq) (*CreateCardReply, error)
- func (UnimplementedShopInterfaceServer) CreateOrder(context.Context, *CreateOrderReq) (*CreateOrderReply, error)
- func (UnimplementedShopInterfaceServer) DeleteCard(context.Context, *DeleteCardReq) (*DeleteCardReply, error)
- func (UnimplementedShopInterfaceServer) GetAddress(context.Context, *GetAddressReq) (*GetAddressReply, error)
- func (UnimplementedShopInterfaceServer) GetBeer(context.Context, *GetBeerReq) (*GetBeerReply, error)
- func (UnimplementedShopInterfaceServer) GetCard(context.Context, *GetCardReq) (*GetCardReply, error)
- func (UnimplementedShopInterfaceServer) ListAddress(context.Context, *ListAddressReq) (*ListAddressReply, error)
- func (UnimplementedShopInterfaceServer) ListBeer(context.Context, *ListBeerReq) (*ListBeerReply, error)
- func (UnimplementedShopInterfaceServer) ListCard(context.Context, *ListCardReq) (*ListCardReply, error)
- func (UnimplementedShopInterfaceServer) ListCartItem(context.Context, *ListCartItemReq) (*ListCartItemReply, error)
- func (UnimplementedShopInterfaceServer) ListOrder(context.Context, *ListOrderReq) (*ListOrderReply, error)
- func (UnimplementedShopInterfaceServer) Login(context.Context, *LoginReq) (*LoginReply, error)
- func (UnimplementedShopInterfaceServer) Logout(context.Context, *LogoutReq) (*LogoutReply, error)
- func (UnimplementedShopInterfaceServer) Register(context.Context, *RegisterReq) (*RegisterReply, error)
- type UnsafeShopInterfaceServer
- type VerifyPasswordReply
- func (*VerifyPasswordReply) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyPasswordReply) GetId() int64
- func (x *VerifyPasswordReply) GetOk() bool
- func (*VerifyPasswordReply) ProtoMessage()
- func (x *VerifyPasswordReply) ProtoReflect() protoreflect.Message
- func (x *VerifyPasswordReply) Reset()
- func (x *VerifyPasswordReply) String() string
- type VerifyPasswordReq
- func (*VerifyPasswordReq) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyPasswordReq) GetPassword() string
- func (x *VerifyPasswordReq) GetUsername() string
- func (*VerifyPasswordReq) ProtoMessage()
- func (x *VerifyPasswordReq) ProtoReflect() protoreflect.Message
- func (x *VerifyPasswordReq) Reset()
- func (x *VerifyPasswordReq) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ShopInterfaceErrorReason_name = map[int32]string{ 0: "UNKNOWN_ERROR", 1: "LOGIN_FAILED", 2: "USERNAME_CONFLICT", 3: "REGISTER_FAILED", } ShopInterfaceErrorReason_value = map[string]int32{ "UNKNOWN_ERROR": 0, "LOGIN_FAILED": 1, "USERNAME_CONFLICT": 2, "REGISTER_FAILED": 3, } )
Enum value maps for ShopInterfaceErrorReason.
var File_v1_shop_interface_error_proto protoreflect.FileDescriptor
var File_v1_shop_interface_proto protoreflect.FileDescriptor
var ShopInterface_ServiceDesc = grpc.ServiceDesc{ ServiceName: "shop.interface.v1.ShopInterface", HandlerType: (*ShopInterfaceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _ShopInterface_Register_Handler, }, { MethodName: "Login", Handler: _ShopInterface_Login_Handler, }, { MethodName: "Logout", Handler: _ShopInterface_Logout_Handler, }, { MethodName: "ListAddress", Handler: _ShopInterface_ListAddress_Handler, }, { MethodName: "CreateAddress", Handler: _ShopInterface_CreateAddress_Handler, }, { MethodName: "GetAddress", Handler: _ShopInterface_GetAddress_Handler, }, { MethodName: "ListCard", Handler: _ShopInterface_ListCard_Handler, }, { MethodName: "CreateCard", Handler: _ShopInterface_CreateCard_Handler, }, { MethodName: "GetCard", Handler: _ShopInterface_GetCard_Handler, }, { MethodName: "DeleteCard", Handler: _ShopInterface_DeleteCard_Handler, }, { MethodName: "ListBeer", Handler: _ShopInterface_ListBeer_Handler, }, { MethodName: "GetBeer", Handler: _ShopInterface_GetBeer_Handler, }, { MethodName: "ListCartItem", Handler: _ShopInterface_ListCartItem_Handler, }, { MethodName: "AddCartItem", Handler: _ShopInterface_AddCartItem_Handler, }, { MethodName: "CreateOrder", Handler: _ShopInterface_CreateOrder_Handler, }, { MethodName: "ListOrder", Handler: _ShopInterface_ListOrder_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/shop_interface.proto", }
ShopInterface_ServiceDesc is the grpc.ServiceDesc for ShopInterface service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorLoginFailed ¶
func ErrorRegisterFailed ¶
func ErrorUnknownError ¶
func ErrorUsernameConflict ¶
func IsLoginFailed ¶
func IsRegisterFailed ¶
func IsUnknownError ¶
func IsUsernameConflict ¶
func RegisterShopInterfaceHTTPServer ¶
func RegisterShopInterfaceHTTPServer(s *http.Server, srv ShopInterfaceHTTPServer)
func RegisterShopInterfaceServer ¶
func RegisterShopInterfaceServer(s grpc.ServiceRegistrar, srv ShopInterfaceServer)
Types ¶
type AddCartItemReply ¶
type AddCartItemReply struct {
// contains filtered or unexported fields
}
func (*AddCartItemReply) Descriptor
deprecated
func (*AddCartItemReply) Descriptor() ([]byte, []int)
Deprecated: Use AddCartItemReply.ProtoReflect.Descriptor instead.
func (*AddCartItemReply) ProtoMessage ¶
func (*AddCartItemReply) ProtoMessage()
func (*AddCartItemReply) ProtoReflect ¶
func (x *AddCartItemReply) ProtoReflect() protoreflect.Message
func (*AddCartItemReply) Reset ¶
func (x *AddCartItemReply) Reset()
func (*AddCartItemReply) String ¶
func (x *AddCartItemReply) String() string
type AddCartItemReq ¶
type AddCartItemReq struct {
// contains filtered or unexported fields
}
func (*AddCartItemReq) Descriptor
deprecated
func (*AddCartItemReq) Descriptor() ([]byte, []int)
Deprecated: Use AddCartItemReq.ProtoReflect.Descriptor instead.
func (*AddCartItemReq) ProtoMessage ¶
func (*AddCartItemReq) ProtoMessage()
func (*AddCartItemReq) ProtoReflect ¶
func (x *AddCartItemReq) ProtoReflect() protoreflect.Message
func (*AddCartItemReq) Reset ¶
func (x *AddCartItemReq) Reset()
func (*AddCartItemReq) String ¶
func (x *AddCartItemReq) String() string
type CreateAddressReply ¶
type CreateAddressReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"` City string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"` Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` PostCode string `protobuf:"bytes,7,opt,name=post_code,json=postCode,proto3" json:"post_code,omitempty"` // contains filtered or unexported fields }
func (*CreateAddressReply) Descriptor
deprecated
func (*CreateAddressReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateAddressReply.ProtoReflect.Descriptor instead.
func (*CreateAddressReply) GetAddress ¶
func (x *CreateAddressReply) GetAddress() string
func (*CreateAddressReply) GetCity ¶
func (x *CreateAddressReply) GetCity() string
func (*CreateAddressReply) GetCountry ¶
func (x *CreateAddressReply) GetCountry() string
func (*CreateAddressReply) GetId ¶
func (x *CreateAddressReply) GetId() int64
func (*CreateAddressReply) GetMobile ¶
func (x *CreateAddressReply) GetMobile() string
func (*CreateAddressReply) GetName ¶
func (x *CreateAddressReply) GetName() string
func (*CreateAddressReply) GetPostCode ¶
func (x *CreateAddressReply) GetPostCode() string
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 CreateAddressReq ¶
type CreateAddressReq struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"` City string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"` Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` PostCode string `protobuf:"bytes,7,opt,name=post_code,json=postCode,proto3" json:"post_code,omitempty"` // contains filtered or unexported fields }
func (*CreateAddressReq) Descriptor
deprecated
func (*CreateAddressReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateAddressReq.ProtoReflect.Descriptor instead.
func (*CreateAddressReq) GetAddress ¶
func (x *CreateAddressReq) GetAddress() string
func (*CreateAddressReq) GetCity ¶
func (x *CreateAddressReq) GetCity() string
func (*CreateAddressReq) GetCountry ¶
func (x *CreateAddressReq) GetCountry() string
func (*CreateAddressReq) GetMobile ¶
func (x *CreateAddressReq) GetMobile() string
func (*CreateAddressReq) GetName ¶
func (x *CreateAddressReq) GetName() string
func (*CreateAddressReq) GetPostCode ¶
func (x *CreateAddressReq) GetPostCode() string
func (*CreateAddressReq) GetUid ¶
func (x *CreateAddressReq) GetUid() int64
func (*CreateAddressReq) ProtoMessage ¶
func (*CreateAddressReq) ProtoMessage()
func (*CreateAddressReq) ProtoReflect ¶
func (x *CreateAddressReq) ProtoReflect() protoreflect.Message
func (*CreateAddressReq) Reset ¶
func (x *CreateAddressReq) Reset()
func (*CreateAddressReq) String ¶
func (x *CreateAddressReq) String() string
type CreateCardReply ¶
type CreateCardReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateCardReply) Descriptor
deprecated
func (*CreateCardReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateCardReply.ProtoReflect.Descriptor instead.
func (*CreateCardReply) GetId ¶
func (x *CreateCardReply) GetId() int64
func (*CreateCardReply) ProtoMessage ¶
func (*CreateCardReply) ProtoMessage()
func (*CreateCardReply) ProtoReflect ¶
func (x *CreateCardReply) ProtoReflect() protoreflect.Message
func (*CreateCardReply) Reset ¶
func (x *CreateCardReply) Reset()
func (*CreateCardReply) String ¶
func (x *CreateCardReply) String() string
type CreateCardReq ¶
type CreateCardReq struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` CardNo string `protobuf:"bytes,2,opt,name=card_no,json=cardNo,proto3" json:"card_no,omitempty"` Ccv string `protobuf:"bytes,3,opt,name=ccv,proto3" json:"ccv,omitempty"` Expires string `protobuf:"bytes,4,opt,name=expires,proto3" json:"expires,omitempty"` // contains filtered or unexported fields }
func (*CreateCardReq) Descriptor
deprecated
func (*CreateCardReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateCardReq.ProtoReflect.Descriptor instead.
func (*CreateCardReq) GetCardNo ¶
func (x *CreateCardReq) GetCardNo() string
func (*CreateCardReq) GetCcv ¶
func (x *CreateCardReq) GetCcv() string
func (*CreateCardReq) GetExpires ¶
func (x *CreateCardReq) GetExpires() string
func (*CreateCardReq) GetUid ¶
func (x *CreateCardReq) GetUid() int64
func (*CreateCardReq) ProtoMessage ¶
func (*CreateCardReq) ProtoMessage()
func (*CreateCardReq) ProtoReflect ¶
func (x *CreateCardReq) ProtoReflect() protoreflect.Message
func (*CreateCardReq) Reset ¶
func (x *CreateCardReq) Reset()
func (*CreateCardReq) String ¶
func (x *CreateCardReq) String() string
type CreateOrderReply ¶
type CreateOrderReply struct {
// contains filtered or unexported fields
}
func (*CreateOrderReply) Descriptor
deprecated
func (*CreateOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderReply.ProtoReflect.Descriptor instead.
func (*CreateOrderReply) ProtoMessage ¶
func (*CreateOrderReply) ProtoMessage()
func (*CreateOrderReply) ProtoReflect ¶
func (x *CreateOrderReply) ProtoReflect() protoreflect.Message
func (*CreateOrderReply) Reset ¶
func (x *CreateOrderReply) Reset()
func (*CreateOrderReply) String ¶
func (x *CreateOrderReply) String() string
type CreateOrderReq ¶
type CreateOrderReq struct {
// contains filtered or unexported fields
}
func (*CreateOrderReq) Descriptor
deprecated
func (*CreateOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderReq.ProtoReflect.Descriptor instead.
func (*CreateOrderReq) ProtoMessage ¶
func (*CreateOrderReq) ProtoMessage()
func (*CreateOrderReq) ProtoReflect ¶
func (x *CreateOrderReq) ProtoReflect() protoreflect.Message
func (*CreateOrderReq) Reset ¶
func (x *CreateOrderReq) Reset()
func (*CreateOrderReq) String ¶
func (x *CreateOrderReq) String() string
type CreateUserReply ¶
type CreateUserReply 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"` // contains filtered or unexported fields }
func (*CreateUserReply) Descriptor
deprecated
func (*CreateUserReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserReply.ProtoReflect.Descriptor instead.
func (*CreateUserReply) GetId ¶
func (x *CreateUserReply) GetId() int64
func (*CreateUserReply) GetUsername ¶
func (x *CreateUserReply) GetUsername() string
func (*CreateUserReply) ProtoMessage ¶
func (*CreateUserReply) ProtoMessage()
func (*CreateUserReply) ProtoReflect ¶
func (x *CreateUserReply) ProtoReflect() protoreflect.Message
func (*CreateUserReply) Reset ¶
func (x *CreateUserReply) Reset()
func (*CreateUserReply) String ¶
func (x *CreateUserReply) String() string
type CreateUserReq ¶
type CreateUserReq 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 (*CreateUserReq) Descriptor
deprecated
func (*CreateUserReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserReq.ProtoReflect.Descriptor instead.
func (*CreateUserReq) GetPassword ¶
func (x *CreateUserReq) GetPassword() string
func (*CreateUserReq) GetUsername ¶
func (x *CreateUserReq) GetUsername() 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
type DeleteCardReply ¶
type DeleteCardReply struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*DeleteCardReply) Descriptor
deprecated
func (*DeleteCardReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCardReply.ProtoReflect.Descriptor instead.
func (*DeleteCardReply) GetOk ¶
func (x *DeleteCardReply) GetOk() bool
func (*DeleteCardReply) ProtoMessage ¶
func (*DeleteCardReply) ProtoMessage()
func (*DeleteCardReply) ProtoReflect ¶
func (x *DeleteCardReply) ProtoReflect() protoreflect.Message
func (*DeleteCardReply) Reset ¶
func (x *DeleteCardReply) Reset()
func (*DeleteCardReply) String ¶
func (x *DeleteCardReply) String() string
type DeleteCardReq ¶
type DeleteCardReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteCardReq) Descriptor
deprecated
func (*DeleteCardReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCardReq.ProtoReflect.Descriptor instead.
func (*DeleteCardReq) GetId ¶
func (x *DeleteCardReq) GetId() int64
func (*DeleteCardReq) ProtoMessage ¶
func (*DeleteCardReq) ProtoMessage()
func (*DeleteCardReq) ProtoReflect ¶
func (x *DeleteCardReq) ProtoReflect() protoreflect.Message
func (*DeleteCardReq) Reset ¶
func (x *DeleteCardReq) Reset()
func (*DeleteCardReq) String ¶
func (x *DeleteCardReq) String() string
type GetAddressReply ¶
type GetAddressReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"` City string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"` Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` PostCode string `protobuf:"bytes,7,opt,name=post_code,json=postCode,proto3" json:"post_code,omitempty"` // contains filtered or unexported fields }
func (*GetAddressReply) Descriptor
deprecated
func (*GetAddressReply) Descriptor() ([]byte, []int)
Deprecated: Use GetAddressReply.ProtoReflect.Descriptor instead.
func (*GetAddressReply) GetAddress ¶
func (x *GetAddressReply) GetAddress() string
func (*GetAddressReply) GetCity ¶
func (x *GetAddressReply) GetCity() string
func (*GetAddressReply) GetCountry ¶
func (x *GetAddressReply) GetCountry() string
func (*GetAddressReply) GetId ¶
func (x *GetAddressReply) GetId() int64
func (*GetAddressReply) GetMobile ¶
func (x *GetAddressReply) GetMobile() string
func (*GetAddressReply) GetName ¶
func (x *GetAddressReply) GetName() string
func (*GetAddressReply) GetPostCode ¶
func (x *GetAddressReply) GetPostCode() string
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 GetAddressReq ¶
type GetAddressReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetAddressReq) Descriptor
deprecated
func (*GetAddressReq) Descriptor() ([]byte, []int)
Deprecated: Use GetAddressReq.ProtoReflect.Descriptor instead.
func (*GetAddressReq) GetId ¶
func (x *GetAddressReq) GetId() int64
func (*GetAddressReq) ProtoMessage ¶
func (*GetAddressReq) ProtoMessage()
func (*GetAddressReq) ProtoReflect ¶
func (x *GetAddressReq) ProtoReflect() protoreflect.Message
func (*GetAddressReq) Reset ¶
func (x *GetAddressReq) Reset()
func (*GetAddressReq) String ¶
func (x *GetAddressReq) String() string
type GetBeerReply ¶
type GetBeerReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` Image []*GetBeerReply_Image `protobuf:"bytes,5,rep,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*GetBeerReply) Descriptor
deprecated
func (*GetBeerReply) Descriptor() ([]byte, []int)
Deprecated: Use GetBeerReply.ProtoReflect.Descriptor instead.
func (*GetBeerReply) GetCount ¶
func (x *GetBeerReply) GetCount() int64
func (*GetBeerReply) GetDescription ¶
func (x *GetBeerReply) GetDescription() string
func (*GetBeerReply) GetId ¶
func (x *GetBeerReply) GetId() int64
func (*GetBeerReply) GetImage ¶
func (x *GetBeerReply) GetImage() []*GetBeerReply_Image
func (*GetBeerReply) GetName ¶
func (x *GetBeerReply) GetName() string
func (*GetBeerReply) ProtoMessage ¶
func (*GetBeerReply) ProtoMessage()
func (*GetBeerReply) ProtoReflect ¶
func (x *GetBeerReply) ProtoReflect() protoreflect.Message
func (*GetBeerReply) Reset ¶
func (x *GetBeerReply) Reset()
func (*GetBeerReply) String ¶
func (x *GetBeerReply) String() string
type GetBeerReply_Image ¶
type GetBeerReply_Image struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*GetBeerReply_Image) Descriptor
deprecated
func (*GetBeerReply_Image) Descriptor() ([]byte, []int)
Deprecated: Use GetBeerReply_Image.ProtoReflect.Descriptor instead.
func (*GetBeerReply_Image) GetUrl ¶
func (x *GetBeerReply_Image) GetUrl() string
func (*GetBeerReply_Image) ProtoMessage ¶
func (*GetBeerReply_Image) ProtoMessage()
func (*GetBeerReply_Image) ProtoReflect ¶
func (x *GetBeerReply_Image) ProtoReflect() protoreflect.Message
func (*GetBeerReply_Image) Reset ¶
func (x *GetBeerReply_Image) Reset()
func (*GetBeerReply_Image) String ¶
func (x *GetBeerReply_Image) String() string
type GetBeerReq ¶
type GetBeerReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetBeerReq) Descriptor
deprecated
func (*GetBeerReq) Descriptor() ([]byte, []int)
Deprecated: Use GetBeerReq.ProtoReflect.Descriptor instead.
func (*GetBeerReq) GetId ¶
func (x *GetBeerReq) GetId() int64
func (*GetBeerReq) ProtoMessage ¶
func (*GetBeerReq) ProtoMessage()
func (*GetBeerReq) ProtoReflect ¶
func (x *GetBeerReq) ProtoReflect() protoreflect.Message
func (*GetBeerReq) Reset ¶
func (x *GetBeerReq) Reset()
func (*GetBeerReq) String ¶
func (x *GetBeerReq) String() string
type GetCardReply ¶
type GetCardReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CardNo string `protobuf:"bytes,2,opt,name=card_no,json=cardNo,proto3" json:"card_no,omitempty"` Ccv string `protobuf:"bytes,3,opt,name=ccv,proto3" json:"ccv,omitempty"` Expires string `protobuf:"bytes,4,opt,name=expires,proto3" json:"expires,omitempty"` // contains filtered or unexported fields }
func (*GetCardReply) Descriptor
deprecated
func (*GetCardReply) Descriptor() ([]byte, []int)
Deprecated: Use GetCardReply.ProtoReflect.Descriptor instead.
func (*GetCardReply) GetCardNo ¶
func (x *GetCardReply) GetCardNo() string
func (*GetCardReply) GetCcv ¶
func (x *GetCardReply) GetCcv() string
func (*GetCardReply) GetExpires ¶
func (x *GetCardReply) GetExpires() string
func (*GetCardReply) GetId ¶
func (x *GetCardReply) GetId() int64
func (*GetCardReply) ProtoMessage ¶
func (*GetCardReply) ProtoMessage()
func (*GetCardReply) ProtoReflect ¶
func (x *GetCardReply) ProtoReflect() protoreflect.Message
func (*GetCardReply) Reset ¶
func (x *GetCardReply) Reset()
func (*GetCardReply) String ¶
func (x *GetCardReply) String() string
type GetCardReq ¶
type GetCardReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetCardReq) Descriptor
deprecated
func (*GetCardReq) Descriptor() ([]byte, []int)
Deprecated: Use GetCardReq.ProtoReflect.Descriptor instead.
func (*GetCardReq) GetId ¶
func (x *GetCardReq) GetId() int64
func (*GetCardReq) ProtoMessage ¶
func (*GetCardReq) ProtoMessage()
func (*GetCardReq) ProtoReflect ¶
func (x *GetCardReq) ProtoReflect() protoreflect.Message
func (*GetCardReq) Reset ¶
func (x *GetCardReq) Reset()
func (*GetCardReq) String ¶
func (x *GetCardReq) String() string
type GetUserReply ¶
type GetUserReply 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"` // contains filtered or unexported fields }
func (*GetUserReply) Descriptor
deprecated
func (*GetUserReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUserReply.ProtoReflect.Descriptor instead.
func (*GetUserReply) GetId ¶
func (x *GetUserReply) GetId() int64
func (*GetUserReply) GetUsername ¶
func (x *GetUserReply) GetUsername() string
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 GetUserReq ¶
type GetUserReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserReq) Descriptor
deprecated
func (*GetUserReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserReq.ProtoReflect.Descriptor instead.
func (*GetUserReq) GetId ¶
func (x *GetUserReq) GetId() int64
func (*GetUserReq) ProtoMessage ¶
func (*GetUserReq) ProtoMessage()
func (*GetUserReq) ProtoReflect ¶
func (x *GetUserReq) ProtoReflect() protoreflect.Message
func (*GetUserReq) Reset ¶
func (x *GetUserReq) Reset()
func (*GetUserReq) String ¶
func (x *GetUserReq) String() string
type ListAddressReply ¶
type ListAddressReply struct { Results []*ListAddressReply_Address `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListAddressReply) Descriptor
deprecated
func (*ListAddressReply) Descriptor() ([]byte, []int)
Deprecated: Use ListAddressReply.ProtoReflect.Descriptor instead.
func (*ListAddressReply) GetResults ¶
func (x *ListAddressReply) GetResults() []*ListAddressReply_Address
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 ListAddressReply_Address ¶
type ListAddressReply_Address struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"` City string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"` Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` PostCode string `protobuf:"bytes,7,opt,name=post_code,json=postCode,proto3" json:"post_code,omitempty"` // contains filtered or unexported fields }
func (*ListAddressReply_Address) Descriptor
deprecated
func (*ListAddressReply_Address) Descriptor() ([]byte, []int)
Deprecated: Use ListAddressReply_Address.ProtoReflect.Descriptor instead.
func (*ListAddressReply_Address) GetAddress ¶
func (x *ListAddressReply_Address) GetAddress() string
func (*ListAddressReply_Address) GetCity ¶
func (x *ListAddressReply_Address) GetCity() string
func (*ListAddressReply_Address) GetCountry ¶
func (x *ListAddressReply_Address) GetCountry() string
func (*ListAddressReply_Address) GetId ¶
func (x *ListAddressReply_Address) GetId() int64
func (*ListAddressReply_Address) GetMobile ¶
func (x *ListAddressReply_Address) GetMobile() string
func (*ListAddressReply_Address) GetName ¶
func (x *ListAddressReply_Address) GetName() string
func (*ListAddressReply_Address) GetPostCode ¶
func (x *ListAddressReply_Address) GetPostCode() string
func (*ListAddressReply_Address) ProtoMessage ¶
func (*ListAddressReply_Address) ProtoMessage()
func (*ListAddressReply_Address) ProtoReflect ¶
func (x *ListAddressReply_Address) ProtoReflect() protoreflect.Message
func (*ListAddressReply_Address) Reset ¶
func (x *ListAddressReply_Address) Reset()
func (*ListAddressReply_Address) String ¶
func (x *ListAddressReply_Address) String() string
type ListAddressReq ¶
type ListAddressReq struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*ListAddressReq) Descriptor
deprecated
func (*ListAddressReq) Descriptor() ([]byte, []int)
Deprecated: Use ListAddressReq.ProtoReflect.Descriptor instead.
func (*ListAddressReq) GetUid ¶
func (x *ListAddressReq) GetUid() int64
func (*ListAddressReq) ProtoMessage ¶
func (*ListAddressReq) ProtoMessage()
func (*ListAddressReq) ProtoReflect ¶
func (x *ListAddressReq) ProtoReflect() protoreflect.Message
func (*ListAddressReq) Reset ¶
func (x *ListAddressReq) Reset()
func (*ListAddressReq) String ¶
func (x *ListAddressReq) String() string
type ListBeerReply ¶
type ListBeerReply struct { Results []*ListBeerReply_Beer `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListBeerReply) Descriptor
deprecated
func (*ListBeerReply) Descriptor() ([]byte, []int)
Deprecated: Use ListBeerReply.ProtoReflect.Descriptor instead.
func (*ListBeerReply) GetResults ¶
func (x *ListBeerReply) GetResults() []*ListBeerReply_Beer
func (*ListBeerReply) ProtoMessage ¶
func (*ListBeerReply) ProtoMessage()
func (*ListBeerReply) ProtoReflect ¶
func (x *ListBeerReply) ProtoReflect() protoreflect.Message
func (*ListBeerReply) Reset ¶
func (x *ListBeerReply) Reset()
func (*ListBeerReply) String ¶
func (x *ListBeerReply) String() string
type ListBeerReply_Beer ¶
type ListBeerReply_Beer struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` Image []*ListBeerReply_Beer_Image `protobuf:"bytes,5,rep,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*ListBeerReply_Beer) Descriptor
deprecated
func (*ListBeerReply_Beer) Descriptor() ([]byte, []int)
Deprecated: Use ListBeerReply_Beer.ProtoReflect.Descriptor instead.
func (*ListBeerReply_Beer) GetCount ¶
func (x *ListBeerReply_Beer) GetCount() int64
func (*ListBeerReply_Beer) GetDescription ¶
func (x *ListBeerReply_Beer) GetDescription() string
func (*ListBeerReply_Beer) GetId ¶
func (x *ListBeerReply_Beer) GetId() int64
func (*ListBeerReply_Beer) GetImage ¶
func (x *ListBeerReply_Beer) GetImage() []*ListBeerReply_Beer_Image
func (*ListBeerReply_Beer) GetName ¶
func (x *ListBeerReply_Beer) GetName() string
func (*ListBeerReply_Beer) ProtoMessage ¶
func (*ListBeerReply_Beer) ProtoMessage()
func (*ListBeerReply_Beer) ProtoReflect ¶
func (x *ListBeerReply_Beer) ProtoReflect() protoreflect.Message
func (*ListBeerReply_Beer) Reset ¶
func (x *ListBeerReply_Beer) Reset()
func (*ListBeerReply_Beer) String ¶
func (x *ListBeerReply_Beer) String() string
type ListBeerReply_Beer_Image ¶
type ListBeerReply_Beer_Image struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*ListBeerReply_Beer_Image) Descriptor
deprecated
func (*ListBeerReply_Beer_Image) Descriptor() ([]byte, []int)
Deprecated: Use ListBeerReply_Beer_Image.ProtoReflect.Descriptor instead.
func (*ListBeerReply_Beer_Image) GetUrl ¶
func (x *ListBeerReply_Beer_Image) GetUrl() string
func (*ListBeerReply_Beer_Image) ProtoMessage ¶
func (*ListBeerReply_Beer_Image) ProtoMessage()
func (*ListBeerReply_Beer_Image) ProtoReflect ¶
func (x *ListBeerReply_Beer_Image) ProtoReflect() protoreflect.Message
func (*ListBeerReply_Beer_Image) Reset ¶
func (x *ListBeerReply_Beer_Image) Reset()
func (*ListBeerReply_Beer_Image) String ¶
func (x *ListBeerReply_Beer_Image) String() string
type ListBeerReq ¶
type ListBeerReq struct { PageNum int64 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListBeerReq) Descriptor
deprecated
func (*ListBeerReq) Descriptor() ([]byte, []int)
Deprecated: Use ListBeerReq.ProtoReflect.Descriptor instead.
func (*ListBeerReq) GetPageNum ¶
func (x *ListBeerReq) GetPageNum() int64
func (*ListBeerReq) GetPageSize ¶
func (x *ListBeerReq) GetPageSize() int64
func (*ListBeerReq) ProtoMessage ¶
func (*ListBeerReq) ProtoMessage()
func (*ListBeerReq) ProtoReflect ¶
func (x *ListBeerReq) ProtoReflect() protoreflect.Message
func (*ListBeerReq) Reset ¶
func (x *ListBeerReq) Reset()
func (*ListBeerReq) String ¶
func (x *ListBeerReq) String() string
type ListCardReply ¶
type ListCardReply struct { Results []*ListCardReply_Card `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListCardReply) Descriptor
deprecated
func (*ListCardReply) Descriptor() ([]byte, []int)
Deprecated: Use ListCardReply.ProtoReflect.Descriptor instead.
func (*ListCardReply) GetResults ¶
func (x *ListCardReply) GetResults() []*ListCardReply_Card
func (*ListCardReply) ProtoMessage ¶
func (*ListCardReply) ProtoMessage()
func (*ListCardReply) ProtoReflect ¶
func (x *ListCardReply) ProtoReflect() protoreflect.Message
func (*ListCardReply) Reset ¶
func (x *ListCardReply) Reset()
func (*ListCardReply) String ¶
func (x *ListCardReply) String() string
type ListCardReply_Card ¶
type ListCardReply_Card struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CardNo string `protobuf:"bytes,2,opt,name=card_no,json=cardNo,proto3" json:"card_no,omitempty"` Ccv string `protobuf:"bytes,3,opt,name=ccv,proto3" json:"ccv,omitempty"` Expires string `protobuf:"bytes,4,opt,name=expires,proto3" json:"expires,omitempty"` // contains filtered or unexported fields }
func (*ListCardReply_Card) Descriptor
deprecated
func (*ListCardReply_Card) Descriptor() ([]byte, []int)
Deprecated: Use ListCardReply_Card.ProtoReflect.Descriptor instead.
func (*ListCardReply_Card) GetCardNo ¶
func (x *ListCardReply_Card) GetCardNo() string
func (*ListCardReply_Card) GetCcv ¶
func (x *ListCardReply_Card) GetCcv() string
func (*ListCardReply_Card) GetExpires ¶
func (x *ListCardReply_Card) GetExpires() string
func (*ListCardReply_Card) GetId ¶
func (x *ListCardReply_Card) GetId() int64
func (*ListCardReply_Card) ProtoMessage ¶
func (*ListCardReply_Card) ProtoMessage()
func (*ListCardReply_Card) ProtoReflect ¶
func (x *ListCardReply_Card) ProtoReflect() protoreflect.Message
func (*ListCardReply_Card) Reset ¶
func (x *ListCardReply_Card) Reset()
func (*ListCardReply_Card) String ¶
func (x *ListCardReply_Card) String() string
type ListCardReq ¶
type ListCardReq struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*ListCardReq) Descriptor
deprecated
func (*ListCardReq) Descriptor() ([]byte, []int)
Deprecated: Use ListCardReq.ProtoReflect.Descriptor instead.
func (*ListCardReq) GetUid ¶
func (x *ListCardReq) GetUid() int64
func (*ListCardReq) ProtoMessage ¶
func (*ListCardReq) ProtoMessage()
func (*ListCardReq) ProtoReflect ¶
func (x *ListCardReq) ProtoReflect() protoreflect.Message
func (*ListCardReq) Reset ¶
func (x *ListCardReq) Reset()
func (*ListCardReq) String ¶
func (x *ListCardReq) String() string
type ListCartItemReply ¶
type ListCartItemReply struct {
// contains filtered or unexported fields
}
func (*ListCartItemReply) Descriptor
deprecated
func (*ListCartItemReply) Descriptor() ([]byte, []int)
Deprecated: Use ListCartItemReply.ProtoReflect.Descriptor instead.
func (*ListCartItemReply) ProtoMessage ¶
func (*ListCartItemReply) ProtoMessage()
func (*ListCartItemReply) ProtoReflect ¶
func (x *ListCartItemReply) ProtoReflect() protoreflect.Message
func (*ListCartItemReply) Reset ¶
func (x *ListCartItemReply) Reset()
func (*ListCartItemReply) String ¶
func (x *ListCartItemReply) String() string
type ListCartItemReq ¶
type ListCartItemReq struct { PageNum int64 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListCartItemReq) Descriptor
deprecated
func (*ListCartItemReq) Descriptor() ([]byte, []int)
Deprecated: Use ListCartItemReq.ProtoReflect.Descriptor instead.
func (*ListCartItemReq) GetPageNum ¶
func (x *ListCartItemReq) GetPageNum() int64
func (*ListCartItemReq) GetPageSize ¶
func (x *ListCartItemReq) GetPageSize() int64
func (*ListCartItemReq) ProtoMessage ¶
func (*ListCartItemReq) ProtoMessage()
func (*ListCartItemReq) ProtoReflect ¶
func (x *ListCartItemReq) ProtoReflect() protoreflect.Message
func (*ListCartItemReq) Reset ¶
func (x *ListCartItemReq) Reset()
func (*ListCartItemReq) String ¶
func (x *ListCartItemReq) String() string
type ListOrderReply ¶
type ListOrderReply struct {
// contains filtered or unexported fields
}
func (*ListOrderReply) Descriptor
deprecated
func (*ListOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use ListOrderReply.ProtoReflect.Descriptor instead.
func (*ListOrderReply) ProtoMessage ¶
func (*ListOrderReply) ProtoMessage()
func (*ListOrderReply) ProtoReflect ¶
func (x *ListOrderReply) ProtoReflect() protoreflect.Message
func (*ListOrderReply) Reset ¶
func (x *ListOrderReply) Reset()
func (*ListOrderReply) String ¶
func (x *ListOrderReply) String() string
type ListOrderReq ¶
type ListOrderReq struct { PageNum int64 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListOrderReq) Descriptor
deprecated
func (*ListOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use ListOrderReq.ProtoReflect.Descriptor instead.
func (*ListOrderReq) GetPageNum ¶
func (x *ListOrderReq) GetPageNum() int64
func (*ListOrderReq) GetPageSize ¶
func (x *ListOrderReq) GetPageSize() int64
func (*ListOrderReq) ProtoMessage ¶
func (*ListOrderReq) ProtoMessage()
func (*ListOrderReq) ProtoReflect ¶
func (x *ListOrderReq) ProtoReflect() protoreflect.Message
func (*ListOrderReq) Reset ¶
func (x *ListOrderReq) Reset()
func (*ListOrderReq) String ¶
func (x *ListOrderReq) String() string
type LoginReply ¶
type LoginReply struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*LoginReply) Descriptor
deprecated
func (*LoginReply) Descriptor() ([]byte, []int)
Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
func (*LoginReply) GetToken ¶
func (x *LoginReply) GetToken() string
func (*LoginReply) ProtoMessage ¶
func (*LoginReply) ProtoMessage()
func (*LoginReply) ProtoReflect ¶
func (x *LoginReply) ProtoReflect() protoreflect.Message
func (*LoginReply) Reset ¶
func (x *LoginReply) Reset()
func (*LoginReply) String ¶
func (x *LoginReply) String() string
type LoginReq ¶
type LoginReq 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 (*LoginReq) Descriptor
deprecated
func (*LoginReq) GetPassword ¶
func (*LoginReq) GetUsername ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
type LogoutReply ¶
type LogoutReply struct {
// contains filtered or unexported fields
}
func (*LogoutReply) Descriptor
deprecated
func (*LogoutReply) Descriptor() ([]byte, []int)
Deprecated: Use LogoutReply.ProtoReflect.Descriptor instead.
func (*LogoutReply) ProtoMessage ¶
func (*LogoutReply) ProtoMessage()
func (*LogoutReply) ProtoReflect ¶
func (x *LogoutReply) ProtoReflect() protoreflect.Message
func (*LogoutReply) Reset ¶
func (x *LogoutReply) Reset()
func (*LogoutReply) String ¶
func (x *LogoutReply) String() string
type LogoutReq ¶
type LogoutReq struct {
// contains filtered or unexported fields
}
func (*LogoutReq) Descriptor
deprecated
func (*LogoutReq) ProtoMessage ¶
func (*LogoutReq) ProtoMessage()
func (*LogoutReq) ProtoReflect ¶
func (x *LogoutReq) ProtoReflect() protoreflect.Message
type RegisterReply ¶
type RegisterReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RegisterReply) Descriptor
deprecated
func (*RegisterReply) Descriptor() ([]byte, []int)
Deprecated: Use RegisterReply.ProtoReflect.Descriptor instead.
func (*RegisterReply) GetId ¶
func (x *RegisterReply) GetId() int64
func (*RegisterReply) ProtoMessage ¶
func (*RegisterReply) ProtoMessage()
func (*RegisterReply) ProtoReflect ¶
func (x *RegisterReply) ProtoReflect() protoreflect.Message
func (*RegisterReply) Reset ¶
func (x *RegisterReply) Reset()
func (*RegisterReply) String ¶
func (x *RegisterReply) String() string
type RegisterReq ¶
type RegisterReq 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 (*RegisterReq) Descriptor
deprecated
func (*RegisterReq) Descriptor() ([]byte, []int)
Deprecated: Use RegisterReq.ProtoReflect.Descriptor instead.
func (*RegisterReq) GetPassword ¶
func (x *RegisterReq) GetPassword() string
func (*RegisterReq) GetUsername ¶
func (x *RegisterReq) GetUsername() string
func (*RegisterReq) ProtoMessage ¶
func (*RegisterReq) ProtoMessage()
func (*RegisterReq) ProtoReflect ¶
func (x *RegisterReq) ProtoReflect() protoreflect.Message
func (*RegisterReq) Reset ¶
func (x *RegisterReq) Reset()
func (*RegisterReq) String ¶
func (x *RegisterReq) String() string
type ShopInterfaceClient ¶
type ShopInterfaceClient interface { Register(ctx context.Context, in *RegisterReq, opts ...grpc.CallOption) (*RegisterReply, error) Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginReply, error) Logout(ctx context.Context, in *LogoutReq, opts ...grpc.CallOption) (*LogoutReply, error) ListAddress(ctx context.Context, in *ListAddressReq, opts ...grpc.CallOption) (*ListAddressReply, error) CreateAddress(ctx context.Context, in *CreateAddressReq, opts ...grpc.CallOption) (*CreateAddressReply, error) GetAddress(ctx context.Context, in *GetAddressReq, opts ...grpc.CallOption) (*GetAddressReply, error) ListCard(ctx context.Context, in *ListCardReq, opts ...grpc.CallOption) (*ListCardReply, error) CreateCard(ctx context.Context, in *CreateCardReq, opts ...grpc.CallOption) (*CreateCardReply, error) GetCard(ctx context.Context, in *GetCardReq, opts ...grpc.CallOption) (*GetCardReply, error) DeleteCard(ctx context.Context, in *DeleteCardReq, opts ...grpc.CallOption) (*DeleteCardReply, error) ListBeer(ctx context.Context, in *ListBeerReq, opts ...grpc.CallOption) (*ListBeerReply, error) GetBeer(ctx context.Context, in *GetBeerReq, opts ...grpc.CallOption) (*GetBeerReply, error) ListCartItem(ctx context.Context, in *ListCartItemReq, opts ...grpc.CallOption) (*ListCartItemReply, error) AddCartItem(ctx context.Context, in *AddCartItemReq, opts ...grpc.CallOption) (*AddCartItemReply, error) CreateOrder(ctx context.Context, in *CreateOrderReq, opts ...grpc.CallOption) (*CreateOrderReply, error) ListOrder(ctx context.Context, in *ListOrderReq, opts ...grpc.CallOption) (*ListOrderReply, error) }
ShopInterfaceClient is the client API for ShopInterface 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 NewShopInterfaceClient ¶
func NewShopInterfaceClient(cc grpc.ClientConnInterface) ShopInterfaceClient
type ShopInterfaceErrorReason ¶
type ShopInterfaceErrorReason int32
const ( ShopInterfaceErrorReason_UNKNOWN_ERROR ShopInterfaceErrorReason = 0 ShopInterfaceErrorReason_LOGIN_FAILED ShopInterfaceErrorReason = 1 ShopInterfaceErrorReason_USERNAME_CONFLICT ShopInterfaceErrorReason = 2 ShopInterfaceErrorReason_REGISTER_FAILED ShopInterfaceErrorReason = 3 )
func (ShopInterfaceErrorReason) Descriptor ¶
func (ShopInterfaceErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ShopInterfaceErrorReason) Enum ¶
func (x ShopInterfaceErrorReason) Enum() *ShopInterfaceErrorReason
func (ShopInterfaceErrorReason) EnumDescriptor
deprecated
func (ShopInterfaceErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ShopInterfaceErrorReason.Descriptor instead.
func (ShopInterfaceErrorReason) Number ¶
func (x ShopInterfaceErrorReason) Number() protoreflect.EnumNumber
func (ShopInterfaceErrorReason) String ¶
func (x ShopInterfaceErrorReason) String() string
func (ShopInterfaceErrorReason) Type ¶
func (ShopInterfaceErrorReason) Type() protoreflect.EnumType
type ShopInterfaceHTTPClient ¶
type ShopInterfaceHTTPClient interface { AddCartItem(ctx context.Context, req *AddCartItemReq, opts ...http.CallOption) (rsp *AddCartItemReply, err error) CreateAddress(ctx context.Context, req *CreateAddressReq, opts ...http.CallOption) (rsp *CreateAddressReply, err error) CreateCard(ctx context.Context, req *CreateCardReq, opts ...http.CallOption) (rsp *CreateCardReply, err error) CreateOrder(ctx context.Context, req *CreateOrderReq, opts ...http.CallOption) (rsp *CreateOrderReply, err error) DeleteCard(ctx context.Context, req *DeleteCardReq, opts ...http.CallOption) (rsp *DeleteCardReply, err error) GetAddress(ctx context.Context, req *GetAddressReq, opts ...http.CallOption) (rsp *GetAddressReply, err error) GetBeer(ctx context.Context, req *GetBeerReq, opts ...http.CallOption) (rsp *GetBeerReply, err error) GetCard(ctx context.Context, req *GetCardReq, opts ...http.CallOption) (rsp *GetCardReply, err error) ListAddress(ctx context.Context, req *ListAddressReq, opts ...http.CallOption) (rsp *ListAddressReply, err error) ListBeer(ctx context.Context, req *ListBeerReq, opts ...http.CallOption) (rsp *ListBeerReply, err error) ListCard(ctx context.Context, req *ListCardReq, opts ...http.CallOption) (rsp *ListCardReply, err error) ListCartItem(ctx context.Context, req *ListCartItemReq, opts ...http.CallOption) (rsp *ListCartItemReply, err error) ListOrder(ctx context.Context, req *ListOrderReq, opts ...http.CallOption) (rsp *ListOrderReply, err error) Login(ctx context.Context, req *LoginReq, opts ...http.CallOption) (rsp *LoginReply, err error) Logout(ctx context.Context, req *LogoutReq, opts ...http.CallOption) (rsp *LogoutReply, err error) Register(ctx context.Context, req *RegisterReq, opts ...http.CallOption) (rsp *RegisterReply, err error) }
func NewShopInterfaceHTTPClient ¶
func NewShopInterfaceHTTPClient(client *http.Client) ShopInterfaceHTTPClient
type ShopInterfaceHTTPClientImpl ¶
type ShopInterfaceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ShopInterfaceHTTPClientImpl) AddCartItem ¶
func (c *ShopInterfaceHTTPClientImpl) AddCartItem(ctx context.Context, in *AddCartItemReq, opts ...http.CallOption) (*AddCartItemReply, error)
func (*ShopInterfaceHTTPClientImpl) CreateAddress ¶
func (c *ShopInterfaceHTTPClientImpl) CreateAddress(ctx context.Context, in *CreateAddressReq, opts ...http.CallOption) (*CreateAddressReply, error)
func (*ShopInterfaceHTTPClientImpl) CreateCard ¶
func (c *ShopInterfaceHTTPClientImpl) CreateCard(ctx context.Context, in *CreateCardReq, opts ...http.CallOption) (*CreateCardReply, error)
func (*ShopInterfaceHTTPClientImpl) CreateOrder ¶
func (c *ShopInterfaceHTTPClientImpl) CreateOrder(ctx context.Context, in *CreateOrderReq, opts ...http.CallOption) (*CreateOrderReply, error)
func (*ShopInterfaceHTTPClientImpl) DeleteCard ¶
func (c *ShopInterfaceHTTPClientImpl) DeleteCard(ctx context.Context, in *DeleteCardReq, opts ...http.CallOption) (*DeleteCardReply, error)
func (*ShopInterfaceHTTPClientImpl) GetAddress ¶
func (c *ShopInterfaceHTTPClientImpl) GetAddress(ctx context.Context, in *GetAddressReq, opts ...http.CallOption) (*GetAddressReply, error)
func (*ShopInterfaceHTTPClientImpl) GetBeer ¶
func (c *ShopInterfaceHTTPClientImpl) GetBeer(ctx context.Context, in *GetBeerReq, opts ...http.CallOption) (*GetBeerReply, error)
func (*ShopInterfaceHTTPClientImpl) GetCard ¶
func (c *ShopInterfaceHTTPClientImpl) GetCard(ctx context.Context, in *GetCardReq, opts ...http.CallOption) (*GetCardReply, error)
func (*ShopInterfaceHTTPClientImpl) ListAddress ¶
func (c *ShopInterfaceHTTPClientImpl) ListAddress(ctx context.Context, in *ListAddressReq, opts ...http.CallOption) (*ListAddressReply, error)
func (*ShopInterfaceHTTPClientImpl) ListBeer ¶
func (c *ShopInterfaceHTTPClientImpl) ListBeer(ctx context.Context, in *ListBeerReq, opts ...http.CallOption) (*ListBeerReply, error)
func (*ShopInterfaceHTTPClientImpl) ListCard ¶
func (c *ShopInterfaceHTTPClientImpl) ListCard(ctx context.Context, in *ListCardReq, opts ...http.CallOption) (*ListCardReply, error)
func (*ShopInterfaceHTTPClientImpl) ListCartItem ¶
func (c *ShopInterfaceHTTPClientImpl) ListCartItem(ctx context.Context, in *ListCartItemReq, opts ...http.CallOption) (*ListCartItemReply, error)
func (*ShopInterfaceHTTPClientImpl) ListOrder ¶
func (c *ShopInterfaceHTTPClientImpl) ListOrder(ctx context.Context, in *ListOrderReq, opts ...http.CallOption) (*ListOrderReply, error)
func (*ShopInterfaceHTTPClientImpl) Login ¶
func (c *ShopInterfaceHTTPClientImpl) Login(ctx context.Context, in *LoginReq, opts ...http.CallOption) (*LoginReply, error)
func (*ShopInterfaceHTTPClientImpl) Logout ¶
func (c *ShopInterfaceHTTPClientImpl) Logout(ctx context.Context, in *LogoutReq, opts ...http.CallOption) (*LogoutReply, error)
func (*ShopInterfaceHTTPClientImpl) Register ¶
func (c *ShopInterfaceHTTPClientImpl) Register(ctx context.Context, in *RegisterReq, opts ...http.CallOption) (*RegisterReply, error)
type ShopInterfaceHTTPServer ¶
type ShopInterfaceHTTPServer interface { AddCartItem(context.Context, *AddCartItemReq) (*AddCartItemReply, error) CreateAddress(context.Context, *CreateAddressReq) (*CreateAddressReply, error) CreateCard(context.Context, *CreateCardReq) (*CreateCardReply, error) CreateOrder(context.Context, *CreateOrderReq) (*CreateOrderReply, error) DeleteCard(context.Context, *DeleteCardReq) (*DeleteCardReply, error) GetAddress(context.Context, *GetAddressReq) (*GetAddressReply, error) GetBeer(context.Context, *GetBeerReq) (*GetBeerReply, error) GetCard(context.Context, *GetCardReq) (*GetCardReply, error) ListAddress(context.Context, *ListAddressReq) (*ListAddressReply, error) ListBeer(context.Context, *ListBeerReq) (*ListBeerReply, error) ListCard(context.Context, *ListCardReq) (*ListCardReply, error) ListCartItem(context.Context, *ListCartItemReq) (*ListCartItemReply, error) ListOrder(context.Context, *ListOrderReq) (*ListOrderReply, error) Login(context.Context, *LoginReq) (*LoginReply, error) Logout(context.Context, *LogoutReq) (*LogoutReply, error) Register(context.Context, *RegisterReq) (*RegisterReply, error) }
type ShopInterfaceServer ¶
type ShopInterfaceServer interface { Register(context.Context, *RegisterReq) (*RegisterReply, error) Login(context.Context, *LoginReq) (*LoginReply, error) Logout(context.Context, *LogoutReq) (*LogoutReply, error) ListAddress(context.Context, *ListAddressReq) (*ListAddressReply, error) CreateAddress(context.Context, *CreateAddressReq) (*CreateAddressReply, error) GetAddress(context.Context, *GetAddressReq) (*GetAddressReply, error) ListCard(context.Context, *ListCardReq) (*ListCardReply, error) CreateCard(context.Context, *CreateCardReq) (*CreateCardReply, error) GetCard(context.Context, *GetCardReq) (*GetCardReply, error) DeleteCard(context.Context, *DeleteCardReq) (*DeleteCardReply, error) ListBeer(context.Context, *ListBeerReq) (*ListBeerReply, error) GetBeer(context.Context, *GetBeerReq) (*GetBeerReply, error) ListCartItem(context.Context, *ListCartItemReq) (*ListCartItemReply, error) AddCartItem(context.Context, *AddCartItemReq) (*AddCartItemReply, error) CreateOrder(context.Context, *CreateOrderReq) (*CreateOrderReply, error) ListOrder(context.Context, *ListOrderReq) (*ListOrderReply, error) // contains filtered or unexported methods }
ShopInterfaceServer is the server API for ShopInterface service. All implementations must embed UnimplementedShopInterfaceServer for forward compatibility
type UnimplementedShopInterfaceServer ¶
type UnimplementedShopInterfaceServer struct { }
UnimplementedShopInterfaceServer must be embedded to have forward compatible implementations.
func (UnimplementedShopInterfaceServer) AddCartItem ¶
func (UnimplementedShopInterfaceServer) AddCartItem(context.Context, *AddCartItemReq) (*AddCartItemReply, error)
func (UnimplementedShopInterfaceServer) CreateAddress ¶
func (UnimplementedShopInterfaceServer) CreateAddress(context.Context, *CreateAddressReq) (*CreateAddressReply, error)
func (UnimplementedShopInterfaceServer) CreateCard ¶
func (UnimplementedShopInterfaceServer) CreateCard(context.Context, *CreateCardReq) (*CreateCardReply, error)
func (UnimplementedShopInterfaceServer) CreateOrder ¶
func (UnimplementedShopInterfaceServer) CreateOrder(context.Context, *CreateOrderReq) (*CreateOrderReply, error)
func (UnimplementedShopInterfaceServer) DeleteCard ¶
func (UnimplementedShopInterfaceServer) DeleteCard(context.Context, *DeleteCardReq) (*DeleteCardReply, error)
func (UnimplementedShopInterfaceServer) GetAddress ¶
func (UnimplementedShopInterfaceServer) GetAddress(context.Context, *GetAddressReq) (*GetAddressReply, error)
func (UnimplementedShopInterfaceServer) GetBeer ¶
func (UnimplementedShopInterfaceServer) GetBeer(context.Context, *GetBeerReq) (*GetBeerReply, error)
func (UnimplementedShopInterfaceServer) GetCard ¶
func (UnimplementedShopInterfaceServer) GetCard(context.Context, *GetCardReq) (*GetCardReply, error)
func (UnimplementedShopInterfaceServer) ListAddress ¶
func (UnimplementedShopInterfaceServer) ListAddress(context.Context, *ListAddressReq) (*ListAddressReply, error)
func (UnimplementedShopInterfaceServer) ListBeer ¶
func (UnimplementedShopInterfaceServer) ListBeer(context.Context, *ListBeerReq) (*ListBeerReply, error)
func (UnimplementedShopInterfaceServer) ListCard ¶
func (UnimplementedShopInterfaceServer) ListCard(context.Context, *ListCardReq) (*ListCardReply, error)
func (UnimplementedShopInterfaceServer) ListCartItem ¶
func (UnimplementedShopInterfaceServer) ListCartItem(context.Context, *ListCartItemReq) (*ListCartItemReply, error)
func (UnimplementedShopInterfaceServer) ListOrder ¶
func (UnimplementedShopInterfaceServer) ListOrder(context.Context, *ListOrderReq) (*ListOrderReply, error)
func (UnimplementedShopInterfaceServer) Login ¶
func (UnimplementedShopInterfaceServer) Login(context.Context, *LoginReq) (*LoginReply, error)
func (UnimplementedShopInterfaceServer) Logout ¶
func (UnimplementedShopInterfaceServer) Logout(context.Context, *LogoutReq) (*LogoutReply, error)
func (UnimplementedShopInterfaceServer) Register ¶
func (UnimplementedShopInterfaceServer) Register(context.Context, *RegisterReq) (*RegisterReply, error)
type UnsafeShopInterfaceServer ¶
type UnsafeShopInterfaceServer interface {
// contains filtered or unexported methods
}
UnsafeShopInterfaceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ShopInterfaceServer will result in compilation errors.
type VerifyPasswordReply ¶
type VerifyPasswordReply struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*VerifyPasswordReply) Descriptor
deprecated
func (*VerifyPasswordReply) Descriptor() ([]byte, []int)
Deprecated: Use VerifyPasswordReply.ProtoReflect.Descriptor instead.
func (*VerifyPasswordReply) GetId ¶
func (x *VerifyPasswordReply) GetId() int64
func (*VerifyPasswordReply) GetOk ¶
func (x *VerifyPasswordReply) GetOk() bool
func (*VerifyPasswordReply) ProtoMessage ¶
func (*VerifyPasswordReply) ProtoMessage()
func (*VerifyPasswordReply) ProtoReflect ¶
func (x *VerifyPasswordReply) ProtoReflect() protoreflect.Message
func (*VerifyPasswordReply) Reset ¶
func (x *VerifyPasswordReply) Reset()
func (*VerifyPasswordReply) String ¶
func (x *VerifyPasswordReply) String() string
type VerifyPasswordReq ¶
type VerifyPasswordReq 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 (*VerifyPasswordReq) Descriptor
deprecated
func (*VerifyPasswordReq) Descriptor() ([]byte, []int)
Deprecated: Use VerifyPasswordReq.ProtoReflect.Descriptor instead.
func (*VerifyPasswordReq) GetPassword ¶
func (x *VerifyPasswordReq) GetPassword() string
func (*VerifyPasswordReq) GetUsername ¶
func (x *VerifyPasswordReq) GetUsername() string
func (*VerifyPasswordReq) ProtoMessage ¶
func (*VerifyPasswordReq) ProtoMessage()
func (*VerifyPasswordReq) ProtoReflect ¶
func (x *VerifyPasswordReq) ProtoReflect() protoreflect.Message
func (*VerifyPasswordReq) Reset ¶
func (x *VerifyPasswordReq) Reset()
func (*VerifyPasswordReq) String ¶
func (x *VerifyPasswordReq) String() string