app-cloudep-product-service/gen_result/pb/product/product.pb.go

541 lines
19 KiB
Go
Raw Normal View History

2025-03-12 14:05:38 +00:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
2025-04-08 02:06:40 +00:00
// protoc-gen-go v1.36.5
2025-03-12 14:05:38 +00:00
// protoc v3.19.4
// source: generate/protobuf/product.proto
package product
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
2025-04-08 00:51:58 +00:00
reflect "reflect"
sync "sync"
2025-04-08 02:06:40 +00:00
unsafe "unsafe"
2025-03-12 14:05:38 +00:00
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
2025-04-08 00:51:58 +00:00
// OKResp
type OKResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *OKResp) Reset() {
*x = OKResp{}
mi := &file_generate_protobuf_product_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *OKResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OKResp) ProtoMessage() {}
func (x *OKResp) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_product_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use OKResp.ProtoReflect.Descriptor instead.
func (*OKResp) Descriptor() ([]byte, []int) {
return file_generate_protobuf_product_proto_rawDescGZIP(), []int{0}
}
// NoneReq
type NoneReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NoneReq) Reset() {
*x = NoneReq{}
mi := &file_generate_protobuf_product_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NoneReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NoneReq) ProtoMessage() {}
func (x *NoneReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_product_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NoneReq.ProtoReflect.Descriptor instead.
func (*NoneReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_product_proto_rawDescGZIP(), []int{1}
}
2025-04-08 02:06:40 +00:00
// ====================== Category Param ======================
2025-04-08 00:51:58 +00:00
type CreateCategoryReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateCategoryReq) Reset() {
*x = CreateCategoryReq{}
mi := &file_generate_protobuf_product_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateCategoryReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateCategoryReq) ProtoMessage() {}
func (x *CreateCategoryReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_product_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateCategoryReq.ProtoReflect.Descriptor instead.
func (*CreateCategoryReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_product_proto_rawDescGZIP(), []int{2}
}
func (x *CreateCategoryReq) GetName() string {
if x != nil {
return x.Name
}
return ""
}
2025-04-08 02:06:40 +00:00
type ModifyCategoryReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ModifyCategoryReq) Reset() {
*x = ModifyCategoryReq{}
mi := &file_generate_protobuf_product_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ModifyCategoryReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ModifyCategoryReq) ProtoMessage() {}
func (x *ModifyCategoryReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_product_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ModifyCategoryReq.ProtoReflect.Descriptor instead.
func (*ModifyCategoryReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_product_proto_rawDescGZIP(), []int{3}
}
func (x *ModifyCategoryReq) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *ModifyCategoryReq) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type CategoryReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CategoryReq) Reset() {
*x = CategoryReq{}
mi := &file_generate_protobuf_product_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CategoryReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CategoryReq) ProtoMessage() {}
func (x *CategoryReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_product_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CategoryReq.ProtoReflect.Descriptor instead.
func (*CategoryReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_product_proto_rawDescGZIP(), []int{4}
}
func (x *CategoryReq) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type Category struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
CreateTime int64 `protobuf:"varint,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
UpdateTime int64 `protobuf:"varint,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Category) Reset() {
*x = Category{}
mi := &file_generate_protobuf_product_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Category) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Category) ProtoMessage() {}
func (x *Category) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_product_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Category.ProtoReflect.Descriptor instead.
func (*Category) Descriptor() ([]byte, []int) {
return file_generate_protobuf_product_proto_rawDescGZIP(), []int{5}
}
func (x *Category) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Category) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Category) GetCreateTime() int64 {
if x != nil {
return x.CreateTime
}
return 0
}
func (x *Category) GetUpdateTime() int64 {
if x != nil {
return x.UpdateTime
}
return 0
}
type ListCategoryReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
PageIndex int64 `protobuf:"varint,1,opt,name=page_index,json=pageIndex,proto3" json:"page_index,omitempty"`
PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
Ids []string `protobuf:"bytes,3,rep,name=ids,proto3" json:"ids,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListCategoryReq) Reset() {
*x = ListCategoryReq{}
mi := &file_generate_protobuf_product_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListCategoryReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListCategoryReq) ProtoMessage() {}
func (x *ListCategoryReq) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_product_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListCategoryReq.ProtoReflect.Descriptor instead.
func (*ListCategoryReq) Descriptor() ([]byte, []int) {
return file_generate_protobuf_product_proto_rawDescGZIP(), []int{6}
}
func (x *ListCategoryReq) GetPageIndex() int64 {
if x != nil {
return x.PageIndex
}
return 0
}
func (x *ListCategoryReq) GetPageSize() int64 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListCategoryReq) GetIds() []string {
if x != nil {
return x.Ids
}
return nil
}
type ListCategoryResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
Data []*Category `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListCategoryResp) Reset() {
*x = ListCategoryResp{}
mi := &file_generate_protobuf_product_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListCategoryResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListCategoryResp) ProtoMessage() {}
func (x *ListCategoryResp) ProtoReflect() protoreflect.Message {
mi := &file_generate_protobuf_product_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListCategoryResp.ProtoReflect.Descriptor instead.
func (*ListCategoryResp) Descriptor() ([]byte, []int) {
return file_generate_protobuf_product_proto_rawDescGZIP(), []int{7}
}
func (x *ListCategoryResp) GetTotal() int64 {
if x != nil {
return x.Total
}
return 0
}
func (x *ListCategoryResp) GetData() []*Category {
if x != nil {
return x.Data
}
return nil
}
2025-03-12 14:05:38 +00:00
var File_generate_protobuf_product_proto protoreflect.FileDescriptor
2025-04-08 02:06:40 +00:00
var file_generate_protobuf_product_proto_rawDesc = string([]byte{
2025-03-12 14:05:38 +00:00
0x0a, 0x1f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
2025-04-08 00:51:58 +00:00
0x6f, 0x12, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x22, 0x08, 0x0a, 0x06, 0x4f, 0x4b,
0x52, 0x65, 0x73, 0x70, 0x22, 0x09, 0x0a, 0x07, 0x4e, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x22,
0x27, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
0x79, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
2025-04-08 02:06:40 +00:00
0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x37, 0x0a, 0x11, 0x4d, 0x6f, 0x64, 0x69,
0x66, 0x79, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a,
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x22, 0x1d, 0x0a, 0x0b, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71,
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
0x22, 0x70, 0x0a, 0x08, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d,
0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65,
0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69,
0x6d, 0x65, 0x22, 0x5f, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f,
0x72, 0x79, 0x52, 0x65, 0x71, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x6e,
0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x49,
0x6e, 0x64, 0x65, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,
0x65, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03,
0x69, 0x64, 0x73, 0x22, 0x4f, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67,
0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x25, 0x0a,
0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x72,
0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x04,
0x64, 0x61, 0x74, 0x61, 0x32, 0xbd, 0x02, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
0x12, 0x3d, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f,
0x72, 0x79, 0x12, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x0f,
0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12,
0x3d, 0x0a, 0x0e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
0x79, 0x12, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x4d, 0x6f, 0x64, 0x69,
0x66, 0x79, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e,
0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x37,
0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79,
0x12, 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x43, 0x61, 0x74, 0x65, 0x67,
0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x36, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x43, 0x61,
0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
0x2e, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x70,
0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12,
0x43, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12,
0x18, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61,
0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x64,
0x75, 0x63, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79,
0x52, 0x65, 0x73, 0x70, 0x42, 0x0b, 0x5a, 0x09, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63,
0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
})
2025-03-12 14:05:38 +00:00
2025-04-08 00:51:58 +00:00
var (
file_generate_protobuf_product_proto_rawDescOnce sync.Once
2025-04-08 02:06:40 +00:00
file_generate_protobuf_product_proto_rawDescData []byte
2025-04-08 00:51:58 +00:00
)
func file_generate_protobuf_product_proto_rawDescGZIP() []byte {
file_generate_protobuf_product_proto_rawDescOnce.Do(func() {
2025-04-08 02:06:40 +00:00
file_generate_protobuf_product_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_generate_protobuf_product_proto_rawDesc), len(file_generate_protobuf_product_proto_rawDesc)))
2025-04-08 00:51:58 +00:00
})
return file_generate_protobuf_product_proto_rawDescData
}
2025-04-08 02:06:40 +00:00
var file_generate_protobuf_product_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
2025-04-08 00:51:58 +00:00
var file_generate_protobuf_product_proto_goTypes = []any{
(*OKResp)(nil), // 0: product.OKResp
(*NoneReq)(nil), // 1: product.NoneReq
(*CreateCategoryReq)(nil), // 2: product.CreateCategoryReq
2025-04-08 02:06:40 +00:00
(*ModifyCategoryReq)(nil), // 3: product.ModifyCategoryReq
(*CategoryReq)(nil), // 4: product.CategoryReq
(*Category)(nil), // 5: product.Category
(*ListCategoryReq)(nil), // 6: product.ListCategoryReq
(*ListCategoryResp)(nil), // 7: product.ListCategoryResp
2025-04-08 00:51:58 +00:00
}
2025-03-12 14:05:38 +00:00
var file_generate_protobuf_product_proto_depIdxs = []int32{
2025-04-08 02:06:40 +00:00
5, // 0: product.ListCategoryResp.data:type_name -> product.Category
2, // 1: product.Product.CreateCategory:input_type -> product.CreateCategoryReq
3, // 2: product.Product.ModifyCategory:input_type -> product.ModifyCategoryReq
4, // 3: product.Product.DeleteCategory:input_type -> product.CategoryReq
4, // 4: product.Product.GetCategory:input_type -> product.CategoryReq
6, // 5: product.Product.ListCategory:input_type -> product.ListCategoryReq
0, // 6: product.Product.CreateCategory:output_type -> product.OKResp
0, // 7: product.Product.ModifyCategory:output_type -> product.OKResp
0, // 8: product.Product.DeleteCategory:output_type -> product.OKResp
5, // 9: product.Product.GetCategory:output_type -> product.Category
7, // 10: product.Product.ListCategory:output_type -> product.ListCategoryResp
6, // [6:11] is the sub-list for method output_type
1, // [1:6] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
2025-03-12 14:05:38 +00:00
}
func init() { file_generate_protobuf_product_proto_init() }
func file_generate_protobuf_product_proto_init() {
if File_generate_protobuf_product_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
2025-04-08 02:06:40 +00:00
RawDescriptor: unsafe.Slice(unsafe.StringData(file_generate_protobuf_product_proto_rawDesc), len(file_generate_protobuf_product_proto_rawDesc)),
2025-03-12 14:05:38 +00:00
NumEnums: 0,
2025-04-08 02:06:40 +00:00
NumMessages: 8,
2025-03-12 14:05:38 +00:00
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_generate_protobuf_product_proto_goTypes,
DependencyIndexes: file_generate_protobuf_product_proto_depIdxs,
2025-04-08 00:51:58 +00:00
MessageInfos: file_generate_protobuf_product_proto_msgTypes,
2025-03-12 14:05:38 +00:00
}.Build()
File_generate_protobuf_product_proto = out.File
file_generate_protobuf_product_proto_goTypes = nil
file_generate_protobuf_product_proto_depIdxs = nil
}