Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterGoodsCategoryServer(s grpc.ServiceRegistrar, srv GoodsCategoryServer)
- type CreateGoodsCategoryRequest
- func (*CreateGoodsCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateGoodsCategoryRequest) GetId() int32
- func (x *CreateGoodsCategoryRequest) GetIsTab() bool
- func (x *CreateGoodsCategoryRequest) GetLevel() int32
- func (x *CreateGoodsCategoryRequest) GetName() string
- func (x *CreateGoodsCategoryRequest) GetParentCategory() int32
- func (*CreateGoodsCategoryRequest) ProtoMessage()
- func (x *CreateGoodsCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *CreateGoodsCategoryRequest) Reset()
- func (x *CreateGoodsCategoryRequest) String() string
- type DeleteGoodsCategoryRequest
- func (*DeleteGoodsCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteGoodsCategoryRequest) GetId() int32
- func (*DeleteGoodsCategoryRequest) ProtoMessage()
- func (x *DeleteGoodsCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteGoodsCategoryRequest) Reset()
- func (x *DeleteGoodsCategoryRequest) String() string
- type Empty
- type GetSubGoodsCategoryListRequest
- func (*GetSubGoodsCategoryListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSubGoodsCategoryListRequest) GetId() int32
- func (x *GetSubGoodsCategoryListRequest) GetLevel() int32
- func (*GetSubGoodsCategoryListRequest) ProtoMessage()
- func (x *GetSubGoodsCategoryListRequest) ProtoReflect() protoreflect.Message
- func (x *GetSubGoodsCategoryListRequest) Reset()
- func (x *GetSubGoodsCategoryListRequest) String() string
- type GoodsCategoryClient
- type GoodsCategoryInfoResponse
- func (*GoodsCategoryInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GoodsCategoryInfoResponse) GetId() int32
- func (x *GoodsCategoryInfoResponse) GetIsTab() bool
- func (x *GoodsCategoryInfoResponse) GetLevel() int32
- func (x *GoodsCategoryInfoResponse) GetName() string
- func (x *GoodsCategoryInfoResponse) GetParentCategory() int32
- func (*GoodsCategoryInfoResponse) ProtoMessage()
- func (x *GoodsCategoryInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GoodsCategoryInfoResponse) Reset()
- func (x *GoodsCategoryInfoResponse) String() string
- type GoodsCategoryListResponse
- func (*GoodsCategoryListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GoodsCategoryListResponse) GetInfo() []*GoodsCategoryInfoResponse
- func (x *GoodsCategoryListResponse) GetJsonData() string
- func (x *GoodsCategoryListResponse) GetTotal() int32
- func (*GoodsCategoryListResponse) ProtoMessage()
- func (x *GoodsCategoryListResponse) ProtoReflect() protoreflect.Message
- func (x *GoodsCategoryListResponse) Reset()
- func (x *GoodsCategoryListResponse) String() string
- type GoodsCategoryServer
- type SubGoodsCategoryListResponse
- func (*SubGoodsCategoryListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubGoodsCategoryListResponse) GetInfo() *GoodsCategoryInfoResponse
- func (x *SubGoodsCategoryListResponse) GetSubCategorys() []*GoodsCategoryInfoResponse
- func (x *SubGoodsCategoryListResponse) GetTotal() int32
- func (*SubGoodsCategoryListResponse) ProtoMessage()
- func (x *SubGoodsCategoryListResponse) ProtoReflect() protoreflect.Message
- func (x *SubGoodsCategoryListResponse) Reset()
- func (x *SubGoodsCategoryListResponse) String() string
- type UnimplementedGoodsCategoryServer
- func (UnimplementedGoodsCategoryServer) CreateGoodsCategory(context.Context, *CreateGoodsCategoryRequest) (*GoodsCategoryInfoResponse, error)
- func (UnimplementedGoodsCategoryServer) DeleteGoodsCategory(context.Context, *DeleteGoodsCategoryRequest) (*Empty, error)
- func (UnimplementedGoodsCategoryServer) GetAllGoodsCategoryList(context.Context, *Empty) (*GoodsCategoryListResponse, error)
- func (UnimplementedGoodsCategoryServer) GetSubGoodsCategoryList(context.Context, *GetSubGoodsCategoryListRequest) (*SubGoodsCategoryListResponse, error)
- func (UnimplementedGoodsCategoryServer) Ping(context.Context, *Empty) (*Empty, error)
- func (UnimplementedGoodsCategoryServer) UpdateGoodsCategory(context.Context, *CreateGoodsCategoryRequest) (*Empty, error)
- type UnsafeGoodsCategoryServer
Constants ¶
const ( GoodsCategory_GetAllGoodsCategoryList_FullMethodName = "/goods_category.GoodsCategory/GetAllGoodsCategoryList" GoodsCategory_GetSubGoodsCategoryList_FullMethodName = "/goods_category.GoodsCategory/GetSubGoodsCategoryList" GoodsCategory_CreateGoodsCategory_FullMethodName = "/goods_category.GoodsCategory/CreateGoodsCategory" GoodsCategory_UpdateGoodsCategory_FullMethodName = "/goods_category.GoodsCategory/UpdateGoodsCategory" GoodsCategory_DeleteGoodsCategory_FullMethodName = "/goods_category.GoodsCategory/DeleteGoodsCategory" GoodsCategory_Ping_FullMethodName = "/goods_category.GoodsCategory/Ping" )
Variables ¶
var File_proto_goods_goods_category_proto protoreflect.FileDescriptor
var GoodsCategory_ServiceDesc = grpc.ServiceDesc{ ServiceName: "goods_category.GoodsCategory", HandlerType: (*GoodsCategoryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAllGoodsCategoryList", Handler: _GoodsCategory_GetAllGoodsCategoryList_Handler, }, { MethodName: "GetSubGoodsCategoryList", Handler: _GoodsCategory_GetSubGoodsCategoryList_Handler, }, { MethodName: "CreateGoodsCategory", Handler: _GoodsCategory_CreateGoodsCategory_Handler, }, { MethodName: "UpdateGoodsCategory", Handler: _GoodsCategory_UpdateGoodsCategory_Handler, }, { MethodName: "DeleteGoodsCategory", Handler: _GoodsCategory_DeleteGoodsCategory_Handler, }, { MethodName: "Ping", Handler: _GoodsCategory_Ping_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/goods/goods_category.proto", }
GoodsCategory_ServiceDesc is the grpc.ServiceDesc for GoodsCategory service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGoodsCategoryServer ¶
func RegisterGoodsCategoryServer(s grpc.ServiceRegistrar, srv GoodsCategoryServer)
Types ¶
type CreateGoodsCategoryRequest ¶
type CreateGoodsCategoryRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 分类名称 Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // 分类id ParentCategory int32 `protobuf:"varint,3,opt,name=parentCategory,proto3" json:"parentCategory,omitempty"` // 父分类 Level int32 `protobuf:"varint,4,opt,name=level,proto3" json:"level,omitempty"` // 分类级别 IsTab bool `protobuf:"varint,5,opt,name=isTab,proto3" json:"isTab,omitempty"` // 是否为tab // contains filtered or unexported fields }
func (*CreateGoodsCategoryRequest) Descriptor
deprecated
func (*CreateGoodsCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateGoodsCategoryRequest.ProtoReflect.Descriptor instead.
func (*CreateGoodsCategoryRequest) GetId ¶
func (x *CreateGoodsCategoryRequest) GetId() int32
func (*CreateGoodsCategoryRequest) GetIsTab ¶
func (x *CreateGoodsCategoryRequest) GetIsTab() bool
func (*CreateGoodsCategoryRequest) GetLevel ¶
func (x *CreateGoodsCategoryRequest) GetLevel() int32
func (*CreateGoodsCategoryRequest) GetName ¶
func (x *CreateGoodsCategoryRequest) GetName() string
func (*CreateGoodsCategoryRequest) GetParentCategory ¶
func (x *CreateGoodsCategoryRequest) GetParentCategory() int32
func (*CreateGoodsCategoryRequest) ProtoMessage ¶
func (*CreateGoodsCategoryRequest) ProtoMessage()
func (*CreateGoodsCategoryRequest) ProtoReflect ¶
func (x *CreateGoodsCategoryRequest) ProtoReflect() protoreflect.Message
func (*CreateGoodsCategoryRequest) Reset ¶
func (x *CreateGoodsCategoryRequest) Reset()
func (*CreateGoodsCategoryRequest) String ¶
func (x *CreateGoodsCategoryRequest) String() string
type DeleteGoodsCategoryRequest ¶
type DeleteGoodsCategoryRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 分类id // contains filtered or unexported fields }
func (*DeleteGoodsCategoryRequest) Descriptor
deprecated
func (*DeleteGoodsCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteGoodsCategoryRequest.ProtoReflect.Descriptor instead.
func (*DeleteGoodsCategoryRequest) GetId ¶
func (x *DeleteGoodsCategoryRequest) GetId() int32
func (*DeleteGoodsCategoryRequest) ProtoMessage ¶
func (*DeleteGoodsCategoryRequest) ProtoMessage()
func (*DeleteGoodsCategoryRequest) ProtoReflect ¶
func (x *DeleteGoodsCategoryRequest) ProtoReflect() protoreflect.Message
func (*DeleteGoodsCategoryRequest) Reset ¶
func (x *DeleteGoodsCategoryRequest) Reset()
func (*DeleteGoodsCategoryRequest) String ¶
func (x *DeleteGoodsCategoryRequest) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type GetSubGoodsCategoryListRequest ¶
type GetSubGoodsCategoryListRequest struct { // 获取商品子分类列表请求 Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 商品分类id Level int32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"` // 商品分类级别 // contains filtered or unexported fields }
func (*GetSubGoodsCategoryListRequest) Descriptor
deprecated
func (*GetSubGoodsCategoryListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSubGoodsCategoryListRequest.ProtoReflect.Descriptor instead.
func (*GetSubGoodsCategoryListRequest) GetId ¶
func (x *GetSubGoodsCategoryListRequest) GetId() int32
func (*GetSubGoodsCategoryListRequest) GetLevel ¶
func (x *GetSubGoodsCategoryListRequest) GetLevel() int32
func (*GetSubGoodsCategoryListRequest) ProtoMessage ¶
func (*GetSubGoodsCategoryListRequest) ProtoMessage()
func (*GetSubGoodsCategoryListRequest) ProtoReflect ¶
func (x *GetSubGoodsCategoryListRequest) ProtoReflect() protoreflect.Message
func (*GetSubGoodsCategoryListRequest) Reset ¶
func (x *GetSubGoodsCategoryListRequest) Reset()
func (*GetSubGoodsCategoryListRequest) String ¶
func (x *GetSubGoodsCategoryListRequest) String() string
type GoodsCategoryClient ¶
type GoodsCategoryClient interface { // 商品分类接口 GetAllGoodsCategoryList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GoodsCategoryListResponse, error) GetSubGoodsCategoryList(ctx context.Context, in *GetSubGoodsCategoryListRequest, opts ...grpc.CallOption) (*SubGoodsCategoryListResponse, error) CreateGoodsCategory(ctx context.Context, in *CreateGoodsCategoryRequest, opts ...grpc.CallOption) (*GoodsCategoryInfoResponse, error) UpdateGoodsCategory(ctx context.Context, in *CreateGoodsCategoryRequest, opts ...grpc.CallOption) (*Empty, error) DeleteGoodsCategory(ctx context.Context, in *DeleteGoodsCategoryRequest, opts ...grpc.CallOption) (*Empty, error) Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) }
GoodsCategoryClient is the client API for GoodsCategory 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 NewGoodsCategoryClient ¶
func NewGoodsCategoryClient(cc grpc.ClientConnInterface) GoodsCategoryClient
type GoodsCategoryInfoResponse ¶
type GoodsCategoryInfoResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 分类id Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 分类名称 ParentCategory int32 `protobuf:"varint,3,opt,name=parentCategory,proto3" json:"parentCategory,omitempty"` // 父分类id Level int32 `protobuf:"varint,4,opt,name=level,proto3" json:"level,omitempty"` // 分类级别 IsTab bool `protobuf:"varint,5,opt,name=isTab,proto3" json:"isTab,omitempty"` // 是否为tab分类 // contains filtered or unexported fields }
func (*GoodsCategoryInfoResponse) Descriptor
deprecated
func (*GoodsCategoryInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GoodsCategoryInfoResponse.ProtoReflect.Descriptor instead.
func (*GoodsCategoryInfoResponse) GetId ¶
func (x *GoodsCategoryInfoResponse) GetId() int32
func (*GoodsCategoryInfoResponse) GetIsTab ¶
func (x *GoodsCategoryInfoResponse) GetIsTab() bool
func (*GoodsCategoryInfoResponse) GetLevel ¶
func (x *GoodsCategoryInfoResponse) GetLevel() int32
func (*GoodsCategoryInfoResponse) GetName ¶
func (x *GoodsCategoryInfoResponse) GetName() string
func (*GoodsCategoryInfoResponse) GetParentCategory ¶
func (x *GoodsCategoryInfoResponse) GetParentCategory() int32
func (*GoodsCategoryInfoResponse) ProtoMessage ¶
func (*GoodsCategoryInfoResponse) ProtoMessage()
func (*GoodsCategoryInfoResponse) ProtoReflect ¶
func (x *GoodsCategoryInfoResponse) ProtoReflect() protoreflect.Message
func (*GoodsCategoryInfoResponse) Reset ¶
func (x *GoodsCategoryInfoResponse) Reset()
func (*GoodsCategoryInfoResponse) String ¶
func (x *GoodsCategoryInfoResponse) String() string
type GoodsCategoryListResponse ¶
type GoodsCategoryListResponse struct { Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 总数 Info []*GoodsCategoryInfoResponse `protobuf:"bytes,2,rep,name=info,proto3" json:"info,omitempty"` // 分类信息 JsonData string `protobuf:"bytes,3,opt,name=jsonData,proto3" json:"jsonData,omitempty"` // 分类信息json格式 // contains filtered or unexported fields }
func (*GoodsCategoryListResponse) Descriptor
deprecated
func (*GoodsCategoryListResponse) Descriptor() ([]byte, []int)
Deprecated: Use GoodsCategoryListResponse.ProtoReflect.Descriptor instead.
func (*GoodsCategoryListResponse) GetInfo ¶
func (x *GoodsCategoryListResponse) GetInfo() []*GoodsCategoryInfoResponse
func (*GoodsCategoryListResponse) GetJsonData ¶
func (x *GoodsCategoryListResponse) GetJsonData() string
func (*GoodsCategoryListResponse) GetTotal ¶
func (x *GoodsCategoryListResponse) GetTotal() int32
func (*GoodsCategoryListResponse) ProtoMessage ¶
func (*GoodsCategoryListResponse) ProtoMessage()
func (*GoodsCategoryListResponse) ProtoReflect ¶
func (x *GoodsCategoryListResponse) ProtoReflect() protoreflect.Message
func (*GoodsCategoryListResponse) Reset ¶
func (x *GoodsCategoryListResponse) Reset()
func (*GoodsCategoryListResponse) String ¶
func (x *GoodsCategoryListResponse) String() string
type GoodsCategoryServer ¶
type GoodsCategoryServer interface { // 商品分类接口 GetAllGoodsCategoryList(context.Context, *Empty) (*GoodsCategoryListResponse, error) GetSubGoodsCategoryList(context.Context, *GetSubGoodsCategoryListRequest) (*SubGoodsCategoryListResponse, error) CreateGoodsCategory(context.Context, *CreateGoodsCategoryRequest) (*GoodsCategoryInfoResponse, error) UpdateGoodsCategory(context.Context, *CreateGoodsCategoryRequest) (*Empty, error) DeleteGoodsCategory(context.Context, *DeleteGoodsCategoryRequest) (*Empty, error) Ping(context.Context, *Empty) (*Empty, error) // contains filtered or unexported methods }
GoodsCategoryServer is the server API for GoodsCategory service. All implementations must embed UnimplementedGoodsCategoryServer for forward compatibility
type SubGoodsCategoryListResponse ¶
type SubGoodsCategoryListResponse struct { Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 总数 Info *GoodsCategoryInfoResponse `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` // 本身分类信息 SubCategorys []*GoodsCategoryInfoResponse `protobuf:"bytes,3,rep,name=subCategorys,proto3" json:"subCategorys,omitempty"` // 子分类信息 // contains filtered or unexported fields }
func (*SubGoodsCategoryListResponse) Descriptor
deprecated
func (*SubGoodsCategoryListResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubGoodsCategoryListResponse.ProtoReflect.Descriptor instead.
func (*SubGoodsCategoryListResponse) GetInfo ¶
func (x *SubGoodsCategoryListResponse) GetInfo() *GoodsCategoryInfoResponse
func (*SubGoodsCategoryListResponse) GetSubCategorys ¶
func (x *SubGoodsCategoryListResponse) GetSubCategorys() []*GoodsCategoryInfoResponse
func (*SubGoodsCategoryListResponse) GetTotal ¶
func (x *SubGoodsCategoryListResponse) GetTotal() int32
func (*SubGoodsCategoryListResponse) ProtoMessage ¶
func (*SubGoodsCategoryListResponse) ProtoMessage()
func (*SubGoodsCategoryListResponse) ProtoReflect ¶
func (x *SubGoodsCategoryListResponse) ProtoReflect() protoreflect.Message
func (*SubGoodsCategoryListResponse) Reset ¶
func (x *SubGoodsCategoryListResponse) Reset()
func (*SubGoodsCategoryListResponse) String ¶
func (x *SubGoodsCategoryListResponse) String() string
type UnimplementedGoodsCategoryServer ¶
type UnimplementedGoodsCategoryServer struct { }
UnimplementedGoodsCategoryServer must be embedded to have forward compatible implementations.
func (UnimplementedGoodsCategoryServer) CreateGoodsCategory ¶
func (UnimplementedGoodsCategoryServer) CreateGoodsCategory(context.Context, *CreateGoodsCategoryRequest) (*GoodsCategoryInfoResponse, error)
func (UnimplementedGoodsCategoryServer) DeleteGoodsCategory ¶
func (UnimplementedGoodsCategoryServer) DeleteGoodsCategory(context.Context, *DeleteGoodsCategoryRequest) (*Empty, error)
func (UnimplementedGoodsCategoryServer) GetAllGoodsCategoryList ¶
func (UnimplementedGoodsCategoryServer) GetAllGoodsCategoryList(context.Context, *Empty) (*GoodsCategoryListResponse, error)
func (UnimplementedGoodsCategoryServer) GetSubGoodsCategoryList ¶
func (UnimplementedGoodsCategoryServer) GetSubGoodsCategoryList(context.Context, *GetSubGoodsCategoryListRequest) (*SubGoodsCategoryListResponse, error)
func (UnimplementedGoodsCategoryServer) UpdateGoodsCategory ¶
func (UnimplementedGoodsCategoryServer) UpdateGoodsCategory(context.Context, *CreateGoodsCategoryRequest) (*Empty, error)
type UnsafeGoodsCategoryServer ¶
type UnsafeGoodsCategoryServer interface {
// contains filtered or unexported methods
}
UnsafeGoodsCategoryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GoodsCategoryServer will result in compilation errors.