766 lines
24 KiB
Go
766 lines
24 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.11
|
||
// protoc v3.19.6
|
||
// source: service_post.proto
|
||
|
||
package pb
|
||
|
||
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 CreatePostRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
PostCategoryId int64 `protobuf:"varint,1,opt,name=postCategoryId,proto3" json:"postCategoryId,omitempty"` // 文章分类ID
|
||
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // 类型:normal, url
|
||
ProductCode string `protobuf:"bytes,3,opt,name=productCode,proto3" json:"productCode,omitempty"` // 产品代号
|
||
Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` // 标题
|
||
Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` // 跳转的URL(type=url)
|
||
Body string `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"` // 文章内容(type=normal)
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreatePostRequest) Reset() {
|
||
*x = CreatePostRequest{}
|
||
mi := &file_service_post_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreatePostRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreatePostRequest) ProtoMessage() {}
|
||
|
||
func (x *CreatePostRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_post_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 CreatePostRequest.ProtoReflect.Descriptor instead.
|
||
func (*CreatePostRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_post_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *CreatePostRequest) GetPostCategoryId() int64 {
|
||
if x != nil {
|
||
return x.PostCategoryId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *CreatePostRequest) GetType() string {
|
||
if x != nil {
|
||
return x.Type
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreatePostRequest) GetProductCode() string {
|
||
if x != nil {
|
||
return x.ProductCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreatePostRequest) GetSubject() string {
|
||
if x != nil {
|
||
return x.Subject
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreatePostRequest) GetUrl() string {
|
||
if x != nil {
|
||
return x.Url
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreatePostRequest) GetBody() string {
|
||
if x != nil {
|
||
return x.Body
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type CreatePostResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
PostId int64 `protobuf:"varint,1,opt,name=postId,proto3" json:"postId,omitempty"` // 文章ID
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreatePostResponse) Reset() {
|
||
*x = CreatePostResponse{}
|
||
mi := &file_service_post_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreatePostResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreatePostResponse) ProtoMessage() {}
|
||
|
||
func (x *CreatePostResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_post_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 CreatePostResponse.ProtoReflect.Descriptor instead.
|
||
func (*CreatePostResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_post_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *CreatePostResponse) GetPostId() int64 {
|
||
if x != nil {
|
||
return x.PostId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 修改文章
|
||
type UpdatePostRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
PostId int64 `protobuf:"varint,1,opt,name=postId,proto3" json:"postId,omitempty"` // 文章ID
|
||
PostCategoryId int64 `protobuf:"varint,2,opt,name=postCategoryId,proto3" json:"postCategoryId,omitempty"` // 文章分类ID
|
||
ProductCode string `protobuf:"bytes,3,opt,name=productCode,proto3" json:"productCode,omitempty"` // 产品代号
|
||
Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` // 标题
|
||
Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` // 类型:normal, url
|
||
Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"` // 跳转的URL(type=url)
|
||
Body string `protobuf:"bytes,7,opt,name=body,proto3" json:"body,omitempty"` // 文章内容(type=normal)
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UpdatePostRequest) Reset() {
|
||
*x = UpdatePostRequest{}
|
||
mi := &file_service_post_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UpdatePostRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UpdatePostRequest) ProtoMessage() {}
|
||
|
||
func (x *UpdatePostRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_post_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 UpdatePostRequest.ProtoReflect.Descriptor instead.
|
||
func (*UpdatePostRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_post_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *UpdatePostRequest) GetPostId() int64 {
|
||
if x != nil {
|
||
return x.PostId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UpdatePostRequest) GetPostCategoryId() int64 {
|
||
if x != nil {
|
||
return x.PostCategoryId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UpdatePostRequest) GetProductCode() string {
|
||
if x != nil {
|
||
return x.ProductCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UpdatePostRequest) GetSubject() string {
|
||
if x != nil {
|
||
return x.Subject
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UpdatePostRequest) GetType() string {
|
||
if x != nil {
|
||
return x.Type
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UpdatePostRequest) GetUrl() string {
|
||
if x != nil {
|
||
return x.Url
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UpdatePostRequest) GetBody() string {
|
||
if x != nil {
|
||
return x.Body
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// 删除文章
|
||
type DeletePostRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
PostId int64 `protobuf:"varint,1,opt,name=postId,proto3" json:"postId,omitempty"` // 文章ID
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DeletePostRequest) Reset() {
|
||
*x = DeletePostRequest{}
|
||
mi := &file_service_post_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DeletePostRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DeletePostRequest) ProtoMessage() {}
|
||
|
||
func (x *DeletePostRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_post_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 DeletePostRequest.ProtoReflect.Descriptor instead.
|
||
func (*DeletePostRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_post_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *DeletePostRequest) GetPostId() int64 {
|
||
if x != nil {
|
||
return x.PostId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 发布文章
|
||
type PublishPostRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
PostId int64 `protobuf:"varint,1,opt,name=postId,proto3" json:"postId,omitempty"` // 文章ID
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *PublishPostRequest) Reset() {
|
||
*x = PublishPostRequest{}
|
||
mi := &file_service_post_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *PublishPostRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*PublishPostRequest) ProtoMessage() {}
|
||
|
||
func (x *PublishPostRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_post_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 PublishPostRequest.ProtoReflect.Descriptor instead.
|
||
func (*PublishPostRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_post_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *PublishPostRequest) GetPostId() int64 {
|
||
if x != nil {
|
||
return x.PostId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 计算文章数量
|
||
type CountPostsRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
PostCategoryId int64 `protobuf:"varint,1,opt,name=postCategoryId,proto3" json:"postCategoryId,omitempty"` // 分类ID
|
||
ProductCode string `protobuf:"bytes,2,opt,name=productCode,proto3" json:"productCode,omitempty"` // 产品代号
|
||
PublishedOnly bool `protobuf:"varint,3,opt,name=publishedOnly,proto3" json:"publishedOnly,omitempty"` // 只列出已发布的
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CountPostsRequest) Reset() {
|
||
*x = CountPostsRequest{}
|
||
mi := &file_service_post_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CountPostsRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CountPostsRequest) ProtoMessage() {}
|
||
|
||
func (x *CountPostsRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_post_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 CountPostsRequest.ProtoReflect.Descriptor instead.
|
||
func (*CountPostsRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_post_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
func (x *CountPostsRequest) GetPostCategoryId() int64 {
|
||
if x != nil {
|
||
return x.PostCategoryId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *CountPostsRequest) GetProductCode() string {
|
||
if x != nil {
|
||
return x.ProductCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CountPostsRequest) GetPublishedOnly() bool {
|
||
if x != nil {
|
||
return x.PublishedOnly
|
||
}
|
||
return false
|
||
}
|
||
|
||
// 列出单页文章
|
||
type ListPostsRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
|
||
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
||
ProductCode string `protobuf:"bytes,3,opt,name=productCode,proto3" json:"productCode,omitempty"` // 产品代号
|
||
PostCategoryId int64 `protobuf:"varint,4,opt,name=postCategoryId,proto3" json:"postCategoryId,omitempty"` // 分类ID
|
||
PostCategoryCode string `protobuf:"bytes,5,opt,name=postCategoryCode,proto3" json:"postCategoryCode,omitempty"` // 分类代号
|
||
ExcludingPostCategoryCode string `protobuf:"bytes,6,opt,name=excludingPostCategoryCode,proto3" json:"excludingPostCategoryCode,omitempty"` // 排除的分类代号
|
||
PublishedOnly bool `protobuf:"varint,7,opt,name=publishedOnly,proto3" json:"publishedOnly,omitempty"` // 只列出已发布的
|
||
ContainsBody bool `protobuf:"varint,8,opt,name=containsBody,proto3" json:"containsBody,omitempty"` // 是否包含文章内容
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ListPostsRequest) Reset() {
|
||
*x = ListPostsRequest{}
|
||
mi := &file_service_post_proto_msgTypes[6]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ListPostsRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ListPostsRequest) ProtoMessage() {}
|
||
|
||
func (x *ListPostsRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_post_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 ListPostsRequest.ProtoReflect.Descriptor instead.
|
||
func (*ListPostsRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_post_proto_rawDescGZIP(), []int{6}
|
||
}
|
||
|
||
func (x *ListPostsRequest) GetOffset() int64 {
|
||
if x != nil {
|
||
return x.Offset
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ListPostsRequest) GetSize() int64 {
|
||
if x != nil {
|
||
return x.Size
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ListPostsRequest) GetProductCode() string {
|
||
if x != nil {
|
||
return x.ProductCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ListPostsRequest) GetPostCategoryId() int64 {
|
||
if x != nil {
|
||
return x.PostCategoryId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ListPostsRequest) GetPostCategoryCode() string {
|
||
if x != nil {
|
||
return x.PostCategoryCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ListPostsRequest) GetExcludingPostCategoryCode() string {
|
||
if x != nil {
|
||
return x.ExcludingPostCategoryCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ListPostsRequest) GetPublishedOnly() bool {
|
||
if x != nil {
|
||
return x.PublishedOnly
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *ListPostsRequest) GetContainsBody() bool {
|
||
if x != nil {
|
||
return x.ContainsBody
|
||
}
|
||
return false
|
||
}
|
||
|
||
type ListPostsResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Posts []*Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"` // 文章列表
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ListPostsResponse) Reset() {
|
||
*x = ListPostsResponse{}
|
||
mi := &file_service_post_proto_msgTypes[7]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ListPostsResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ListPostsResponse) ProtoMessage() {}
|
||
|
||
func (x *ListPostsResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_post_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 ListPostsResponse.ProtoReflect.Descriptor instead.
|
||
func (*ListPostsResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_post_proto_rawDescGZIP(), []int{7}
|
||
}
|
||
|
||
func (x *ListPostsResponse) GetPosts() []*Post {
|
||
if x != nil {
|
||
return x.Posts
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 查询单篇文章
|
||
type FindPostRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
PostId int64 `protobuf:"varint,1,opt,name=postId,proto3" json:"postId,omitempty"` // 文章ID
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindPostRequest) Reset() {
|
||
*x = FindPostRequest{}
|
||
mi := &file_service_post_proto_msgTypes[8]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindPostRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindPostRequest) ProtoMessage() {}
|
||
|
||
func (x *FindPostRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_post_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 FindPostRequest.ProtoReflect.Descriptor instead.
|
||
func (*FindPostRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_post_proto_rawDescGZIP(), []int{8}
|
||
}
|
||
|
||
func (x *FindPostRequest) GetPostId() int64 {
|
||
if x != nil {
|
||
return x.PostId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type FindPostResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Post *Post `protobuf:"bytes,1,opt,name=post,proto3" json:"post,omitempty"` // 文章信息
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindPostResponse) Reset() {
|
||
*x = FindPostResponse{}
|
||
mi := &file_service_post_proto_msgTypes[9]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindPostResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindPostResponse) ProtoMessage() {}
|
||
|
||
func (x *FindPostResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_post_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 FindPostResponse.ProtoReflect.Descriptor instead.
|
||
func (*FindPostResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_post_proto_rawDescGZIP(), []int{9}
|
||
}
|
||
|
||
func (x *FindPostResponse) GetPost() *Post {
|
||
if x != nil {
|
||
return x.Post
|
||
}
|
||
return nil
|
||
}
|
||
|
||
var File_service_post_proto protoreflect.FileDescriptor
|
||
|
||
const file_service_post_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\x12service_post.proto\x12\x02pb\x1a\x17models/model_post.proto\x1a\x19models/rpc_messages.proto\"\xb1\x01\n" +
|
||
"\x11CreatePostRequest\x12&\n" +
|
||
"\x0epostCategoryId\x18\x01 \x01(\x03R\x0epostCategoryId\x12\x12\n" +
|
||
"\x04type\x18\x02 \x01(\tR\x04type\x12 \n" +
|
||
"\vproductCode\x18\x03 \x01(\tR\vproductCode\x12\x18\n" +
|
||
"\asubject\x18\x04 \x01(\tR\asubject\x12\x10\n" +
|
||
"\x03url\x18\x05 \x01(\tR\x03url\x12\x12\n" +
|
||
"\x04body\x18\x06 \x01(\tR\x04body\",\n" +
|
||
"\x12CreatePostResponse\x12\x16\n" +
|
||
"\x06postId\x18\x01 \x01(\x03R\x06postId\"\xc9\x01\n" +
|
||
"\x11UpdatePostRequest\x12\x16\n" +
|
||
"\x06postId\x18\x01 \x01(\x03R\x06postId\x12&\n" +
|
||
"\x0epostCategoryId\x18\x02 \x01(\x03R\x0epostCategoryId\x12 \n" +
|
||
"\vproductCode\x18\x03 \x01(\tR\vproductCode\x12\x18\n" +
|
||
"\asubject\x18\x04 \x01(\tR\asubject\x12\x12\n" +
|
||
"\x04type\x18\x05 \x01(\tR\x04type\x12\x10\n" +
|
||
"\x03url\x18\x06 \x01(\tR\x03url\x12\x12\n" +
|
||
"\x04body\x18\a \x01(\tR\x04body\"+\n" +
|
||
"\x11DeletePostRequest\x12\x16\n" +
|
||
"\x06postId\x18\x01 \x01(\x03R\x06postId\",\n" +
|
||
"\x12PublishPostRequest\x12\x16\n" +
|
||
"\x06postId\x18\x01 \x01(\x03R\x06postId\"\x83\x01\n" +
|
||
"\x11CountPostsRequest\x12&\n" +
|
||
"\x0epostCategoryId\x18\x01 \x01(\x03R\x0epostCategoryId\x12 \n" +
|
||
"\vproductCode\x18\x02 \x01(\tR\vproductCode\x12$\n" +
|
||
"\rpublishedOnly\x18\x03 \x01(\bR\rpublishedOnly\"\xbc\x02\n" +
|
||
"\x10ListPostsRequest\x12\x16\n" +
|
||
"\x06offset\x18\x01 \x01(\x03R\x06offset\x12\x12\n" +
|
||
"\x04size\x18\x02 \x01(\x03R\x04size\x12 \n" +
|
||
"\vproductCode\x18\x03 \x01(\tR\vproductCode\x12&\n" +
|
||
"\x0epostCategoryId\x18\x04 \x01(\x03R\x0epostCategoryId\x12*\n" +
|
||
"\x10postCategoryCode\x18\x05 \x01(\tR\x10postCategoryCode\x12<\n" +
|
||
"\x19excludingPostCategoryCode\x18\x06 \x01(\tR\x19excludingPostCategoryCode\x12$\n" +
|
||
"\rpublishedOnly\x18\a \x01(\bR\rpublishedOnly\x12\"\n" +
|
||
"\fcontainsBody\x18\b \x01(\bR\fcontainsBody\"3\n" +
|
||
"\x11ListPostsResponse\x12\x1e\n" +
|
||
"\x05posts\x18\x01 \x03(\v2\b.pb.PostR\x05posts\")\n" +
|
||
"\x0fFindPostRequest\x12\x16\n" +
|
||
"\x06postId\x18\x01 \x01(\x03R\x06postId\"0\n" +
|
||
"\x10FindPostResponse\x12\x1c\n" +
|
||
"\x04post\x18\x01 \x01(\v2\b.pb.PostR\x04post2\x97\x03\n" +
|
||
"\vPostService\x12;\n" +
|
||
"\n" +
|
||
"createPost\x12\x15.pb.CreatePostRequest\x1a\x16.pb.CreatePostResponse\x123\n" +
|
||
"\n" +
|
||
"updatePost\x12\x15.pb.UpdatePostRequest\x1a\x0e.pb.RPCSuccess\x123\n" +
|
||
"\n" +
|
||
"deletePost\x12\x15.pb.DeletePostRequest\x1a\x0e.pb.RPCSuccess\x125\n" +
|
||
"\vpublishPost\x12\x16.pb.PublishPostRequest\x1a\x0e.pb.RPCSuccess\x129\n" +
|
||
"\n" +
|
||
"countPosts\x12\x15.pb.CountPostsRequest\x1a\x14.pb.RPCCountResponse\x128\n" +
|
||
"\tlistPosts\x12\x14.pb.ListPostsRequest\x1a\x15.pb.ListPostsResponse\x125\n" +
|
||
"\bfindPost\x12\x13.pb.FindPostRequest\x1a\x14.pb.FindPostResponseB\x06Z\x04./pbb\x06proto3"
|
||
|
||
var (
|
||
file_service_post_proto_rawDescOnce sync.Once
|
||
file_service_post_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_service_post_proto_rawDescGZIP() []byte {
|
||
file_service_post_proto_rawDescOnce.Do(func() {
|
||
file_service_post_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_post_proto_rawDesc), len(file_service_post_proto_rawDesc)))
|
||
})
|
||
return file_service_post_proto_rawDescData
|
||
}
|
||
|
||
var file_service_post_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||
var file_service_post_proto_goTypes = []any{
|
||
(*CreatePostRequest)(nil), // 0: pb.CreatePostRequest
|
||
(*CreatePostResponse)(nil), // 1: pb.CreatePostResponse
|
||
(*UpdatePostRequest)(nil), // 2: pb.UpdatePostRequest
|
||
(*DeletePostRequest)(nil), // 3: pb.DeletePostRequest
|
||
(*PublishPostRequest)(nil), // 4: pb.PublishPostRequest
|
||
(*CountPostsRequest)(nil), // 5: pb.CountPostsRequest
|
||
(*ListPostsRequest)(nil), // 6: pb.ListPostsRequest
|
||
(*ListPostsResponse)(nil), // 7: pb.ListPostsResponse
|
||
(*FindPostRequest)(nil), // 8: pb.FindPostRequest
|
||
(*FindPostResponse)(nil), // 9: pb.FindPostResponse
|
||
(*Post)(nil), // 10: pb.Post
|
||
(*RPCSuccess)(nil), // 11: pb.RPCSuccess
|
||
(*RPCCountResponse)(nil), // 12: pb.RPCCountResponse
|
||
}
|
||
var file_service_post_proto_depIdxs = []int32{
|
||
10, // 0: pb.ListPostsResponse.posts:type_name -> pb.Post
|
||
10, // 1: pb.FindPostResponse.post:type_name -> pb.Post
|
||
0, // 2: pb.PostService.createPost:input_type -> pb.CreatePostRequest
|
||
2, // 3: pb.PostService.updatePost:input_type -> pb.UpdatePostRequest
|
||
3, // 4: pb.PostService.deletePost:input_type -> pb.DeletePostRequest
|
||
4, // 5: pb.PostService.publishPost:input_type -> pb.PublishPostRequest
|
||
5, // 6: pb.PostService.countPosts:input_type -> pb.CountPostsRequest
|
||
6, // 7: pb.PostService.listPosts:input_type -> pb.ListPostsRequest
|
||
8, // 8: pb.PostService.findPost:input_type -> pb.FindPostRequest
|
||
1, // 9: pb.PostService.createPost:output_type -> pb.CreatePostResponse
|
||
11, // 10: pb.PostService.updatePost:output_type -> pb.RPCSuccess
|
||
11, // 11: pb.PostService.deletePost:output_type -> pb.RPCSuccess
|
||
11, // 12: pb.PostService.publishPost:output_type -> pb.RPCSuccess
|
||
12, // 13: pb.PostService.countPosts:output_type -> pb.RPCCountResponse
|
||
7, // 14: pb.PostService.listPosts:output_type -> pb.ListPostsResponse
|
||
9, // 15: pb.PostService.findPost:output_type -> pb.FindPostResponse
|
||
9, // [9:16] is the sub-list for method output_type
|
||
2, // [2:9] 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_service_post_proto_init() }
|
||
func file_service_post_proto_init() {
|
||
if File_service_post_proto != nil {
|
||
return
|
||
}
|
||
file_models_model_post_proto_init()
|
||
file_models_rpc_messages_proto_init()
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_post_proto_rawDesc), len(file_service_post_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 10,
|
||
NumExtensions: 0,
|
||
NumServices: 1,
|
||
},
|
||
GoTypes: file_service_post_proto_goTypes,
|
||
DependencyIndexes: file_service_post_proto_depIdxs,
|
||
MessageInfos: file_service_post_proto_msgTypes,
|
||
}.Build()
|
||
File_service_post_proto = out.File
|
||
file_service_post_proto_goTypes = nil
|
||
file_service_post_proto_depIdxs = nil
|
||
}
|