752 lines
		
	
	
		
			21 KiB
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			752 lines
		
	
	
		
			21 KiB
		
	
	
	
		
			Go
		
	
	
	
| // Code generated by protoc-gen-go. DO NOT EDIT.
 | |
| // versions:
 | |
| // 	protoc-gen-go v1.36.8
 | |
| // 	protoc        (unknown)
 | |
| // source: blocks.proto
 | |
| 
 | |
| package cms
 | |
| 
 | |
| 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 FetchRequest struct {
 | |
| 	state         protoimpl.MessageState `protogen:"open.v1"`
 | |
| 	PageNo        int64                  `protobuf:"varint,1,opt,name=page_no,proto3" json:"page_no,omitempty"`                                                                        // 页数
 | |
| 	PageSize      int64                  `protobuf:"varint,2,opt,name=page_size,proto3" json:"page_size,omitempty"`                                                                    // 每页记录数
 | |
| 	Params        map[string]string      `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // 条件参数,key=val,eg key:category_id=?,vlaue=11
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| }
 | |
| 
 | |
| func (x *FetchRequest) Reset() {
 | |
| 	*x = FetchRequest{}
 | |
| 	mi := &file_blocks_proto_msgTypes[0]
 | |
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 	ms.StoreMessageInfo(mi)
 | |
| }
 | |
| 
 | |
| func (x *FetchRequest) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*FetchRequest) ProtoMessage() {}
 | |
| 
 | |
| func (x *FetchRequest) ProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_blocks_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 FetchRequest.ProtoReflect.Descriptor instead.
 | |
| func (*FetchRequest) Descriptor() ([]byte, []int) {
 | |
| 	return file_blocks_proto_rawDescGZIP(), []int{0}
 | |
| }
 | |
| 
 | |
| func (x *FetchRequest) GetPageNo() int64 {
 | |
| 	if x != nil {
 | |
| 		return x.PageNo
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *FetchRequest) GetPageSize() int64 {
 | |
| 	if x != nil {
 | |
| 		return x.PageSize
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *FetchRequest) GetParams() map[string]string {
 | |
| 	if x != nil {
 | |
| 		return x.Params
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| // 唯一标识请求参数
 | |
| type IdentRequest 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"` // 唯一标识
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| }
 | |
| 
 | |
| func (x *IdentRequest) Reset() {
 | |
| 	*x = IdentRequest{}
 | |
| 	mi := &file_blocks_proto_msgTypes[1]
 | |
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 	ms.StoreMessageInfo(mi)
 | |
| }
 | |
| 
 | |
| func (x *IdentRequest) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*IdentRequest) ProtoMessage() {}
 | |
| 
 | |
| func (x *IdentRequest) ProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_blocks_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 IdentRequest.ProtoReflect.Descriptor instead.
 | |
| func (*IdentRequest) Descriptor() ([]byte, []int) {
 | |
| 	return file_blocks_proto_rawDescGZIP(), []int{1}
 | |
| }
 | |
| 
 | |
| func (x *IdentRequest) GetId() int64 {
 | |
| 	if x != nil {
 | |
| 		return x.Id
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *IdentRequest) GetIdentity() string {
 | |
| 	if x != nil {
 | |
| 		return x.Identity
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| // 时序版本号请求参数
 | |
| type VersionRequest struct {
 | |
| 	state         protoimpl.MessageState `protogen:"open.v1"`
 | |
| 	Version       int64                  `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // 时序版本号
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| }
 | |
| 
 | |
| func (x *VersionRequest) Reset() {
 | |
| 	*x = VersionRequest{}
 | |
| 	mi := &file_blocks_proto_msgTypes[2]
 | |
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 	ms.StoreMessageInfo(mi)
 | |
| }
 | |
| 
 | |
| func (x *VersionRequest) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*VersionRequest) ProtoMessage() {}
 | |
| 
 | |
| func (x *VersionRequest) ProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_blocks_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 VersionRequest.ProtoReflect.Descriptor instead.
 | |
| func (*VersionRequest) Descriptor() ([]byte, []int) {
 | |
| 	return file_blocks_proto_rawDescGZIP(), []int{2}
 | |
| }
 | |
| 
 | |
| func (x *VersionRequest) GetVersion() int64 {
 | |
| 	if x != nil {
 | |
| 		return x.Version
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| // 搜索请求参数
 | |
| type SearchRequest struct {
 | |
| 	state         protoimpl.MessageState `protogen:"open.v1"`
 | |
| 	Keyword       string                 `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"`      //<必传>, 关键词
 | |
| 	PageNo        int64                  `protobuf:"varint,2,opt,name=page_no,proto3" json:"page_no,omitempty"`     // 页数
 | |
| 	PageSize      int64                  `protobuf:"varint,3,opt,name=page_size,proto3" json:"page_size,omitempty"` // 每页记录数
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| }
 | |
| 
 | |
| func (x *SearchRequest) Reset() {
 | |
| 	*x = SearchRequest{}
 | |
| 	mi := &file_blocks_proto_msgTypes[3]
 | |
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 	ms.StoreMessageInfo(mi)
 | |
| }
 | |
| 
 | |
| func (x *SearchRequest) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*SearchRequest) ProtoMessage() {}
 | |
| 
 | |
| func (x *SearchRequest) ProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_blocks_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 SearchRequest.ProtoReflect.Descriptor instead.
 | |
| func (*SearchRequest) Descriptor() ([]byte, []int) {
 | |
| 	return file_blocks_proto_rawDescGZIP(), []int{3}
 | |
| }
 | |
| 
 | |
| func (x *SearchRequest) GetKeyword() string {
 | |
| 	if x != nil {
 | |
| 		return x.Keyword
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *SearchRequest) GetPageNo() int64 {
 | |
| 	if x != nil {
 | |
| 		return x.PageNo
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *SearchRequest) GetPageSize() int64 {
 | |
| 	if x != nil {
 | |
| 		return x.PageSize
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| // 标准回执
 | |
| type StatusReply struct {
 | |
| 	state         protoimpl.MessageState `protogen:"open.v1"`
 | |
| 	Code          int32                  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`        // 状态码
 | |
| 	Identity      string                 `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // 标识码
 | |
| 	Message       string                 `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`   //状态说明
 | |
| 	Timeseq       int64                  `protobuf:"varint,4,opt,name=timeseq,proto3" json:"timeseq,omitempty"`  // 响应时间序列
 | |
| 	Count         int64                  `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`      // 数量
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| }
 | |
| 
 | |
| func (x *StatusReply) Reset() {
 | |
| 	*x = StatusReply{}
 | |
| 	mi := &file_blocks_proto_msgTypes[4]
 | |
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 	ms.StoreMessageInfo(mi)
 | |
| }
 | |
| 
 | |
| func (x *StatusReply) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*StatusReply) ProtoMessage() {}
 | |
| 
 | |
| func (x *StatusReply) ProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_blocks_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 StatusReply.ProtoReflect.Descriptor instead.
 | |
| func (*StatusReply) Descriptor() ([]byte, []int) {
 | |
| 	return file_blocks_proto_rawDescGZIP(), []int{4}
 | |
| }
 | |
| 
 | |
| func (x *StatusReply) GetCode() int32 {
 | |
| 	if x != nil {
 | |
| 		return x.Code
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *StatusReply) GetIdentity() string {
 | |
| 	if x != nil {
 | |
| 		return x.Identity
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *StatusReply) GetMessage() string {
 | |
| 	if x != nil {
 | |
| 		return x.Message
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *StatusReply) GetTimeseq() int64 {
 | |
| 	if x != nil {
 | |
| 		return x.Timeseq
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *StatusReply) GetCount() int64 {
 | |
| 	if x != nil {
 | |
| 		return x.Count
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| // 空结构请求
 | |
| type Empty struct {
 | |
| 	state         protoimpl.MessageState `protogen:"open.v1"`
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| }
 | |
| 
 | |
| func (x *Empty) Reset() {
 | |
| 	*x = Empty{}
 | |
| 	mi := &file_blocks_proto_msgTypes[5]
 | |
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 	ms.StoreMessageInfo(mi)
 | |
| }
 | |
| 
 | |
| func (x *Empty) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*Empty) ProtoMessage() {}
 | |
| 
 | |
| func (x *Empty) ProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_blocks_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 Empty.ProtoReflect.Descriptor instead.
 | |
| func (*Empty) Descriptor() ([]byte, []int) {
 | |
| 	return file_blocks_proto_rawDescGZIP(), []int{5}
 | |
| }
 | |
| 
 | |
| // 分类
 | |
| type CategoryItem struct {
 | |
| 	state         protoimpl.MessageState `protogen:"open.v1"`
 | |
| 	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	Identity      string                 `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`          // 唯一标识
 | |
| 	ParentId      int64                  `protobuf:"varint,3,opt,name=parent_id,proto3" json:"parent_id,omitempty"`       // 为空表示顶级分类
 | |
| 	Title         string                 `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`                // 标题
 | |
| 	CoverPath     string                 `protobuf:"bytes,5,opt,name=cover_path,proto3" json:"cover_path,omitempty"`      // 封面图片
 | |
| 	Intro         string                 `protobuf:"bytes,6,opt,name=intro,proto3" json:"intro,omitempty"`                // 简介
 | |
| 	CreatedAt     string                 `protobuf:"bytes,7,opt,name=created_at,proto3" json:"created_at,omitempty"`      // 创建时间
 | |
| 	UpdatedAt     string                 `protobuf:"bytes,8,opt,name=updated_at,proto3" json:"updated_at,omitempty"`      // 更新时间
 | |
| 	Child         []*CategoryItem        `protobuf:"bytes,9,rep,name=child,proto3" json:"child,omitempty"`                // 子集
 | |
| 	CategoryKey   string                 `protobuf:"bytes,10,opt,name=category_key,proto3" json:"category_key,omitempty"` // 分类标识
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| }
 | |
| 
 | |
| func (x *CategoryItem) Reset() {
 | |
| 	*x = CategoryItem{}
 | |
| 	mi := &file_blocks_proto_msgTypes[6]
 | |
| 	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_blocks_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 CategoryItem.ProtoReflect.Descriptor instead.
 | |
| func (*CategoryItem) Descriptor() ([]byte, []int) {
 | |
| 	return file_blocks_proto_rawDescGZIP(), []int{6}
 | |
| }
 | |
| 
 | |
| 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) GetParentId() int64 {
 | |
| 	if x != nil {
 | |
| 		return x.ParentId
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *CategoryItem) GetTitle() string {
 | |
| 	if x != nil {
 | |
| 		return x.Title
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *CategoryItem) GetCoverPath() string {
 | |
| 	if x != nil {
 | |
| 		return x.CoverPath
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *CategoryItem) GetIntro() string {
 | |
| 	if x != nil {
 | |
| 		return x.Intro
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *CategoryItem) GetCreatedAt() string {
 | |
| 	if x != nil {
 | |
| 		return x.CreatedAt
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *CategoryItem) GetUpdatedAt() string {
 | |
| 	if x != nil {
 | |
| 		return x.UpdatedAt
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *CategoryItem) GetChild() []*CategoryItem {
 | |
| 	if x != nil {
 | |
| 		return x.Child
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *CategoryItem) GetCategoryKey() string {
 | |
| 	if x != nil {
 | |
| 		return x.CategoryKey
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| // 标签
 | |
| type TagsItem struct {
 | |
| 	state         protoimpl.MessageState `protogen:"open.v1"`
 | |
| 	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	Identity      string                 `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`     // 唯一标识
 | |
| 	Title         string                 `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`           // 标题
 | |
| 	CoverPath     string                 `protobuf:"bytes,4,opt,name=cover_path,proto3" json:"cover_path,omitempty"` // 封面图片
 | |
| 	Intro         string                 `protobuf:"bytes,5,opt,name=intro,proto3" json:"intro,omitempty"`           // 简介
 | |
| 	CreatedAt     string                 `protobuf:"bytes,6,opt,name=created_at,proto3" json:"created_at,omitempty"` //创建时间
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| }
 | |
| 
 | |
| func (x *TagsItem) Reset() {
 | |
| 	*x = TagsItem{}
 | |
| 	mi := &file_blocks_proto_msgTypes[7]
 | |
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 	ms.StoreMessageInfo(mi)
 | |
| }
 | |
| 
 | |
| func (x *TagsItem) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*TagsItem) ProtoMessage() {}
 | |
| 
 | |
| func (x *TagsItem) ProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_blocks_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 TagsItem.ProtoReflect.Descriptor instead.
 | |
| func (*TagsItem) Descriptor() ([]byte, []int) {
 | |
| 	return file_blocks_proto_rawDescGZIP(), []int{7}
 | |
| }
 | |
| 
 | |
| func (x *TagsItem) GetId() int64 {
 | |
| 	if x != nil {
 | |
| 		return x.Id
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *TagsItem) GetIdentity() string {
 | |
| 	if x != nil {
 | |
| 		return x.Identity
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *TagsItem) GetTitle() string {
 | |
| 	if x != nil {
 | |
| 		return x.Title
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *TagsItem) GetCoverPath() string {
 | |
| 	if x != nil {
 | |
| 		return x.CoverPath
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *TagsItem) GetIntro() string {
 | |
| 	if x != nil {
 | |
| 		return x.Intro
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *TagsItem) GetCreatedAt() string {
 | |
| 	if x != nil {
 | |
| 		return x.CreatedAt
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| // 附件
 | |
| type AccessoryItem struct {
 | |
| 	state         protoimpl.MessageState `protogen:"open.v1"`
 | |
| 	Identity      string                 `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`     // 唯一标识
 | |
| 	Title         string                 `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`           // 附件标题
 | |
| 	FilePath      string                 `protobuf:"bytes,3,opt,name=file_path,proto3" json:"file_path,omitempty"`   // 附件文件路径
 | |
| 	CreatedAt     string                 `protobuf:"bytes,4,opt,name=created_at,proto3" json:"created_at,omitempty"` //创建时间
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| }
 | |
| 
 | |
| func (x *AccessoryItem) Reset() {
 | |
| 	*x = AccessoryItem{}
 | |
| 	mi := &file_blocks_proto_msgTypes[8]
 | |
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 	ms.StoreMessageInfo(mi)
 | |
| }
 | |
| 
 | |
| func (x *AccessoryItem) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*AccessoryItem) ProtoMessage() {}
 | |
| 
 | |
| func (x *AccessoryItem) ProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_blocks_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 AccessoryItem.ProtoReflect.Descriptor instead.
 | |
| func (*AccessoryItem) Descriptor() ([]byte, []int) {
 | |
| 	return file_blocks_proto_rawDescGZIP(), []int{8}
 | |
| }
 | |
| 
 | |
| func (x *AccessoryItem) GetIdentity() string {
 | |
| 	if x != nil {
 | |
| 		return x.Identity
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *AccessoryItem) GetTitle() string {
 | |
| 	if x != nil {
 | |
| 		return x.Title
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *AccessoryItem) GetFilePath() string {
 | |
| 	if x != nil {
 | |
| 		return x.FilePath
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *AccessoryItem) GetCreatedAt() string {
 | |
| 	if x != nil {
 | |
| 		return x.CreatedAt
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| var File_blocks_proto protoreflect.FileDescriptor
 | |
| 
 | |
| const file_blocks_proto_rawDesc = "" +
 | |
| 	"\n" +
 | |
| 	"\fblocks.proto\x12\x03cms\"\xb8\x01\n" +
 | |
| 	"\fFetchRequest\x12\x18\n" +
 | |
| 	"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
 | |
| 	"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x125\n" +
 | |
| 	"\x06params\x18\x03 \x03(\v2\x1d.cms.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
 | |
| 	"\vParamsEntry\x12\x10\n" +
 | |
| 	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
 | |
| 	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\":\n" +
 | |
| 	"\fIdentRequest\x12\x0e\n" +
 | |
| 	"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
 | |
| 	"\bidentity\x18\x02 \x01(\tR\bidentity\"*\n" +
 | |
| 	"\x0eVersionRequest\x12\x18\n" +
 | |
| 	"\aversion\x18\x01 \x01(\x03R\aversion\"a\n" +
 | |
| 	"\rSearchRequest\x12\x18\n" +
 | |
| 	"\akeyword\x18\x01 \x01(\tR\akeyword\x12\x18\n" +
 | |
| 	"\apage_no\x18\x02 \x01(\x03R\apage_no\x12\x1c\n" +
 | |
| 	"\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\x87\x01\n" +
 | |
| 	"\vStatusReply\x12\x12\n" +
 | |
| 	"\x04code\x18\x01 \x01(\x05R\x04code\x12\x1a\n" +
 | |
| 	"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x18\n" +
 | |
| 	"\amessage\x18\x03 \x01(\tR\amessage\x12\x18\n" +
 | |
| 	"\atimeseq\x18\x04 \x01(\x03R\atimeseq\x12\x14\n" +
 | |
| 	"\x05count\x18\x05 \x01(\x03R\x05count\"\a\n" +
 | |
| 	"\x05Empty\"\xb1\x02\n" +
 | |
| 	"\fCategoryItem\x12\x0e\n" +
 | |
| 	"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
 | |
| 	"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x1c\n" +
 | |
| 	"\tparent_id\x18\x03 \x01(\x03R\tparent_id\x12\x14\n" +
 | |
| 	"\x05title\x18\x04 \x01(\tR\x05title\x12\x1e\n" +
 | |
| 	"\n" +
 | |
| 	"cover_path\x18\x05 \x01(\tR\n" +
 | |
| 	"cover_path\x12\x14\n" +
 | |
| 	"\x05intro\x18\x06 \x01(\tR\x05intro\x12\x1e\n" +
 | |
| 	"\n" +
 | |
| 	"created_at\x18\a \x01(\tR\n" +
 | |
| 	"created_at\x12\x1e\n" +
 | |
| 	"\n" +
 | |
| 	"updated_at\x18\b \x01(\tR\n" +
 | |
| 	"updated_at\x12'\n" +
 | |
| 	"\x05child\x18\t \x03(\v2\x11.cms.CategoryItemR\x05child\x12\"\n" +
 | |
| 	"\fcategory_key\x18\n" +
 | |
| 	" \x01(\tR\fcategory_key\"\xa2\x01\n" +
 | |
| 	"\bTagsItem\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\x1e\n" +
 | |
| 	"\n" +
 | |
| 	"cover_path\x18\x04 \x01(\tR\n" +
 | |
| 	"cover_path\x12\x14\n" +
 | |
| 	"\x05intro\x18\x05 \x01(\tR\x05intro\x12\x1e\n" +
 | |
| 	"\n" +
 | |
| 	"created_at\x18\x06 \x01(\tR\n" +
 | |
| 	"created_at\"\x7f\n" +
 | |
| 	"\rAccessoryItem\x12\x1a\n" +
 | |
| 	"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x14\n" +
 | |
| 	"\x05title\x18\x02 \x01(\tR\x05title\x12\x1c\n" +
 | |
| 	"\tfile_path\x18\x03 \x01(\tR\tfile_path\x12\x1e\n" +
 | |
| 	"\n" +
 | |
| 	"created_at\x18\x04 \x01(\tR\n" +
 | |
| 	"created_atB\aZ\x05.;cmsb\x06proto3"
 | |
| 
 | |
| var (
 | |
| 	file_blocks_proto_rawDescOnce sync.Once
 | |
| 	file_blocks_proto_rawDescData []byte
 | |
| )
 | |
| 
 | |
| func file_blocks_proto_rawDescGZIP() []byte {
 | |
| 	file_blocks_proto_rawDescOnce.Do(func() {
 | |
| 		file_blocks_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc)))
 | |
| 	})
 | |
| 	return file_blocks_proto_rawDescData
 | |
| }
 | |
| 
 | |
| var file_blocks_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
 | |
| var file_blocks_proto_goTypes = []any{
 | |
| 	(*FetchRequest)(nil),   // 0: cms.FetchRequest
 | |
| 	(*IdentRequest)(nil),   // 1: cms.IdentRequest
 | |
| 	(*VersionRequest)(nil), // 2: cms.VersionRequest
 | |
| 	(*SearchRequest)(nil),  // 3: cms.SearchRequest
 | |
| 	(*StatusReply)(nil),    // 4: cms.StatusReply
 | |
| 	(*Empty)(nil),          // 5: cms.Empty
 | |
| 	(*CategoryItem)(nil),   // 6: cms.CategoryItem
 | |
| 	(*TagsItem)(nil),       // 7: cms.TagsItem
 | |
| 	(*AccessoryItem)(nil),  // 8: cms.AccessoryItem
 | |
| 	nil,                    // 9: cms.FetchRequest.ParamsEntry
 | |
| }
 | |
| var file_blocks_proto_depIdxs = []int32{
 | |
| 	9, // 0: cms.FetchRequest.params:type_name -> cms.FetchRequest.ParamsEntry
 | |
| 	6, // 1: cms.CategoryItem.child:type_name -> cms.CategoryItem
 | |
| 	2, // [2:2] is the sub-list for method output_type
 | |
| 	2, // [2:2] 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_blocks_proto_init() }
 | |
| func file_blocks_proto_init() {
 | |
| 	if File_blocks_proto != nil {
 | |
| 		return
 | |
| 	}
 | |
| 	type x struct{}
 | |
| 	out := protoimpl.TypeBuilder{
 | |
| 		File: protoimpl.DescBuilder{
 | |
| 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 | |
| 			RawDescriptor: unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc)),
 | |
| 			NumEnums:      0,
 | |
| 			NumMessages:   10,
 | |
| 			NumExtensions: 0,
 | |
| 			NumServices:   0,
 | |
| 		},
 | |
| 		GoTypes:           file_blocks_proto_goTypes,
 | |
| 		DependencyIndexes: file_blocks_proto_depIdxs,
 | |
| 		MessageInfos:      file_blocks_proto_msgTypes,
 | |
| 	}.Build()
 | |
| 	File_blocks_proto = out.File
 | |
| 	file_blocks_proto_goTypes = nil
 | |
| 	file_blocks_proto_depIdxs = nil
 | |
| }
 |