1044 lines
37 KiB
Go
1044 lines
37 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.5
|
|
// 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"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
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)
|
|
)
|
|
|
|
// 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}
|
|
}
|
|
|
|
// ====================== Category Param ======================
|
|
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 ""
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
type CreateTagsReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Types int32 `protobuf:"varint,1,opt,name=types,proto3" json:"types,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
ShowType int64 `protobuf:"varint,3,opt,name=show_type,json=showType,proto3" json:"show_type,omitempty"`
|
|
Cover *string `protobuf:"bytes,4,opt,name=cover,proto3,oneof" json:"cover,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateTagsReq) Reset() {
|
|
*x = CreateTagsReq{}
|
|
mi := &file_generate_protobuf_product_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateTagsReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateTagsReq) ProtoMessage() {}
|
|
|
|
func (x *CreateTagsReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_generate_protobuf_product_proto_msgTypes[8]
|
|
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 CreateTagsReq.ProtoReflect.Descriptor instead.
|
|
func (*CreateTagsReq) Descriptor() ([]byte, []int) {
|
|
return file_generate_protobuf_product_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *CreateTagsReq) GetTypes() int32 {
|
|
if x != nil {
|
|
return x.Types
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateTagsReq) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateTagsReq) GetShowType() int64 {
|
|
if x != nil {
|
|
return x.ShowType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateTagsReq) GetCover() string {
|
|
if x != nil && x.Cover != nil {
|
|
return *x.Cover
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ModifyTagsReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Types *int32 `protobuf:"varint,2,opt,name=types,proto3,oneof" json:"types,omitempty"`
|
|
Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
|
|
ShowType *int64 `protobuf:"varint,4,opt,name=show_type,json=showType,proto3,oneof" json:"show_type,omitempty"`
|
|
Cover *string `protobuf:"bytes,5,opt,name=cover,proto3,oneof" json:"cover,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ModifyTagsReq) Reset() {
|
|
*x = ModifyTagsReq{}
|
|
mi := &file_generate_protobuf_product_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ModifyTagsReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ModifyTagsReq) ProtoMessage() {}
|
|
|
|
func (x *ModifyTagsReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_generate_protobuf_product_proto_msgTypes[9]
|
|
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 ModifyTagsReq.ProtoReflect.Descriptor instead.
|
|
func (*ModifyTagsReq) Descriptor() ([]byte, []int) {
|
|
return file_generate_protobuf_product_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *ModifyTagsReq) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ModifyTagsReq) GetTypes() int32 {
|
|
if x != nil && x.Types != nil {
|
|
return *x.Types
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ModifyTagsReq) GetName() string {
|
|
if x != nil && x.Name != nil {
|
|
return *x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ModifyTagsReq) GetShowType() int64 {
|
|
if x != nil && x.ShowType != nil {
|
|
return *x.ShowType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ModifyTagsReq) GetCover() string {
|
|
if x != nil && x.Cover != nil {
|
|
return *x.Cover
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TagsReq 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 *TagsReq) Reset() {
|
|
*x = TagsReq{}
|
|
mi := &file_generate_protobuf_product_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TagsReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TagsReq) ProtoMessage() {}
|
|
|
|
func (x *TagsReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_generate_protobuf_product_proto_msgTypes[10]
|
|
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 TagsReq.ProtoReflect.Descriptor instead.
|
|
func (*TagsReq) Descriptor() ([]byte, []int) {
|
|
return file_generate_protobuf_product_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *TagsReq) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Tags struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Types int32 `protobuf:"varint,2,opt,name=types,proto3" json:"types,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
ShowType int64 `protobuf:"varint,4,opt,name=show_type,json=showType,proto3" json:"show_type,omitempty"`
|
|
Cover string `protobuf:"bytes,5,opt,name=cover,proto3" json:"cover,omitempty"`
|
|
UpdateAt int64 `protobuf:"varint,6,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty"`
|
|
CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Tags) Reset() {
|
|
*x = Tags{}
|
|
mi := &file_generate_protobuf_product_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Tags) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Tags) ProtoMessage() {}
|
|
|
|
func (x *Tags) ProtoReflect() protoreflect.Message {
|
|
mi := &file_generate_protobuf_product_proto_msgTypes[11]
|
|
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 Tags.ProtoReflect.Descriptor instead.
|
|
func (*Tags) Descriptor() ([]byte, []int) {
|
|
return file_generate_protobuf_product_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *Tags) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Tags) GetTypes() int32 {
|
|
if x != nil {
|
|
return x.Types
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Tags) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Tags) GetShowType() int64 {
|
|
if x != nil {
|
|
return x.ShowType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Tags) GetCover() string {
|
|
if x != nil {
|
|
return x.Cover
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Tags) GetUpdateAt() int64 {
|
|
if x != nil {
|
|
return x.UpdateAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Tags) GetCreatedAt() int64 {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListTagsReq 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"`
|
|
Name *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"`
|
|
Types *int32 `protobuf:"varint,5,opt,name=types,proto3,oneof" json:"types,omitempty"`
|
|
ShowType *int64 `protobuf:"varint,6,opt,name=show_type,json=showType,proto3,oneof" json:"show_type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListTagsReq) Reset() {
|
|
*x = ListTagsReq{}
|
|
mi := &file_generate_protobuf_product_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListTagsReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListTagsReq) ProtoMessage() {}
|
|
|
|
func (x *ListTagsReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_generate_protobuf_product_proto_msgTypes[12]
|
|
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 ListTagsReq.ProtoReflect.Descriptor instead.
|
|
func (*ListTagsReq) Descriptor() ([]byte, []int) {
|
|
return file_generate_protobuf_product_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *ListTagsReq) GetPageIndex() int64 {
|
|
if x != nil {
|
|
return x.PageIndex
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListTagsReq) GetPageSize() int64 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListTagsReq) GetIds() []string {
|
|
if x != nil {
|
|
return x.Ids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListTagsReq) GetName() string {
|
|
if x != nil && x.Name != nil {
|
|
return *x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListTagsReq) GetTypes() int32 {
|
|
if x != nil && x.Types != nil {
|
|
return *x.Types
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListTagsReq) GetShowType() int64 {
|
|
if x != nil && x.ShowType != nil {
|
|
return *x.ShowType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListTagsResp struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
|
|
Data []*Tags `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListTagsResp) Reset() {
|
|
*x = ListTagsResp{}
|
|
mi := &file_generate_protobuf_product_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListTagsResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListTagsResp) ProtoMessage() {}
|
|
|
|
func (x *ListTagsResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_generate_protobuf_product_proto_msgTypes[13]
|
|
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 ListTagsResp.ProtoReflect.Descriptor instead.
|
|
func (*ListTagsResp) Descriptor() ([]byte, []int) {
|
|
return file_generate_protobuf_product_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *ListTagsResp) GetTotal() int64 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListTagsResp) GetData() []*Tags {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_generate_protobuf_product_proto protoreflect.FileDescriptor
|
|
|
|
var file_generate_protobuf_product_proto_rawDesc = string([]byte{
|
|
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,
|
|
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,
|
|
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, 0x22, 0x7b, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61,
|
|
0x67, 0x73, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01,
|
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e,
|
|
0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
|
|
0x1b, 0x0a, 0x09, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
|
|
0x28, 0x03, 0x52, 0x08, 0x73, 0x68, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x05,
|
|
0x63, 0x6f, 0x76, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x63,
|
|
0x6f, 0x76, 0x65, 0x72, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x63, 0x6f, 0x76, 0x65,
|
|
0x72, 0x22, 0xbb, 0x01, 0x0a, 0x0d, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x54, 0x61, 0x67, 0x73,
|
|
0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01,
|
|
0x28, 0x05, 0x48, 0x00, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x17,
|
|
0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x04,
|
|
0x6e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x73, 0x68, 0x6f, 0x77, 0x5f,
|
|
0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x02, 0x52, 0x08, 0x73, 0x68,
|
|
0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x63, 0x6f, 0x76,
|
|
0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x76, 0x65,
|
|
0x72, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x42, 0x07,
|
|
0x0a, 0x05, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x73, 0x68, 0x6f, 0x77,
|
|
0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x22,
|
|
0x19, 0x0a, 0x07, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xaf, 0x01, 0x0a, 0x04, 0x54,
|
|
0x61, 0x67, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01,
|
|
0x28, 0x05, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
|
|
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a,
|
|
0x09, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03,
|
|
0x52, 0x08, 0x73, 0x68, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f,
|
|
0x76, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x76, 0x65, 0x72,
|
|
0x12, 0x1b, 0x0a, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20,
|
|
0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x1d, 0x0a,
|
|
0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28,
|
|
0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0xd2, 0x01, 0x0a,
|
|
0x0b, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x67, 0x73, 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, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61,
|
|
0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
|
|
0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01,
|
|
0x28, 0x05, 0x48, 0x01, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x20,
|
|
0x0a, 0x09, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
|
|
0x03, 0x48, 0x02, 0x52, 0x08, 0x73, 0x68, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01,
|
|
0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x74, 0x79,
|
|
0x70, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70,
|
|
0x65, 0x22, 0x47, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x67, 0x73, 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, 0x21, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
|
|
0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e,
|
|
0x54, 0x61, 0x67, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0xc1, 0x04, 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, 0x12, 0x35, 0x0a, 0x0a, 0x43, 0x72,
|
|
0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x67, 0x73, 0x12, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75,
|
|
0x63, 0x74, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x71,
|
|
0x1a, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73,
|
|
0x70, 0x12, 0x35, 0x0a, 0x0a, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x54, 0x61, 0x67, 0x73, 0x12,
|
|
0x16, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79,
|
|
0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63,
|
|
0x74, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2f, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65,
|
|
0x74, 0x65, 0x54, 0x61, 0x67, 0x73, 0x12, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
|
|
0x2e, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75,
|
|
0x63, 0x74, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x07, 0x47, 0x65, 0x74,
|
|
0x54, 0x61, 0x67, 0x73, 0x12, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x54,
|
|
0x61, 0x67, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x0d, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
|
|
0x2e, 0x54, 0x61, 0x67, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x67,
|
|
0x73, 0x12, 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74,
|
|
0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63,
|
|
0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x67, 0x73, 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,
|
|
})
|
|
|
|
var (
|
|
file_generate_protobuf_product_proto_rawDescOnce sync.Once
|
|
file_generate_protobuf_product_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_generate_protobuf_product_proto_rawDescGZIP() []byte {
|
|
file_generate_protobuf_product_proto_rawDescOnce.Do(func() {
|
|
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)))
|
|
})
|
|
return file_generate_protobuf_product_proto_rawDescData
|
|
}
|
|
|
|
var file_generate_protobuf_product_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
|
var file_generate_protobuf_product_proto_goTypes = []any{
|
|
(*OKResp)(nil), // 0: product.OKResp
|
|
(*NoneReq)(nil), // 1: product.NoneReq
|
|
(*CreateCategoryReq)(nil), // 2: product.CreateCategoryReq
|
|
(*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
|
|
(*CreateTagsReq)(nil), // 8: product.CreateTagsReq
|
|
(*ModifyTagsReq)(nil), // 9: product.ModifyTagsReq
|
|
(*TagsReq)(nil), // 10: product.TagsReq
|
|
(*Tags)(nil), // 11: product.Tags
|
|
(*ListTagsReq)(nil), // 12: product.ListTagsReq
|
|
(*ListTagsResp)(nil), // 13: product.ListTagsResp
|
|
}
|
|
var file_generate_protobuf_product_proto_depIdxs = []int32{
|
|
5, // 0: product.ListCategoryResp.data:type_name -> product.Category
|
|
11, // 1: product.ListTagsResp.data:type_name -> product.Tags
|
|
2, // 2: product.Product.CreateCategory:input_type -> product.CreateCategoryReq
|
|
3, // 3: product.Product.ModifyCategory:input_type -> product.ModifyCategoryReq
|
|
4, // 4: product.Product.DeleteCategory:input_type -> product.CategoryReq
|
|
4, // 5: product.Product.GetCategory:input_type -> product.CategoryReq
|
|
6, // 6: product.Product.ListCategory:input_type -> product.ListCategoryReq
|
|
8, // 7: product.Product.CreateTags:input_type -> product.CreateTagsReq
|
|
9, // 8: product.Product.ModifyTags:input_type -> product.ModifyTagsReq
|
|
10, // 9: product.Product.DeleteTags:input_type -> product.TagsReq
|
|
10, // 10: product.Product.GetTags:input_type -> product.TagsReq
|
|
12, // 11: product.Product.ListTags:input_type -> product.ListTagsReq
|
|
0, // 12: product.Product.CreateCategory:output_type -> product.OKResp
|
|
0, // 13: product.Product.ModifyCategory:output_type -> product.OKResp
|
|
0, // 14: product.Product.DeleteCategory:output_type -> product.OKResp
|
|
5, // 15: product.Product.GetCategory:output_type -> product.Category
|
|
7, // 16: product.Product.ListCategory:output_type -> product.ListCategoryResp
|
|
0, // 17: product.Product.CreateTags:output_type -> product.OKResp
|
|
0, // 18: product.Product.ModifyTags:output_type -> product.OKResp
|
|
0, // 19: product.Product.DeleteTags:output_type -> product.OKResp
|
|
11, // 20: product.Product.GetTags:output_type -> product.Tags
|
|
13, // 21: product.Product.ListTags:output_type -> product.ListTagsResp
|
|
12, // [12:22] is the sub-list for method output_type
|
|
2, // [2:12] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_generate_protobuf_product_proto_init() }
|
|
func file_generate_protobuf_product_proto_init() {
|
|
if File_generate_protobuf_product_proto != nil {
|
|
return
|
|
}
|
|
file_generate_protobuf_product_proto_msgTypes[8].OneofWrappers = []any{}
|
|
file_generate_protobuf_product_proto_msgTypes[9].OneofWrappers = []any{}
|
|
file_generate_protobuf_product_proto_msgTypes[12].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_generate_protobuf_product_proto_rawDesc), len(file_generate_protobuf_product_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 14,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_generate_protobuf_product_proto_goTypes,
|
|
DependencyIndexes: file_generate_protobuf_product_proto_depIdxs,
|
|
MessageInfos: file_generate_protobuf_product_proto_msgTypes,
|
|
}.Build()
|
|
File_generate_protobuf_product_proto = out.File
|
|
file_generate_protobuf_product_proto_goTypes = nil
|
|
file_generate_protobuf_product_proto_depIdxs = nil
|
|
}
|