goods_category

package
v0.0.0-...-6f596e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var File_proto_goods_goods_category_proto protoreflect.FileDescriptor
View Source
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 (*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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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 (*GetSubGoodsCategoryListRequest) GetLevel

func (x *GetSubGoodsCategoryListRequest) GetLevel() int32

func (*GetSubGoodsCategoryListRequest) ProtoMessage

func (*GetSubGoodsCategoryListRequest) ProtoMessage()

func (*GetSubGoodsCategoryListRequest) ProtoReflect

func (*GetSubGoodsCategoryListRequest) Reset

func (x *GetSubGoodsCategoryListRequest) Reset()

func (*GetSubGoodsCategoryListRequest) 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.

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 (*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 (*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 (*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 (*SubGoodsCategoryListResponse) GetSubCategorys

func (*SubGoodsCategoryListResponse) GetTotal

func (x *SubGoodsCategoryListResponse) GetTotal() int32

func (*SubGoodsCategoryListResponse) ProtoMessage

func (*SubGoodsCategoryListResponse) ProtoMessage()

func (*SubGoodsCategoryListResponse) ProtoReflect

func (*SubGoodsCategoryListResponse) Reset

func (x *SubGoodsCategoryListResponse) Reset()

func (*SubGoodsCategoryListResponse) String

type UnimplementedGoodsCategoryServer

type UnimplementedGoodsCategoryServer struct {
}

UnimplementedGoodsCategoryServer must be embedded to have forward compatible implementations.

func (UnimplementedGoodsCategoryServer) CreateGoodsCategory

func (UnimplementedGoodsCategoryServer) DeleteGoodsCategory

func (UnimplementedGoodsCategoryServer) GetAllGoodsCategoryList

func (UnimplementedGoodsCategoryServer) Ping

func (UnimplementedGoodsCategoryServer) UpdateGoodsCategory

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL