384 lines
12 KiB
Go
384 lines
12 KiB
Go
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|||
|
|
// versions:
|
|||
|
|
// protoc-gen-go v1.36.8
|
|||
|
|
// protoc (unknown)
|
|||
|
|
// source: category.proto
|
|||
|
|
|
|||
|
|
package mall
|
|||
|
|
|
|||
|
|
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)
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
type CategoryFetchRequest struct {
|
|||
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|||
|
|
Types string `protobuf:"bytes,1,opt,name=types,proto3" json:"types,omitempty"` // 需要的分类类型:all-所有分类(默认),first-一级分类
|
|||
|
|
Keywords string `protobuf:"bytes,2,opt,name=keywords,proto3" json:"keywords,omitempty"` // 关键字
|
|||
|
|
Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` // 需要被查询的id
|
|||
|
|
StoreIdentity string `protobuf:"bytes,4,opt,name=store_identity,proto3" json:"store_identity,omitempty"` // 店铺唯一标识
|
|||
|
|
unknownFields protoimpl.UnknownFields
|
|||
|
|
sizeCache protoimpl.SizeCache
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryFetchRequest) Reset() {
|
|||
|
|
*x = CategoryFetchRequest{}
|
|||
|
|
mi := &file_category_proto_msgTypes[0]
|
|||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|||
|
|
ms.StoreMessageInfo(mi)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryFetchRequest) String() string {
|
|||
|
|
return protoimpl.X.MessageStringOf(x)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (*CategoryFetchRequest) ProtoMessage() {}
|
|||
|
|
|
|||
|
|
func (x *CategoryFetchRequest) ProtoReflect() protoreflect.Message {
|
|||
|
|
mi := &file_category_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 CategoryFetchRequest.ProtoReflect.Descriptor instead.
|
|||
|
|
func (*CategoryFetchRequest) Descriptor() ([]byte, []int) {
|
|||
|
|
return file_category_proto_rawDescGZIP(), []int{0}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryFetchRequest) GetTypes() string {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.Types
|
|||
|
|
}
|
|||
|
|
return ""
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryFetchRequest) GetKeywords() string {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.Keywords
|
|||
|
|
}
|
|||
|
|
return ""
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryFetchRequest) GetId() int64 {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.Id
|
|||
|
|
}
|
|||
|
|
return 0
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryFetchRequest) GetStoreIdentity() string {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.StoreIdentity
|
|||
|
|
}
|
|||
|
|
return ""
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
type CategoryReply struct {
|
|||
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|||
|
|
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // 数量
|
|||
|
|
Data []*CategoryItem `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
|
|||
|
|
unknownFields protoimpl.UnknownFields
|
|||
|
|
sizeCache protoimpl.SizeCache
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryReply) Reset() {
|
|||
|
|
*x = CategoryReply{}
|
|||
|
|
mi := &file_category_proto_msgTypes[1]
|
|||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|||
|
|
ms.StoreMessageInfo(mi)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryReply) String() string {
|
|||
|
|
return protoimpl.X.MessageStringOf(x)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (*CategoryReply) ProtoMessage() {}
|
|||
|
|
|
|||
|
|
func (x *CategoryReply) ProtoReflect() protoreflect.Message {
|
|||
|
|
mi := &file_category_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 CategoryReply.ProtoReflect.Descriptor instead.
|
|||
|
|
func (*CategoryReply) Descriptor() ([]byte, []int) {
|
|||
|
|
return file_category_proto_rawDescGZIP(), []int{1}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryReply) GetCount() int64 {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.Count
|
|||
|
|
}
|
|||
|
|
return 0
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryReply) GetData() []*CategoryItem {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.Data
|
|||
|
|
}
|
|||
|
|
return nil
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
type CategoryItem struct {
|
|||
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|||
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //ID
|
|||
|
|
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
|
|||
|
|
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` //名称
|
|||
|
|
EnTitle string `protobuf:"bytes,4,opt,name=en_title,proto3" json:"en_title,omitempty"` //英文名称
|
|||
|
|
ParentId int64 `protobuf:"varint,5,opt,name=parent_id,proto3" json:"parent_id,omitempty"` //上级ID
|
|||
|
|
Paths string `protobuf:"bytes,6,opt,name=paths,proto3" json:"paths,omitempty"` //路径
|
|||
|
|
Intro string `protobuf:"bytes,7,opt,name=intro,proto3" json:"intro,omitempty"` //简介
|
|||
|
|
Icon string `protobuf:"bytes,8,opt,name=icon,proto3" json:"icon,omitempty"` //图标
|
|||
|
|
Sort int32 `protobuf:"varint,9,opt,name=sort,proto3" json:"sort,omitempty"` //排序
|
|||
|
|
Status int32 `protobuf:"varint,10,opt,name=status,proto3" json:"status,omitempty"` // 状态:1-正常,2停用
|
|||
|
|
CreatedAt string `protobuf:"bytes,11,opt,name=created_at,proto3" json:"created_at,omitempty"` // 创建时间
|
|||
|
|
Categories []*CategoryItem `protobuf:"bytes,12,rep,name=categories,proto3" json:"categories,omitempty"` // 子集
|
|||
|
|
Keys string `protobuf:"bytes,13,opt,name=keys,proto3" json:"keys,omitempty"` //关键词
|
|||
|
|
unknownFields protoimpl.UnknownFields
|
|||
|
|
sizeCache protoimpl.SizeCache
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryItem) Reset() {
|
|||
|
|
*x = CategoryItem{}
|
|||
|
|
mi := &file_category_proto_msgTypes[2]
|
|||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|||
|
|
ms.StoreMessageInfo(mi)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryItem) String() string {
|
|||
|
|
return protoimpl.X.MessageStringOf(x)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (*CategoryItem) ProtoMessage() {}
|
|||
|
|
|
|||
|
|
func (x *CategoryItem) ProtoReflect() protoreflect.Message {
|
|||
|
|
mi := &file_category_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 CategoryItem.ProtoReflect.Descriptor instead.
|
|||
|
|
func (*CategoryItem) Descriptor() ([]byte, []int) {
|
|||
|
|
return file_category_proto_rawDescGZIP(), []int{2}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryItem) GetId() int64 {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.Id
|
|||
|
|
}
|
|||
|
|
return 0
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryItem) GetIdentity() string {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.Identity
|
|||
|
|
}
|
|||
|
|
return ""
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryItem) GetTitle() string {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.Title
|
|||
|
|
}
|
|||
|
|
return ""
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryItem) GetEnTitle() string {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.EnTitle
|
|||
|
|
}
|
|||
|
|
return ""
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryItem) GetParentId() int64 {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.ParentId
|
|||
|
|
}
|
|||
|
|
return 0
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryItem) GetPaths() string {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.Paths
|
|||
|
|
}
|
|||
|
|
return ""
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryItem) GetIntro() string {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.Intro
|
|||
|
|
}
|
|||
|
|
return ""
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryItem) GetIcon() string {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.Icon
|
|||
|
|
}
|
|||
|
|
return ""
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryItem) GetSort() int32 {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.Sort
|
|||
|
|
}
|
|||
|
|
return 0
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryItem) GetStatus() int32 {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.Status
|
|||
|
|
}
|
|||
|
|
return 0
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryItem) GetCreatedAt() string {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.CreatedAt
|
|||
|
|
}
|
|||
|
|
return ""
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryItem) GetCategories() []*CategoryItem {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.Categories
|
|||
|
|
}
|
|||
|
|
return nil
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (x *CategoryItem) GetKeys() string {
|
|||
|
|
if x != nil {
|
|||
|
|
return x.Keys
|
|||
|
|
}
|
|||
|
|
return ""
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
var File_category_proto protoreflect.FileDescriptor
|
|||
|
|
|
|||
|
|
const file_category_proto_rawDesc = "" +
|
|||
|
|
"\n" +
|
|||
|
|
"\x16ec/mall/category.proto\x12\x04mall\x1a\x11mall/blocks.proto\"\x80\x01\n" +
|
|||
|
|
"\x14CategoryFetchRequest\x12\x14\n" +
|
|||
|
|
"\x05types\x18\x01 \x01(\tR\x05types\x12\x1a\n" +
|
|||
|
|
"\bkeywords\x18\x02 \x01(\tR\bkeywords\x12\x0e\n" +
|
|||
|
|
"\x02id\x18\x03 \x01(\x03R\x02id\x12&\n" +
|
|||
|
|
"\x0estore_identity\x18\x04 \x01(\tR\x0estore_identity\"M\n" +
|
|||
|
|
"\rCategoryReply\x12\x14\n" +
|
|||
|
|
"\x05count\x18\x01 \x01(\x03R\x05count\x12&\n" +
|
|||
|
|
"\x04data\x18\x02 \x03(\v2\x12.mall.CategoryItemR\x04data\"\xde\x02\n" +
|
|||
|
|
"\fCategoryItem\x12\x0e\n" +
|
|||
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
|||
|
|
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x14\n" +
|
|||
|
|
"\x05title\x18\x03 \x01(\tR\x05title\x12\x1a\n" +
|
|||
|
|
"\ben_title\x18\x04 \x01(\tR\ben_title\x12\x1c\n" +
|
|||
|
|
"\tparent_id\x18\x05 \x01(\x03R\tparent_id\x12\x14\n" +
|
|||
|
|
"\x05paths\x18\x06 \x01(\tR\x05paths\x12\x14\n" +
|
|||
|
|
"\x05intro\x18\a \x01(\tR\x05intro\x12\x12\n" +
|
|||
|
|
"\x04icon\x18\b \x01(\tR\x04icon\x12\x12\n" +
|
|||
|
|
"\x04sort\x18\t \x01(\x05R\x04sort\x12\x16\n" +
|
|||
|
|
"\x06status\x18\n" +
|
|||
|
|
" \x01(\x05R\x06status\x12\x1e\n" +
|
|||
|
|
"\n" +
|
|||
|
|
"created_at\x18\v \x01(\tR\n" +
|
|||
|
|
"created_at\x122\n" +
|
|||
|
|
"\n" +
|
|||
|
|
"categories\x18\f \x03(\v2\x12.mall.CategoryItemR\n" +
|
|||
|
|
"categories\x12\x12\n" +
|
|||
|
|
"\x04keys\x18\r \x01(\tR\x04keys2\xdf\x01\n" +
|
|||
|
|
"\bCategory\x12:\n" +
|
|||
|
|
"\x05Fetch\x12\x1a.mall.CategoryFetchRequest\x1a\x13.mall.CategoryReply\"\x00\x121\n" +
|
|||
|
|
"\x06Create\x12\x12.mall.CategoryItem\x1a\x11.mall.StatusReply\"\x00\x121\n" +
|
|||
|
|
"\x06Delete\x12\x12.mall.IdentRequest\x1a\x11.mall.StatusReply\"\x00\x121\n" +
|
|||
|
|
"\x06Modify\x12\x12.mall.CategoryItem\x1a\x11.mall.StatusReply\"\x00B\bZ\x06.;mallb\x06proto3"
|
|||
|
|
|
|||
|
|
var (
|
|||
|
|
file_category_proto_rawDescOnce sync.Once
|
|||
|
|
file_category_proto_rawDescData []byte
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
func file_category_proto_rawDescGZIP() []byte {
|
|||
|
|
file_category_proto_rawDescOnce.Do(func() {
|
|||
|
|
file_category_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_category_proto_rawDesc), len(file_category_proto_rawDesc)))
|
|||
|
|
})
|
|||
|
|
return file_category_proto_rawDescData
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
var file_category_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|||
|
|
var file_category_proto_goTypes = []any{
|
|||
|
|
(*CategoryFetchRequest)(nil), // 0: mall.CategoryFetchRequest
|
|||
|
|
(*CategoryReply)(nil), // 1: mall.CategoryReply
|
|||
|
|
(*CategoryItem)(nil), // 2: mall.CategoryItem
|
|||
|
|
(*IdentRequest)(nil), // 3: mall.IdentRequest
|
|||
|
|
(*StatusReply)(nil), // 4: mall.StatusReply
|
|||
|
|
}
|
|||
|
|
var file_category_proto_depIdxs = []int32{
|
|||
|
|
2, // 0: mall.CategoryReply.data:type_name -> mall.CategoryItem
|
|||
|
|
2, // 1: mall.CategoryItem.categories:type_name -> mall.CategoryItem
|
|||
|
|
0, // 2: mall.Category.Fetch:input_type -> mall.CategoryFetchRequest
|
|||
|
|
2, // 3: mall.Category.Create:input_type -> mall.CategoryItem
|
|||
|
|
3, // 4: mall.Category.Delete:input_type -> mall.IdentRequest
|
|||
|
|
2, // 5: mall.Category.Modify:input_type -> mall.CategoryItem
|
|||
|
|
1, // 6: mall.Category.Fetch:output_type -> mall.CategoryReply
|
|||
|
|
4, // 7: mall.Category.Create:output_type -> mall.StatusReply
|
|||
|
|
4, // 8: mall.Category.Delete:output_type -> mall.StatusReply
|
|||
|
|
4, // 9: mall.Category.Modify:output_type -> mall.StatusReply
|
|||
|
|
6, // [6:10] is the sub-list for method output_type
|
|||
|
|
2, // [2:6] 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_category_proto_init() }
|
|||
|
|
func file_category_proto_init() {
|
|||
|
|
if File_category_proto != nil {
|
|||
|
|
return
|
|||
|
|
}
|
|||
|
|
file_blocks_proto_init()
|
|||
|
|
type x struct{}
|
|||
|
|
out := protoimpl.TypeBuilder{
|
|||
|
|
File: protoimpl.DescBuilder{
|
|||
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|||
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_category_proto_rawDesc), len(file_category_proto_rawDesc)),
|
|||
|
|
NumEnums: 0,
|
|||
|
|
NumMessages: 3,
|
|||
|
|
NumExtensions: 0,
|
|||
|
|
NumServices: 1,
|
|||
|
|
},
|
|||
|
|
GoTypes: file_category_proto_goTypes,
|
|||
|
|
DependencyIndexes: file_category_proto_depIdxs,
|
|||
|
|
MessageInfos: file_category_proto_msgTypes,
|
|||
|
|
}.Build()
|
|||
|
|
File_category_proto = out.File
|
|||
|
|
file_category_proto_goTypes = nil
|
|||
|
|
file_category_proto_depIdxs = nil
|
|||
|
|
}
|