Documentation
¶
Index ¶
- Variables
- func ErrorUnknownError(format string, args ...interface{}) *errors.Error
- func IsUnknownError(err error) bool
- func RegisterShopAdminHTTPServer(s *http.Server, srv ShopAdminHTTPServer)
- func RegisterShopAdminServer(s grpc.ServiceRegistrar, srv ShopAdminServer)
- 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 CreateBookReply
- type CreateBookReq
- func (*CreateBookReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBookReq) GetCount() int64
- func (x *CreateBookReq) GetDescription() string
- func (x *CreateBookReq) GetImage() []*CreateBookReq_Image
- func (x *CreateBookReq) GetName() string
- func (*CreateBookReq) ProtoMessage()
- func (x *CreateBookReq) ProtoReflect() protoreflect.Message
- func (x *CreateBookReq) Reset()
- func (x *CreateBookReq) String() string
- type CreateBookReq_Image
- func (*CreateBookReq_Image) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBookReq_Image) GetUrl() string
- func (*CreateBookReq_Image) ProtoMessage()
- func (x *CreateBookReq_Image) ProtoReflect() protoreflect.Message
- func (x *CreateBookReq_Image) Reset()
- func (x *CreateBookReq_Image) 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 DeleteBookReply
- type DeleteBookReq
- 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 GetBookReply
- func (*GetBookReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookReply) GetCount() int64
- func (x *GetBookReply) GetDescription() string
- func (x *GetBookReply) GetId() int64
- func (x *GetBookReply) GetImage() []*GetBookReply_Image
- func (x *GetBookReply) GetName() string
- func (*GetBookReply) ProtoMessage()
- func (x *GetBookReply) ProtoReflect() protoreflect.Message
- func (x *GetBookReply) Reset()
- func (x *GetBookReply) String() string
- type GetBookReply_Image
- type GetBookReq
- 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 GetOrderReply
- type GetOrderReq
- 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 ListBookReply
- type ListBookReply_Book
- func (*ListBookReply_Book) Descriptor() ([]byte, []int)deprecated
- func (x *ListBookReply_Book) GetCount() int64
- func (x *ListBookReply_Book) GetDescription() string
- func (x *ListBookReply_Book) GetId() int64
- func (x *ListBookReply_Book) GetImage() []*ListBookReply_Book_Image
- func (x *ListBookReply_Book) GetName() string
- func (*ListBookReply_Book) ProtoMessage()
- func (x *ListBookReply_Book) ProtoReflect() protoreflect.Message
- func (x *ListBookReply_Book) Reset()
- func (x *ListBookReply_Book) String() string
- type ListBookReply_Book_Image
- func (*ListBookReply_Book_Image) Descriptor() ([]byte, []int)deprecated
- func (x *ListBookReply_Book_Image) GetUrl() string
- func (*ListBookReply_Book_Image) ProtoMessage()
- func (x *ListBookReply_Book_Image) ProtoReflect() protoreflect.Message
- func (x *ListBookReply_Book_Image) Reset()
- func (x *ListBookReply_Book_Image) String() string
- type ListBookReq
- func (*ListBookReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListBookReq) GetPageNum() int64
- func (x *ListBookReq) GetPageSize() int64
- func (*ListBookReq) ProtoMessage()
- func (x *ListBookReq) ProtoReflect() protoreflect.Message
- func (x *ListBookReq) Reset()
- func (x *ListBookReq) 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 ListUserReply
- type ListUserReq
- 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 ShopAdminClient
- type ShopAdminErrorReason
- func (ShopAdminErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ShopAdminErrorReason) Enum() *ShopAdminErrorReason
- func (ShopAdminErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ShopAdminErrorReason) Number() protoreflect.EnumNumber
- func (x ShopAdminErrorReason) String() string
- func (ShopAdminErrorReason) Type() protoreflect.EnumType
- type ShopAdminHTTPClient
- type ShopAdminHTTPClientImpl
- func (c *ShopAdminHTTPClientImpl) CreateBook(ctx context.Context, in *CreateBookReq, opts ...http.CallOption) (*CreateBookReply, error)
- func (c *ShopAdminHTTPClientImpl) DeleteBook(ctx context.Context, in *DeleteBookReq, opts ...http.CallOption) (*DeleteBookReply, error)
- func (c *ShopAdminHTTPClientImpl) GetOrder(ctx context.Context, in *GetOrderReq, opts ...http.CallOption) (*GetOrderReply, error)
- func (c *ShopAdminHTTPClientImpl) GetUser(ctx context.Context, in *GetUserReq, opts ...http.CallOption) (*GetUserReply, error)
- func (c *ShopAdminHTTPClientImpl) ListBook(ctx context.Context, in *ListBookReq, opts ...http.CallOption) (*ListBookReply, error)
- func (c *ShopAdminHTTPClientImpl) ListOrder(ctx context.Context, in *ListOrderReq, opts ...http.CallOption) (*ListOrderReply, error)
- func (c *ShopAdminHTTPClientImpl) ListUser(ctx context.Context, in *ListUserReq, opts ...http.CallOption) (*ListUserReply, error)
- func (c *ShopAdminHTTPClientImpl) Login(ctx context.Context, in *LoginReq, opts ...http.CallOption) (*LoginReply, error)
- func (c *ShopAdminHTTPClientImpl) Logout(ctx context.Context, in *LogoutReq, opts ...http.CallOption) (*LogoutReply, error)
- func (c *ShopAdminHTTPClientImpl) UpdateBook(ctx context.Context, in *UpdateBookReq, opts ...http.CallOption) (*UpdateBookReply, error)
- type ShopAdminHTTPServer
- type ShopAdminServer
- type UnimplementedShopAdminServer
- func (UnimplementedShopAdminServer) CreateBook(context.Context, *CreateBookReq) (*CreateBookReply, error)
- func (UnimplementedShopAdminServer) DeleteBook(context.Context, *DeleteBookReq) (*DeleteBookReply, error)
- func (UnimplementedShopAdminServer) GetOrder(context.Context, *GetOrderReq) (*GetOrderReply, error)
- func (UnimplementedShopAdminServer) GetUser(context.Context, *GetUserReq) (*GetUserReply, error)
- func (UnimplementedShopAdminServer) ListBook(context.Context, *ListBookReq) (*ListBookReply, error)
- func (UnimplementedShopAdminServer) ListOrder(context.Context, *ListOrderReq) (*ListOrderReply, error)
- func (UnimplementedShopAdminServer) ListUser(context.Context, *ListUserReq) (*ListUserReply, error)
- func (UnimplementedShopAdminServer) Login(context.Context, *LoginReq) (*LoginReply, error)
- func (UnimplementedShopAdminServer) Logout(context.Context, *LogoutReq) (*LogoutReply, error)
- func (UnimplementedShopAdminServer) UpdateBook(context.Context, *UpdateBookReq) (*UpdateBookReply, error)
- type UnsafeShopAdminServer
- type UpdateBookReply
- type UpdateBookReq
- func (*UpdateBookReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBookReq) GetCount() int64
- func (x *UpdateBookReq) GetDescription() string
- func (x *UpdateBookReq) GetId() int64
- func (x *UpdateBookReq) GetImage() []*UpdateBookReq_Image
- func (x *UpdateBookReq) GetName() string
- func (*UpdateBookReq) ProtoMessage()
- func (x *UpdateBookReq) ProtoReflect() protoreflect.Message
- func (x *UpdateBookReq) Reset()
- func (x *UpdateBookReq) String() string
- type UpdateBookReq_Image
- func (*UpdateBookReq_Image) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBookReq_Image) GetUrl() string
- func (*UpdateBookReq_Image) ProtoMessage()
- func (x *UpdateBookReq_Image) ProtoReflect() protoreflect.Message
- func (x *UpdateBookReq_Image) Reset()
- func (x *UpdateBookReq_Image) String() string
- 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 ( ShopAdminErrorReason_name = map[int32]string{ 0: "UNKNOWN_ERROR", } ShopAdminErrorReason_value = map[string]int32{ "UNKNOWN_ERROR": 0, } )
Enum value maps for ShopAdminErrorReason.
var File_v1_shop_admin_error_proto protoreflect.FileDescriptor
var File_v1_shop_admin_proto protoreflect.FileDescriptor
var ShopAdmin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "shop.admin.v1.ShopAdmin", HandlerType: (*ShopAdminServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _ShopAdmin_Login_Handler, }, { MethodName: "Logout", Handler: _ShopAdmin_Logout_Handler, }, { MethodName: "ListBook", Handler: _ShopAdmin_ListBook_Handler, }, { MethodName: "CreateBook", Handler: _ShopAdmin_CreateBook_Handler, }, { MethodName: "UpdateBook", Handler: _ShopAdmin_UpdateBook_Handler, }, { MethodName: "DeleteBook", Handler: _ShopAdmin_DeleteBook_Handler, }, { MethodName: "ListOrder", Handler: _ShopAdmin_ListOrder_Handler, }, { MethodName: "GetOrder", Handler: _ShopAdmin_GetOrder_Handler, }, { MethodName: "ListUser", Handler: _ShopAdmin_ListUser_Handler, }, { MethodName: "GetUser", Handler: _ShopAdmin_GetUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/shop_admin.proto", }
ShopAdmin_ServiceDesc is the grpc.ServiceDesc for ShopAdmin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorUnknownError ¶
func IsUnknownError ¶
func RegisterShopAdminHTTPServer ¶
func RegisterShopAdminHTTPServer(s *http.Server, srv ShopAdminHTTPServer)
func RegisterShopAdminServer ¶
func RegisterShopAdminServer(s grpc.ServiceRegistrar, srv ShopAdminServer)
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 CreateBookReply ¶
type CreateBookReply struct {
// contains filtered or unexported fields
}
func (*CreateBookReply) Descriptor
deprecated
func (*CreateBookReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateBookReply.ProtoReflect.Descriptor instead.
func (*CreateBookReply) ProtoMessage ¶
func (*CreateBookReply) ProtoMessage()
func (*CreateBookReply) ProtoReflect ¶
func (x *CreateBookReply) ProtoReflect() protoreflect.Message
func (*CreateBookReply) Reset ¶
func (x *CreateBookReply) Reset()
func (*CreateBookReply) String ¶
func (x *CreateBookReply) String() string
type CreateBookReq ¶
type CreateBookReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` Image []*CreateBookReq_Image `protobuf:"bytes,4,rep,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*CreateBookReq) Descriptor
deprecated
func (*CreateBookReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateBookReq.ProtoReflect.Descriptor instead.
func (*CreateBookReq) GetCount ¶
func (x *CreateBookReq) GetCount() int64
func (*CreateBookReq) GetDescription ¶
func (x *CreateBookReq) GetDescription() string
func (*CreateBookReq) GetImage ¶
func (x *CreateBookReq) GetImage() []*CreateBookReq_Image
func (*CreateBookReq) GetName ¶
func (x *CreateBookReq) GetName() string
func (*CreateBookReq) ProtoMessage ¶
func (*CreateBookReq) ProtoMessage()
func (*CreateBookReq) ProtoReflect ¶
func (x *CreateBookReq) ProtoReflect() protoreflect.Message
func (*CreateBookReq) Reset ¶
func (x *CreateBookReq) Reset()
func (*CreateBookReq) String ¶
func (x *CreateBookReq) String() string
type CreateBookReq_Image ¶
type CreateBookReq_Image struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*CreateBookReq_Image) Descriptor
deprecated
func (*CreateBookReq_Image) Descriptor() ([]byte, []int)
Deprecated: Use CreateBookReq_Image.ProtoReflect.Descriptor instead.
func (*CreateBookReq_Image) GetUrl ¶
func (x *CreateBookReq_Image) GetUrl() string
func (*CreateBookReq_Image) ProtoMessage ¶
func (*CreateBookReq_Image) ProtoMessage()
func (*CreateBookReq_Image) ProtoReflect ¶
func (x *CreateBookReq_Image) ProtoReflect() protoreflect.Message
func (*CreateBookReq_Image) Reset ¶
func (x *CreateBookReq_Image) Reset()
func (*CreateBookReq_Image) String ¶
func (x *CreateBookReq_Image) 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 DeleteBookReply ¶
type DeleteBookReply struct {
// contains filtered or unexported fields
}
func (*DeleteBookReply) Descriptor
deprecated
func (*DeleteBookReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBookReply.ProtoReflect.Descriptor instead.
func (*DeleteBookReply) ProtoMessage ¶
func (*DeleteBookReply) ProtoMessage()
func (*DeleteBookReply) ProtoReflect ¶
func (x *DeleteBookReply) ProtoReflect() protoreflect.Message
func (*DeleteBookReply) Reset ¶
func (x *DeleteBookReply) Reset()
func (*DeleteBookReply) String ¶
func (x *DeleteBookReply) String() string
type DeleteBookReq ¶
type DeleteBookReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteBookReq) Descriptor
deprecated
func (*DeleteBookReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBookReq.ProtoReflect.Descriptor instead.
func (*DeleteBookReq) GetId ¶
func (x *DeleteBookReq) GetId() int64
func (*DeleteBookReq) ProtoMessage ¶
func (*DeleteBookReq) ProtoMessage()
func (*DeleteBookReq) ProtoReflect ¶
func (x *DeleteBookReq) ProtoReflect() protoreflect.Message
func (*DeleteBookReq) Reset ¶
func (x *DeleteBookReq) Reset()
func (*DeleteBookReq) String ¶
func (x *DeleteBookReq) 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 GetBookReply ¶
type GetBookReply 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 []*GetBookReply_Image `protobuf:"bytes,5,rep,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*GetBookReply) Descriptor
deprecated
func (*GetBookReply) Descriptor() ([]byte, []int)
Deprecated: Use GetBookReply.ProtoReflect.Descriptor instead.
func (*GetBookReply) GetCount ¶
func (x *GetBookReply) GetCount() int64
func (*GetBookReply) GetDescription ¶
func (x *GetBookReply) GetDescription() string
func (*GetBookReply) GetId ¶
func (x *GetBookReply) GetId() int64
func (*GetBookReply) GetImage ¶
func (x *GetBookReply) GetImage() []*GetBookReply_Image
func (*GetBookReply) GetName ¶
func (x *GetBookReply) GetName() string
func (*GetBookReply) ProtoMessage ¶
func (*GetBookReply) ProtoMessage()
func (*GetBookReply) ProtoReflect ¶
func (x *GetBookReply) ProtoReflect() protoreflect.Message
func (*GetBookReply) Reset ¶
func (x *GetBookReply) Reset()
func (*GetBookReply) String ¶
func (x *GetBookReply) String() string
type GetBookReply_Image ¶
type GetBookReply_Image struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*GetBookReply_Image) Descriptor
deprecated
func (*GetBookReply_Image) Descriptor() ([]byte, []int)
Deprecated: Use GetBookReply_Image.ProtoReflect.Descriptor instead.
func (*GetBookReply_Image) GetUrl ¶
func (x *GetBookReply_Image) GetUrl() string
func (*GetBookReply_Image) ProtoMessage ¶
func (*GetBookReply_Image) ProtoMessage()
func (*GetBookReply_Image) ProtoReflect ¶
func (x *GetBookReply_Image) ProtoReflect() protoreflect.Message
func (*GetBookReply_Image) Reset ¶
func (x *GetBookReply_Image) Reset()
func (*GetBookReply_Image) String ¶
func (x *GetBookReply_Image) String() string
type GetBookReq ¶
type GetBookReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetBookReq) Descriptor
deprecated
func (*GetBookReq) Descriptor() ([]byte, []int)
Deprecated: Use GetBookReq.ProtoReflect.Descriptor instead.
func (*GetBookReq) GetId ¶
func (x *GetBookReq) GetId() int64
func (*GetBookReq) ProtoMessage ¶
func (*GetBookReq) ProtoMessage()
func (*GetBookReq) ProtoReflect ¶
func (x *GetBookReq) ProtoReflect() protoreflect.Message
func (*GetBookReq) Reset ¶
func (x *GetBookReq) Reset()
func (*GetBookReq) String ¶
func (x *GetBookReq) 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 GetOrderReply ¶
type GetOrderReply struct {
// contains filtered or unexported fields
}
func (*GetOrderReply) Descriptor
deprecated
func (*GetOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderReply.ProtoReflect.Descriptor instead.
func (*GetOrderReply) ProtoMessage ¶
func (*GetOrderReply) ProtoMessage()
func (*GetOrderReply) ProtoReflect ¶
func (x *GetOrderReply) ProtoReflect() protoreflect.Message
func (*GetOrderReply) Reset ¶
func (x *GetOrderReply) Reset()
func (*GetOrderReply) String ¶
func (x *GetOrderReply) String() string
type GetOrderReq ¶
type GetOrderReq struct {
// contains filtered or unexported fields
}
func (*GetOrderReq) Descriptor
deprecated
func (*GetOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderReq.ProtoReflect.Descriptor instead.
func (*GetOrderReq) ProtoMessage ¶
func (*GetOrderReq) ProtoMessage()
func (*GetOrderReq) ProtoReflect ¶
func (x *GetOrderReq) ProtoReflect() protoreflect.Message
func (*GetOrderReq) Reset ¶
func (x *GetOrderReq) Reset()
func (*GetOrderReq) String ¶
func (x *GetOrderReq) 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 ListBookReply ¶
type ListBookReply struct { Results []*ListBookReply_Book `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListBookReply) Descriptor
deprecated
func (*ListBookReply) Descriptor() ([]byte, []int)
Deprecated: Use ListBookReply.ProtoReflect.Descriptor instead.
func (*ListBookReply) GetResults ¶
func (x *ListBookReply) GetResults() []*ListBookReply_Book
func (*ListBookReply) ProtoMessage ¶
func (*ListBookReply) ProtoMessage()
func (*ListBookReply) ProtoReflect ¶
func (x *ListBookReply) ProtoReflect() protoreflect.Message
func (*ListBookReply) Reset ¶
func (x *ListBookReply) Reset()
func (*ListBookReply) String ¶
func (x *ListBookReply) String() string
type ListBookReply_Book ¶
type ListBookReply_Book 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 []*ListBookReply_Book_Image `protobuf:"bytes,5,rep,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*ListBookReply_Book) Descriptor
deprecated
func (*ListBookReply_Book) Descriptor() ([]byte, []int)
Deprecated: Use ListBookReply_Book.ProtoReflect.Descriptor instead.
func (*ListBookReply_Book) GetCount ¶
func (x *ListBookReply_Book) GetCount() int64
func (*ListBookReply_Book) GetDescription ¶
func (x *ListBookReply_Book) GetDescription() string
func (*ListBookReply_Book) GetId ¶
func (x *ListBookReply_Book) GetId() int64
func (*ListBookReply_Book) GetImage ¶
func (x *ListBookReply_Book) GetImage() []*ListBookReply_Book_Image
func (*ListBookReply_Book) GetName ¶
func (x *ListBookReply_Book) GetName() string
func (*ListBookReply_Book) ProtoMessage ¶
func (*ListBookReply_Book) ProtoMessage()
func (*ListBookReply_Book) ProtoReflect ¶
func (x *ListBookReply_Book) ProtoReflect() protoreflect.Message
func (*ListBookReply_Book) Reset ¶
func (x *ListBookReply_Book) Reset()
func (*ListBookReply_Book) String ¶
func (x *ListBookReply_Book) String() string
type ListBookReply_Book_Image ¶
type ListBookReply_Book_Image struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*ListBookReply_Book_Image) Descriptor
deprecated
func (*ListBookReply_Book_Image) Descriptor() ([]byte, []int)
Deprecated: Use ListBookReply_Book_Image.ProtoReflect.Descriptor instead.
func (*ListBookReply_Book_Image) GetUrl ¶
func (x *ListBookReply_Book_Image) GetUrl() string
func (*ListBookReply_Book_Image) ProtoMessage ¶
func (*ListBookReply_Book_Image) ProtoMessage()
func (*ListBookReply_Book_Image) ProtoReflect ¶
func (x *ListBookReply_Book_Image) ProtoReflect() protoreflect.Message
func (*ListBookReply_Book_Image) Reset ¶
func (x *ListBookReply_Book_Image) Reset()
func (*ListBookReply_Book_Image) String ¶
func (x *ListBookReply_Book_Image) String() string
type ListBookReq ¶
type ListBookReq 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 (*ListBookReq) Descriptor
deprecated
func (*ListBookReq) Descriptor() ([]byte, []int)
Deprecated: Use ListBookReq.ProtoReflect.Descriptor instead.
func (*ListBookReq) GetPageNum ¶
func (x *ListBookReq) GetPageNum() int64
func (*ListBookReq) GetPageSize ¶
func (x *ListBookReq) GetPageSize() int64
func (*ListBookReq) ProtoMessage ¶
func (*ListBookReq) ProtoMessage()
func (*ListBookReq) ProtoReflect ¶
func (x *ListBookReq) ProtoReflect() protoreflect.Message
func (*ListBookReq) Reset ¶
func (x *ListBookReq) Reset()
func (*ListBookReq) String ¶
func (x *ListBookReq) 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 ListUserReply ¶
type ListUserReply struct {
// contains filtered or unexported fields
}
func (*ListUserReply) Descriptor
deprecated
func (*ListUserReply) Descriptor() ([]byte, []int)
Deprecated: Use ListUserReply.ProtoReflect.Descriptor instead.
func (*ListUserReply) ProtoMessage ¶
func (*ListUserReply) ProtoMessage()
func (*ListUserReply) ProtoReflect ¶
func (x *ListUserReply) ProtoReflect() protoreflect.Message
func (*ListUserReply) Reset ¶
func (x *ListUserReply) Reset()
func (*ListUserReply) String ¶
func (x *ListUserReply) String() string
type ListUserReq ¶
type ListUserReq struct {
// contains filtered or unexported fields
}
func (*ListUserReq) Descriptor
deprecated
func (*ListUserReq) Descriptor() ([]byte, []int)
Deprecated: Use ListUserReq.ProtoReflect.Descriptor instead.
func (*ListUserReq) ProtoMessage ¶
func (*ListUserReq) ProtoMessage()
func (*ListUserReq) ProtoReflect ¶
func (x *ListUserReq) ProtoReflect() protoreflect.Message
func (*ListUserReq) Reset ¶
func (x *ListUserReq) Reset()
func (*ListUserReq) String ¶
func (x *ListUserReq) String() string
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 ShopAdminClient ¶
type ShopAdminClient interface { Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginReply, error) Logout(ctx context.Context, in *LogoutReq, opts ...grpc.CallOption) (*LogoutReply, error) ListBook(ctx context.Context, in *ListBookReq, opts ...grpc.CallOption) (*ListBookReply, error) CreateBook(ctx context.Context, in *CreateBookReq, opts ...grpc.CallOption) (*CreateBookReply, error) UpdateBook(ctx context.Context, in *UpdateBookReq, opts ...grpc.CallOption) (*UpdateBookReply, error) DeleteBook(ctx context.Context, in *DeleteBookReq, opts ...grpc.CallOption) (*DeleteBookReply, error) ListOrder(ctx context.Context, in *ListOrderReq, opts ...grpc.CallOption) (*ListOrderReply, error) GetOrder(ctx context.Context, in *GetOrderReq, opts ...grpc.CallOption) (*GetOrderReply, error) ListUser(ctx context.Context, in *ListUserReq, opts ...grpc.CallOption) (*ListUserReply, error) GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserReply, error) }
ShopAdminClient is the client API for ShopAdmin 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 NewShopAdminClient ¶
func NewShopAdminClient(cc grpc.ClientConnInterface) ShopAdminClient
type ShopAdminErrorReason ¶
type ShopAdminErrorReason int32
const (
ShopAdminErrorReason_UNKNOWN_ERROR ShopAdminErrorReason = 0
)
func (ShopAdminErrorReason) Descriptor ¶
func (ShopAdminErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ShopAdminErrorReason) Enum ¶
func (x ShopAdminErrorReason) Enum() *ShopAdminErrorReason
func (ShopAdminErrorReason) EnumDescriptor
deprecated
func (ShopAdminErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ShopAdminErrorReason.Descriptor instead.
func (ShopAdminErrorReason) Number ¶
func (x ShopAdminErrorReason) Number() protoreflect.EnumNumber
func (ShopAdminErrorReason) String ¶
func (x ShopAdminErrorReason) String() string
func (ShopAdminErrorReason) Type ¶
func (ShopAdminErrorReason) Type() protoreflect.EnumType
type ShopAdminHTTPClient ¶
type ShopAdminHTTPClient interface { CreateBook(ctx context.Context, req *CreateBookReq, opts ...http.CallOption) (rsp *CreateBookReply, err error) DeleteBook(ctx context.Context, req *DeleteBookReq, opts ...http.CallOption) (rsp *DeleteBookReply, err error) GetOrder(ctx context.Context, req *GetOrderReq, opts ...http.CallOption) (rsp *GetOrderReply, err error) GetUser(ctx context.Context, req *GetUserReq, opts ...http.CallOption) (rsp *GetUserReply, err error) ListBook(ctx context.Context, req *ListBookReq, opts ...http.CallOption) (rsp *ListBookReply, err error) ListOrder(ctx context.Context, req *ListOrderReq, opts ...http.CallOption) (rsp *ListOrderReply, err error) ListUser(ctx context.Context, req *ListUserReq, opts ...http.CallOption) (rsp *ListUserReply, 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) UpdateBook(ctx context.Context, req *UpdateBookReq, opts ...http.CallOption) (rsp *UpdateBookReply, err error) }
func NewShopAdminHTTPClient ¶
func NewShopAdminHTTPClient(client *http.Client) ShopAdminHTTPClient
type ShopAdminHTTPClientImpl ¶
type ShopAdminHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ShopAdminHTTPClientImpl) CreateBook ¶
func (c *ShopAdminHTTPClientImpl) CreateBook(ctx context.Context, in *CreateBookReq, opts ...http.CallOption) (*CreateBookReply, error)
func (*ShopAdminHTTPClientImpl) DeleteBook ¶
func (c *ShopAdminHTTPClientImpl) DeleteBook(ctx context.Context, in *DeleteBookReq, opts ...http.CallOption) (*DeleteBookReply, error)
func (*ShopAdminHTTPClientImpl) GetOrder ¶
func (c *ShopAdminHTTPClientImpl) GetOrder(ctx context.Context, in *GetOrderReq, opts ...http.CallOption) (*GetOrderReply, error)
func (*ShopAdminHTTPClientImpl) GetUser ¶
func (c *ShopAdminHTTPClientImpl) GetUser(ctx context.Context, in *GetUserReq, opts ...http.CallOption) (*GetUserReply, error)
func (*ShopAdminHTTPClientImpl) ListBook ¶
func (c *ShopAdminHTTPClientImpl) ListBook(ctx context.Context, in *ListBookReq, opts ...http.CallOption) (*ListBookReply, error)
func (*ShopAdminHTTPClientImpl) ListOrder ¶
func (c *ShopAdminHTTPClientImpl) ListOrder(ctx context.Context, in *ListOrderReq, opts ...http.CallOption) (*ListOrderReply, error)
func (*ShopAdminHTTPClientImpl) ListUser ¶
func (c *ShopAdminHTTPClientImpl) ListUser(ctx context.Context, in *ListUserReq, opts ...http.CallOption) (*ListUserReply, error)
func (*ShopAdminHTTPClientImpl) Login ¶
func (c *ShopAdminHTTPClientImpl) Login(ctx context.Context, in *LoginReq, opts ...http.CallOption) (*LoginReply, error)
func (*ShopAdminHTTPClientImpl) Logout ¶
func (c *ShopAdminHTTPClientImpl) Logout(ctx context.Context, in *LogoutReq, opts ...http.CallOption) (*LogoutReply, error)
func (*ShopAdminHTTPClientImpl) UpdateBook ¶
func (c *ShopAdminHTTPClientImpl) UpdateBook(ctx context.Context, in *UpdateBookReq, opts ...http.CallOption) (*UpdateBookReply, error)
type ShopAdminHTTPServer ¶
type ShopAdminHTTPServer interface { CreateBook(context.Context, *CreateBookReq) (*CreateBookReply, error) DeleteBook(context.Context, *DeleteBookReq) (*DeleteBookReply, error) GetOrder(context.Context, *GetOrderReq) (*GetOrderReply, error) GetUser(context.Context, *GetUserReq) (*GetUserReply, error) ListBook(context.Context, *ListBookReq) (*ListBookReply, error) ListOrder(context.Context, *ListOrderReq) (*ListOrderReply, error) ListUser(context.Context, *ListUserReq) (*ListUserReply, error) Login(context.Context, *LoginReq) (*LoginReply, error) Logout(context.Context, *LogoutReq) (*LogoutReply, error) UpdateBook(context.Context, *UpdateBookReq) (*UpdateBookReply, error) }
type ShopAdminServer ¶
type ShopAdminServer interface { Login(context.Context, *LoginReq) (*LoginReply, error) Logout(context.Context, *LogoutReq) (*LogoutReply, error) ListBook(context.Context, *ListBookReq) (*ListBookReply, error) CreateBook(context.Context, *CreateBookReq) (*CreateBookReply, error) UpdateBook(context.Context, *UpdateBookReq) (*UpdateBookReply, error) DeleteBook(context.Context, *DeleteBookReq) (*DeleteBookReply, error) ListOrder(context.Context, *ListOrderReq) (*ListOrderReply, error) GetOrder(context.Context, *GetOrderReq) (*GetOrderReply, error) ListUser(context.Context, *ListUserReq) (*ListUserReply, error) GetUser(context.Context, *GetUserReq) (*GetUserReply, error) // contains filtered or unexported methods }
ShopAdminServer is the server API for ShopAdmin service. All implementations must embed UnimplementedShopAdminServer for forward compatibility
type UnimplementedShopAdminServer ¶
type UnimplementedShopAdminServer struct { }
UnimplementedShopAdminServer must be embedded to have forward compatible implementations.
func (UnimplementedShopAdminServer) CreateBook ¶
func (UnimplementedShopAdminServer) CreateBook(context.Context, *CreateBookReq) (*CreateBookReply, error)
func (UnimplementedShopAdminServer) DeleteBook ¶
func (UnimplementedShopAdminServer) DeleteBook(context.Context, *DeleteBookReq) (*DeleteBookReply, error)
func (UnimplementedShopAdminServer) GetOrder ¶
func (UnimplementedShopAdminServer) GetOrder(context.Context, *GetOrderReq) (*GetOrderReply, error)
func (UnimplementedShopAdminServer) GetUser ¶
func (UnimplementedShopAdminServer) GetUser(context.Context, *GetUserReq) (*GetUserReply, error)
func (UnimplementedShopAdminServer) ListBook ¶
func (UnimplementedShopAdminServer) ListBook(context.Context, *ListBookReq) (*ListBookReply, error)
func (UnimplementedShopAdminServer) ListOrder ¶
func (UnimplementedShopAdminServer) ListOrder(context.Context, *ListOrderReq) (*ListOrderReply, error)
func (UnimplementedShopAdminServer) ListUser ¶
func (UnimplementedShopAdminServer) ListUser(context.Context, *ListUserReq) (*ListUserReply, error)
func (UnimplementedShopAdminServer) Login ¶
func (UnimplementedShopAdminServer) Login(context.Context, *LoginReq) (*LoginReply, error)
func (UnimplementedShopAdminServer) Logout ¶
func (UnimplementedShopAdminServer) Logout(context.Context, *LogoutReq) (*LogoutReply, error)
func (UnimplementedShopAdminServer) UpdateBook ¶
func (UnimplementedShopAdminServer) UpdateBook(context.Context, *UpdateBookReq) (*UpdateBookReply, error)
type UnsafeShopAdminServer ¶
type UnsafeShopAdminServer interface {
// contains filtered or unexported methods
}
UnsafeShopAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ShopAdminServer will result in compilation errors.
type UpdateBookReply ¶
type UpdateBookReply struct {
// contains filtered or unexported fields
}
func (*UpdateBookReply) Descriptor
deprecated
func (*UpdateBookReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBookReply.ProtoReflect.Descriptor instead.
func (*UpdateBookReply) ProtoMessage ¶
func (*UpdateBookReply) ProtoMessage()
func (*UpdateBookReply) ProtoReflect ¶
func (x *UpdateBookReply) ProtoReflect() protoreflect.Message
func (*UpdateBookReply) Reset ¶
func (x *UpdateBookReply) Reset()
func (*UpdateBookReply) String ¶
func (x *UpdateBookReply) String() string
type UpdateBookReq ¶
type UpdateBookReq 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 []*UpdateBookReq_Image `protobuf:"bytes,5,rep,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*UpdateBookReq) Descriptor
deprecated
func (*UpdateBookReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBookReq.ProtoReflect.Descriptor instead.
func (*UpdateBookReq) GetCount ¶
func (x *UpdateBookReq) GetCount() int64
func (*UpdateBookReq) GetDescription ¶
func (x *UpdateBookReq) GetDescription() string
func (*UpdateBookReq) GetId ¶
func (x *UpdateBookReq) GetId() int64
func (*UpdateBookReq) GetImage ¶
func (x *UpdateBookReq) GetImage() []*UpdateBookReq_Image
func (*UpdateBookReq) GetName ¶
func (x *UpdateBookReq) GetName() string
func (*UpdateBookReq) ProtoMessage ¶
func (*UpdateBookReq) ProtoMessage()
func (*UpdateBookReq) ProtoReflect ¶
func (x *UpdateBookReq) ProtoReflect() protoreflect.Message
func (*UpdateBookReq) Reset ¶
func (x *UpdateBookReq) Reset()
func (*UpdateBookReq) String ¶
func (x *UpdateBookReq) String() string
type UpdateBookReq_Image ¶
type UpdateBookReq_Image struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*UpdateBookReq_Image) Descriptor
deprecated
func (*UpdateBookReq_Image) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBookReq_Image.ProtoReflect.Descriptor instead.
func (*UpdateBookReq_Image) GetUrl ¶
func (x *UpdateBookReq_Image) GetUrl() string
func (*UpdateBookReq_Image) ProtoMessage ¶
func (*UpdateBookReq_Image) ProtoMessage()
func (*UpdateBookReq_Image) ProtoReflect ¶
func (x *UpdateBookReq_Image) ProtoReflect() protoreflect.Message
func (*UpdateBookReq_Image) Reset ¶
func (x *UpdateBookReq_Image) Reset()
func (*UpdateBookReq_Image) String ¶
func (x *UpdateBookReq_Image) String() string
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