post

package
v0.0.0-...-fa05059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Post_CreatePost_FullMethodName       = "/api.post.Post/CreatePost"
	Post_UpdatePost_FullMethodName       = "/api.post.Post/UpdatePost"
	Post_UpdatePostStatus_FullMethodName = "/api.post.Post/UpdatePostStatus"
	Post_DeletePost_FullMethodName       = "/api.post.Post/DeletePost"
	Post_PublishPost_FullMethodName      = "/api.post.Post/PublishPost"
	Post_ListPost_FullMethodName         = "/api.post.Post/ListPost"
	Post_ListPubPost_FullMethodName      = "/api.post.Post/ListPubPost"
	Post_DetailPost_FullMethodName       = "/api.post.Post/DetailPost"
	Post_DetailPubPost_FullMethodName    = "/api.post.Post/DetailPubPost"
	Post_CreatePlate_FullMethodName      = "/api.post.Post/CreatePlate"
	Post_UpdatePlate_FullMethodName      = "/api.post.Post/UpdatePlate"
	Post_ListPlate_FullMethodName        = "/api.post.Post/ListPlate"
	Post_DeletePlate_FullMethodName      = "/api.post.Post/DeletePlate"
)
View Source
const OperationPostCreatePlate = "/api.post.Post/CreatePlate"
View Source
const OperationPostCreatePost = "/api.post.Post/CreatePost"
View Source
const OperationPostDeletePlate = "/api.post.Post/DeletePlate"
View Source
const OperationPostDeletePost = "/api.post.Post/DeletePost"
View Source
const OperationPostDetailPost = "/api.post.Post/DetailPost"
View Source
const OperationPostDetailPubPost = "/api.post.Post/DetailPubPost"
View Source
const OperationPostListPlate = "/api.post.Post/ListPlate"
View Source
const OperationPostListPost = "/api.post.Post/ListPost"
View Source
const OperationPostListPubPost = "/api.post.Post/ListPubPost"
View Source
const OperationPostPublishPost = "/api.post.Post/PublishPost"
View Source
const OperationPostUpdatePlate = "/api.post.Post/UpdatePlate"
View Source
const OperationPostUpdatePost = "/api.post.Post/UpdatePost"

Variables

View Source
var File_api_post_v1_post_proto protoreflect.FileDescriptor
View Source
var Post_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.post.Post",
	HandlerType: (*PostServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreatePost",
			Handler:    _Post_CreatePost_Handler,
		},
		{
			MethodName: "UpdatePost",
			Handler:    _Post_UpdatePost_Handler,
		},
		{
			MethodName: "UpdatePostStatus",
			Handler:    _Post_UpdatePostStatus_Handler,
		},
		{
			MethodName: "DeletePost",
			Handler:    _Post_DeletePost_Handler,
		},
		{
			MethodName: "PublishPost",
			Handler:    _Post_PublishPost_Handler,
		},
		{
			MethodName: "ListPost",
			Handler:    _Post_ListPost_Handler,
		},
		{
			MethodName: "ListPubPost",
			Handler:    _Post_ListPubPost_Handler,
		},
		{
			MethodName: "DetailPost",
			Handler:    _Post_DetailPost_Handler,
		},
		{
			MethodName: "DetailPubPost",
			Handler:    _Post_DetailPubPost_Handler,
		},
		{
			MethodName: "CreatePlate",
			Handler:    _Post_CreatePlate_Handler,
		},
		{
			MethodName: "UpdatePlate",
			Handler:    _Post_UpdatePlate_Handler,
		},
		{
			MethodName: "ListPlate",
			Handler:    _Post_ListPlate_Handler,
		},
		{
			MethodName: "DeletePlate",
			Handler:    _Post_DeletePlate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/post/v1/post.proto",
}

Post_ServiceDesc is the grpc.ServiceDesc for Post service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPostHTTPServer

func RegisterPostHTTPServer(s *http.Server, srv PostHTTPServer)

func RegisterPostServer

func RegisterPostServer(s grpc.ServiceRegistrar, srv PostServer)

Types

type CreatePlateReply

type CreatePlateReply struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePlateReply) Descriptor deprecated

func (*CreatePlateReply) Descriptor() ([]byte, []int)

Deprecated: Use CreatePlateReply.ProtoReflect.Descriptor instead.

func (*CreatePlateReply) GetCode

func (x *CreatePlateReply) GetCode() int32

func (*CreatePlateReply) GetMsg

func (x *CreatePlateReply) GetMsg() string

func (*CreatePlateReply) ProtoMessage

func (*CreatePlateReply) ProtoMessage()

func (*CreatePlateReply) ProtoReflect

func (x *CreatePlateReply) ProtoReflect() protoreflect.Message

func (*CreatePlateReply) Reset

func (x *CreatePlateReply) Reset()

func (*CreatePlateReply) String

func (x *CreatePlateReply) String() string

type CreatePlateRequest

type CreatePlateRequest struct {
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePlateRequest) Descriptor deprecated

func (*CreatePlateRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreatePlateRequest.ProtoReflect.Descriptor instead.

func (*CreatePlateRequest) GetName

func (x *CreatePlateRequest) GetName() string

func (*CreatePlateRequest) ProtoMessage

func (*CreatePlateRequest) ProtoMessage()

func (*CreatePlateRequest) ProtoReflect

func (x *CreatePlateRequest) ProtoReflect() protoreflect.Message

func (*CreatePlateRequest) Reset

func (x *CreatePlateRequest) Reset()

func (*CreatePlateRequest) String

func (x *CreatePlateRequest) String() string

type CreatePostReply

type CreatePostReply struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data int64  `protobuf:"varint,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePostReply) Descriptor deprecated

func (*CreatePostReply) Descriptor() ([]byte, []int)

Deprecated: Use CreatePostReply.ProtoReflect.Descriptor instead.

func (*CreatePostReply) GetCode

func (x *CreatePostReply) GetCode() int32

func (*CreatePostReply) GetData

func (x *CreatePostReply) GetData() int64

func (*CreatePostReply) GetMsg

func (x *CreatePostReply) GetMsg() string

func (*CreatePostReply) ProtoMessage

func (*CreatePostReply) ProtoMessage()

func (*CreatePostReply) ProtoReflect

func (x *CreatePostReply) ProtoReflect() protoreflect.Message

func (*CreatePostReply) Reset

func (x *CreatePostReply) Reset()

func (*CreatePostReply) String

func (x *CreatePostReply) String() string

type CreatePostRequest

type CreatePostRequest struct {
	PostId  int64  `protobuf:"varint,1,opt,name=postId,proto3" json:"postId,omitempty"`
	Title   string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	PlateId int64  `protobuf:"varint,4,opt,name=plateId,proto3" json:"plateId,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePostRequest) Descriptor deprecated

func (*CreatePostRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreatePostRequest.ProtoReflect.Descriptor instead.

func (*CreatePostRequest) GetContent

func (x *CreatePostRequest) GetContent() string

func (*CreatePostRequest) GetPlateId

func (x *CreatePostRequest) GetPlateId() int64

func (*CreatePostRequest) GetPostId

func (x *CreatePostRequest) GetPostId() int64

func (*CreatePostRequest) GetTitle

func (x *CreatePostRequest) GetTitle() string

func (*CreatePostRequest) ProtoMessage

func (*CreatePostRequest) ProtoMessage()

func (*CreatePostRequest) ProtoReflect

func (x *CreatePostRequest) ProtoReflect() protoreflect.Message

func (*CreatePostRequest) Reset

func (x *CreatePostRequest) Reset()

func (*CreatePostRequest) String

func (x *CreatePostRequest) String() string

type DeletePlateReply

type DeletePlateReply struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePlateReply) Descriptor deprecated

func (*DeletePlateReply) Descriptor() ([]byte, []int)

Deprecated: Use DeletePlateReply.ProtoReflect.Descriptor instead.

func (*DeletePlateReply) GetCode

func (x *DeletePlateReply) GetCode() int32

func (*DeletePlateReply) GetMsg

func (x *DeletePlateReply) GetMsg() string

func (*DeletePlateReply) ProtoMessage

func (*DeletePlateReply) ProtoMessage()

func (*DeletePlateReply) ProtoReflect

func (x *DeletePlateReply) ProtoReflect() protoreflect.Message

func (*DeletePlateReply) Reset

func (x *DeletePlateReply) Reset()

func (*DeletePlateReply) String

func (x *DeletePlateReply) String() string

type DeletePlateRequest

type DeletePlateRequest struct {
	PlateId int64 `protobuf:"varint,1,opt,name=plateId,proto3" json:"plateId,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePlateRequest) Descriptor deprecated

func (*DeletePlateRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeletePlateRequest.ProtoReflect.Descriptor instead.

func (*DeletePlateRequest) GetPlateId

func (x *DeletePlateRequest) GetPlateId() int64

func (*DeletePlateRequest) ProtoMessage

func (*DeletePlateRequest) ProtoMessage()

func (*DeletePlateRequest) ProtoReflect

func (x *DeletePlateRequest) ProtoReflect() protoreflect.Message

func (*DeletePlateRequest) Reset

func (x *DeletePlateRequest) Reset()

func (*DeletePlateRequest) String

func (x *DeletePlateRequest) String() string

type DeletePostReply

type DeletePostReply struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePostReply) Descriptor deprecated

func (*DeletePostReply) Descriptor() ([]byte, []int)

Deprecated: Use DeletePostReply.ProtoReflect.Descriptor instead.

func (*DeletePostReply) GetCode

func (x *DeletePostReply) GetCode() int32

func (*DeletePostReply) GetMsg

func (x *DeletePostReply) GetMsg() string

func (*DeletePostReply) ProtoMessage

func (*DeletePostReply) ProtoMessage()

func (*DeletePostReply) ProtoReflect

func (x *DeletePostReply) ProtoReflect() protoreflect.Message

func (*DeletePostReply) Reset

func (x *DeletePostReply) Reset()

func (*DeletePostReply) String

func (x *DeletePostReply) String() string

type DeletePostRequest

type DeletePostRequest struct {
	PostId int64 `protobuf:"varint,1,opt,name=postId,proto3" json:"postId,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePostRequest) Descriptor deprecated

func (*DeletePostRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeletePostRequest.ProtoReflect.Descriptor instead.

func (*DeletePostRequest) GetPostId

func (x *DeletePostRequest) GetPostId() int64

func (*DeletePostRequest) ProtoMessage

func (*DeletePostRequest) ProtoMessage()

func (*DeletePostRequest) ProtoReflect

func (x *DeletePostRequest) ProtoReflect() protoreflect.Message

func (*DeletePostRequest) Reset

func (x *DeletePostRequest) Reset()

func (*DeletePostRequest) String

func (x *DeletePostRequest) String() string

type DetailPost

type DetailPost struct {
	Id        int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Title     string                 `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Content   string                 `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	UserId    int64                  `protobuf:"varint,6,opt,name=userId,proto3" json:"userId,omitempty"`
	PlateId   int64                  `protobuf:"varint,7,opt,name=plateId,proto3" json:"plateId,omitempty"`
	// contains filtered or unexported fields
}

func (*DetailPost) Descriptor deprecated

func (*DetailPost) Descriptor() ([]byte, []int)

Deprecated: Use DetailPost.ProtoReflect.Descriptor instead.

func (*DetailPost) GetContent

func (x *DetailPost) GetContent() string

func (*DetailPost) GetCreatedAt

func (x *DetailPost) GetCreatedAt() *timestamppb.Timestamp

func (*DetailPost) GetId

func (x *DetailPost) GetId() int64

func (*DetailPost) GetPlateId

func (x *DetailPost) GetPlateId() int64

func (*DetailPost) GetTitle

func (x *DetailPost) GetTitle() string

func (*DetailPost) GetUpdatedAt

func (x *DetailPost) GetUpdatedAt() *timestamppb.Timestamp

func (*DetailPost) GetUserId

func (x *DetailPost) GetUserId() int64

func (*DetailPost) ProtoMessage

func (*DetailPost) ProtoMessage()

func (*DetailPost) ProtoReflect

func (x *DetailPost) ProtoReflect() protoreflect.Message

func (*DetailPost) Reset

func (x *DetailPost) Reset()

func (*DetailPost) String

func (x *DetailPost) String() string

type DetailPostReply

type DetailPostReply struct {
	Code int32       `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string      `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data *DetailPost `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DetailPostReply) Descriptor deprecated

func (*DetailPostReply) Descriptor() ([]byte, []int)

Deprecated: Use DetailPostReply.ProtoReflect.Descriptor instead.

func (*DetailPostReply) GetCode

func (x *DetailPostReply) GetCode() int32

func (*DetailPostReply) GetData

func (x *DetailPostReply) GetData() *DetailPost

func (*DetailPostReply) GetMsg

func (x *DetailPostReply) GetMsg() string

func (*DetailPostReply) ProtoMessage

func (*DetailPostReply) ProtoMessage()

func (*DetailPostReply) ProtoReflect

func (x *DetailPostReply) ProtoReflect() protoreflect.Message

func (*DetailPostReply) Reset

func (x *DetailPostReply) Reset()

func (*DetailPostReply) String

func (x *DetailPostReply) String() string

type DetailPostRequest

type DetailPostRequest struct {
	PostId int64 `protobuf:"varint,1,opt,name=postId,proto3" json:"postId,omitempty"`
	// contains filtered or unexported fields
}

func (*DetailPostRequest) Descriptor deprecated

func (*DetailPostRequest) Descriptor() ([]byte, []int)

Deprecated: Use DetailPostRequest.ProtoReflect.Descriptor instead.

func (*DetailPostRequest) GetPostId

func (x *DetailPostRequest) GetPostId() int64

func (*DetailPostRequest) ProtoMessage

func (*DetailPostRequest) ProtoMessage()

func (*DetailPostRequest) ProtoReflect

func (x *DetailPostRequest) ProtoReflect() protoreflect.Message

func (*DetailPostRequest) Reset

func (x *DetailPostRequest) Reset()

func (*DetailPostRequest) String

func (x *DetailPostRequest) String() string

type DetailPubPostReply

type DetailPubPostReply struct {
	Code int32       `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string      `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data *DetailPost `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DetailPubPostReply) Descriptor deprecated

func (*DetailPubPostReply) Descriptor() ([]byte, []int)

Deprecated: Use DetailPubPostReply.ProtoReflect.Descriptor instead.

func (*DetailPubPostReply) GetCode

func (x *DetailPubPostReply) GetCode() int32

func (*DetailPubPostReply) GetData

func (x *DetailPubPostReply) GetData() *DetailPost

func (*DetailPubPostReply) GetMsg

func (x *DetailPubPostReply) GetMsg() string

func (*DetailPubPostReply) ProtoMessage

func (*DetailPubPostReply) ProtoMessage()

func (*DetailPubPostReply) ProtoReflect

func (x *DetailPubPostReply) ProtoReflect() protoreflect.Message

func (*DetailPubPostReply) Reset

func (x *DetailPubPostReply) Reset()

func (*DetailPubPostReply) String

func (x *DetailPubPostReply) String() string

type DetailPubPostRequest

type DetailPubPostRequest struct {
	PostId int64 `protobuf:"varint,1,opt,name=postId,proto3" json:"postId,omitempty"`
	// contains filtered or unexported fields
}

func (*DetailPubPostRequest) Descriptor deprecated

func (*DetailPubPostRequest) Descriptor() ([]byte, []int)

Deprecated: Use DetailPubPostRequest.ProtoReflect.Descriptor instead.

func (*DetailPubPostRequest) GetPostId

func (x *DetailPubPostRequest) GetPostId() int64

func (*DetailPubPostRequest) ProtoMessage

func (*DetailPubPostRequest) ProtoMessage()

func (*DetailPubPostRequest) ProtoReflect

func (x *DetailPubPostRequest) ProtoReflect() protoreflect.Message

func (*DetailPubPostRequest) Reset

func (x *DetailPubPostRequest) Reset()

func (*DetailPubPostRequest) String

func (x *DetailPubPostRequest) String() string

type LikePostReply

type LikePostReply struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*LikePostReply) Descriptor deprecated

func (*LikePostReply) Descriptor() ([]byte, []int)

Deprecated: Use LikePostReply.ProtoReflect.Descriptor instead.

func (*LikePostReply) GetCode

func (x *LikePostReply) GetCode() int32

func (*LikePostReply) GetMsg

func (x *LikePostReply) GetMsg() string

func (*LikePostReply) ProtoMessage

func (*LikePostReply) ProtoMessage()

func (*LikePostReply) ProtoReflect

func (x *LikePostReply) ProtoReflect() protoreflect.Message

func (*LikePostReply) Reset

func (x *LikePostReply) Reset()

func (*LikePostReply) String

func (x *LikePostReply) String() string

type LikePostRequest

type LikePostRequest struct {
	PostId int64 `protobuf:"varint,1,opt,name=postId,proto3" json:"postId,omitempty"`
	Liked  bool  `protobuf:"varint,2,opt,name=liked,proto3" json:"liked,omitempty"`
	// contains filtered or unexported fields
}

func (*LikePostRequest) Descriptor deprecated

func (*LikePostRequest) Descriptor() ([]byte, []int)

Deprecated: Use LikePostRequest.ProtoReflect.Descriptor instead.

func (*LikePostRequest) GetLiked

func (x *LikePostRequest) GetLiked() bool

func (*LikePostRequest) GetPostId

func (x *LikePostRequest) GetPostId() int64

func (*LikePostRequest) ProtoMessage

func (*LikePostRequest) ProtoMessage()

func (*LikePostRequest) ProtoReflect

func (x *LikePostRequest) ProtoReflect() protoreflect.Message

func (*LikePostRequest) Reset

func (x *LikePostRequest) Reset()

func (*LikePostRequest) String

func (x *LikePostRequest) String() string

type ListPlate

type ListPlate struct {
	Id   int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPlate) Descriptor deprecated

func (*ListPlate) Descriptor() ([]byte, []int)

Deprecated: Use ListPlate.ProtoReflect.Descriptor instead.

func (*ListPlate) GetId

func (x *ListPlate) GetId() int64

func (*ListPlate) GetName

func (x *ListPlate) GetName() string

func (*ListPlate) ProtoMessage

func (*ListPlate) ProtoMessage()

func (*ListPlate) ProtoReflect

func (x *ListPlate) ProtoReflect() protoreflect.Message

func (*ListPlate) Reset

func (x *ListPlate) Reset()

func (*ListPlate) String

func (x *ListPlate) String() string

type ListPlateReply

type ListPlateReply struct {
	Code int32        `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string       `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data []*ListPlate `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPlateReply) Descriptor deprecated

func (*ListPlateReply) Descriptor() ([]byte, []int)

Deprecated: Use ListPlateReply.ProtoReflect.Descriptor instead.

func (*ListPlateReply) GetCode

func (x *ListPlateReply) GetCode() int32

func (*ListPlateReply) GetData

func (x *ListPlateReply) GetData() []*ListPlate

func (*ListPlateReply) GetMsg

func (x *ListPlateReply) GetMsg() string

func (*ListPlateReply) ProtoMessage

func (*ListPlateReply) ProtoMessage()

func (*ListPlateReply) ProtoReflect

func (x *ListPlateReply) ProtoReflect() protoreflect.Message

func (*ListPlateReply) Reset

func (x *ListPlateReply) Reset()

func (*ListPlateReply) String

func (x *ListPlateReply) String() string

type ListPlateRequest

type ListPlateRequest struct {
	Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPlateRequest) Descriptor deprecated

func (*ListPlateRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListPlateRequest.ProtoReflect.Descriptor instead.

func (*ListPlateRequest) GetPage

func (x *ListPlateRequest) GetPage() int32

func (*ListPlateRequest) GetSize

func (x *ListPlateRequest) GetSize() int64

func (*ListPlateRequest) ProtoMessage

func (*ListPlateRequest) ProtoMessage()

func (*ListPlateRequest) ProtoReflect

func (x *ListPlateRequest) ProtoReflect() protoreflect.Message

func (*ListPlateRequest) Reset

func (x *ListPlateRequest) Reset()

func (*ListPlateRequest) String

func (x *ListPlateRequest) String() string

type ListPost

type ListPost struct {
	Id        int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Title     string                 `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Content   string                 `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	UserId    int64                  `protobuf:"varint,6,opt,name=userId,proto3" json:"userId,omitempty"`
	PlateId   int64                  `protobuf:"varint,7,opt,name=plateId,proto3" json:"plateId,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPost) Descriptor deprecated

func (*ListPost) Descriptor() ([]byte, []int)

Deprecated: Use ListPost.ProtoReflect.Descriptor instead.

func (*ListPost) GetContent

func (x *ListPost) GetContent() string

func (*ListPost) GetCreatedAt

func (x *ListPost) GetCreatedAt() *timestamppb.Timestamp

func (*ListPost) GetId

func (x *ListPost) GetId() int64

func (*ListPost) GetPlateId

func (x *ListPost) GetPlateId() int64

func (*ListPost) GetTitle

func (x *ListPost) GetTitle() string

func (*ListPost) GetUpdatedAt

func (x *ListPost) GetUpdatedAt() *timestamppb.Timestamp

func (*ListPost) GetUserId

func (x *ListPost) GetUserId() int64

func (*ListPost) ProtoMessage

func (*ListPost) ProtoMessage()

func (*ListPost) ProtoReflect

func (x *ListPost) ProtoReflect() protoreflect.Message

func (*ListPost) Reset

func (x *ListPost) Reset()

func (*ListPost) String

func (x *ListPost) String() string

type ListPostReply

type ListPostReply struct {
	Code int32       `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string      `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data []*ListPost `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPostReply) Descriptor deprecated

func (*ListPostReply) Descriptor() ([]byte, []int)

Deprecated: Use ListPostReply.ProtoReflect.Descriptor instead.

func (*ListPostReply) GetCode

func (x *ListPostReply) GetCode() int32

func (*ListPostReply) GetData

func (x *ListPostReply) GetData() []*ListPost

func (*ListPostReply) GetMsg

func (x *ListPostReply) GetMsg() string

func (*ListPostReply) ProtoMessage

func (*ListPostReply) ProtoMessage()

func (*ListPostReply) ProtoReflect

func (x *ListPostReply) ProtoReflect() protoreflect.Message

func (*ListPostReply) Reset

func (x *ListPostReply) Reset()

func (*ListPostReply) String

func (x *ListPostReply) String() string

type ListPostRequest

type ListPostRequest struct {
	Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPostRequest) Descriptor deprecated

func (*ListPostRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListPostRequest.ProtoReflect.Descriptor instead.

func (*ListPostRequest) GetPage

func (x *ListPostRequest) GetPage() int32

func (*ListPostRequest) GetSize

func (x *ListPostRequest) GetSize() int64

func (*ListPostRequest) ProtoMessage

func (*ListPostRequest) ProtoMessage()

func (*ListPostRequest) ProtoReflect

func (x *ListPostRequest) ProtoReflect() protoreflect.Message

func (*ListPostRequest) Reset

func (x *ListPostRequest) Reset()

func (*ListPostRequest) String

func (x *ListPostRequest) String() string

type ListPubPostReply

type ListPubPostReply struct {
	Code int32       `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string      `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data []*ListPost `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPubPostReply) Descriptor deprecated

func (*ListPubPostReply) Descriptor() ([]byte, []int)

Deprecated: Use ListPubPostReply.ProtoReflect.Descriptor instead.

func (*ListPubPostReply) GetCode

func (x *ListPubPostReply) GetCode() int32

func (*ListPubPostReply) GetData

func (x *ListPubPostReply) GetData() []*ListPost

func (*ListPubPostReply) GetMsg

func (x *ListPubPostReply) GetMsg() string

func (*ListPubPostReply) ProtoMessage

func (*ListPubPostReply) ProtoMessage()

func (*ListPubPostReply) ProtoReflect

func (x *ListPubPostReply) ProtoReflect() protoreflect.Message

func (*ListPubPostReply) Reset

func (x *ListPubPostReply) Reset()

func (*ListPubPostReply) String

func (x *ListPubPostReply) String() string

type ListPubPostRequest

type ListPubPostRequest struct {
	Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPubPostRequest) Descriptor deprecated

func (*ListPubPostRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListPubPostRequest.ProtoReflect.Descriptor instead.

func (*ListPubPostRequest) GetPage

func (x *ListPubPostRequest) GetPage() int32

func (*ListPubPostRequest) GetSize

func (x *ListPubPostRequest) GetSize() int64

func (*ListPubPostRequest) ProtoMessage

func (*ListPubPostRequest) ProtoMessage()

func (*ListPubPostRequest) ProtoReflect

func (x *ListPubPostRequest) ProtoReflect() protoreflect.Message

func (*ListPubPostRequest) Reset

func (x *ListPubPostRequest) Reset()

func (*ListPubPostRequest) String

func (x *ListPubPostRequest) String() string

type PostClient

PostClient is the client API for Post service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewPostClient

func NewPostClient(cc grpc.ClientConnInterface) PostClient

type PostHTTPClient

type PostHTTPClient interface {
	CreatePlate(ctx context.Context, req *CreatePlateRequest, opts ...http.CallOption) (rsp *CreatePlateReply, err error)
	CreatePost(ctx context.Context, req *CreatePostRequest, opts ...http.CallOption) (rsp *CreatePostReply, err error)
	DeletePlate(ctx context.Context, req *DeletePlateRequest, opts ...http.CallOption) (rsp *DeletePlateReply, err error)
	DeletePost(ctx context.Context, req *DeletePostRequest, opts ...http.CallOption) (rsp *DeletePostReply, err error)
	DetailPost(ctx context.Context, req *DetailPostRequest, opts ...http.CallOption) (rsp *DetailPostReply, err error)
	DetailPubPost(ctx context.Context, req *DetailPubPostRequest, opts ...http.CallOption) (rsp *DetailPubPostReply, err error)
	ListPlate(ctx context.Context, req *ListPlateRequest, opts ...http.CallOption) (rsp *ListPlateReply, err error)
	ListPost(ctx context.Context, req *ListPostRequest, opts ...http.CallOption) (rsp *ListPostReply, err error)
	ListPubPost(ctx context.Context, req *ListPubPostRequest, opts ...http.CallOption) (rsp *ListPubPostReply, err error)
	PublishPost(ctx context.Context, req *PublishPostRequest, opts ...http.CallOption) (rsp *PublishPostReply, err error)
	UpdatePlate(ctx context.Context, req *UpdatePlateRequest, opts ...http.CallOption) (rsp *UpdatePlateReply, err error)
	UpdatePost(ctx context.Context, req *UpdatePostRequest, opts ...http.CallOption) (rsp *UpdatePostReply, err error)
}

func NewPostHTTPClient

func NewPostHTTPClient(client *http.Client) PostHTTPClient

type PostHTTPClientImpl

type PostHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*PostHTTPClientImpl) CreatePlate

func (*PostHTTPClientImpl) CreatePost

func (*PostHTTPClientImpl) DeletePlate

func (*PostHTTPClientImpl) DeletePost

func (*PostHTTPClientImpl) DetailPost

func (*PostHTTPClientImpl) DetailPubPost

func (*PostHTTPClientImpl) ListPlate

func (*PostHTTPClientImpl) ListPost

func (*PostHTTPClientImpl) ListPubPost

func (*PostHTTPClientImpl) PublishPost

func (*PostHTTPClientImpl) UpdatePlate

func (*PostHTTPClientImpl) UpdatePost

type PostServer

PostServer is the server API for Post service. All implementations must embed UnimplementedPostServer for forward compatibility

type PublishPostReply

type PublishPostReply struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishPostReply) Descriptor deprecated

func (*PublishPostReply) Descriptor() ([]byte, []int)

Deprecated: Use PublishPostReply.ProtoReflect.Descriptor instead.

func (*PublishPostReply) GetCode

func (x *PublishPostReply) GetCode() int32

func (*PublishPostReply) GetMsg

func (x *PublishPostReply) GetMsg() string

func (*PublishPostReply) ProtoMessage

func (*PublishPostReply) ProtoMessage()

func (*PublishPostReply) ProtoReflect

func (x *PublishPostReply) ProtoReflect() protoreflect.Message

func (*PublishPostReply) Reset

func (x *PublishPostReply) Reset()

func (*PublishPostReply) String

func (x *PublishPostReply) String() string

type PublishPostRequest

type PublishPostRequest struct {
	PostId int64 `protobuf:"varint,1,opt,name=postId,proto3" json:"postId,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishPostRequest) Descriptor deprecated

func (*PublishPostRequest) Descriptor() ([]byte, []int)

Deprecated: Use PublishPostRequest.ProtoReflect.Descriptor instead.

func (*PublishPostRequest) GetPostId

func (x *PublishPostRequest) GetPostId() int64

func (*PublishPostRequest) ProtoMessage

func (*PublishPostRequest) ProtoMessage()

func (*PublishPostRequest) ProtoReflect

func (x *PublishPostRequest) ProtoReflect() protoreflect.Message

func (*PublishPostRequest) Reset

func (x *PublishPostRequest) Reset()

func (*PublishPostRequest) String

func (x *PublishPostRequest) String() string

type UnimplementedPostServer

type UnimplementedPostServer struct {
}

UnimplementedPostServer must be embedded to have forward compatible implementations.

func (UnimplementedPostServer) CreatePlate

func (UnimplementedPostServer) CreatePost

func (UnimplementedPostServer) DeletePlate

func (UnimplementedPostServer) DeletePost

func (UnimplementedPostServer) DetailPost

func (UnimplementedPostServer) DetailPubPost

func (UnimplementedPostServer) ListPlate

func (UnimplementedPostServer) ListPost

func (UnimplementedPostServer) ListPubPost

func (UnimplementedPostServer) PublishPost

func (UnimplementedPostServer) UpdatePlate

func (UnimplementedPostServer) UpdatePost

func (UnimplementedPostServer) UpdatePostStatus

type UnsafePostServer

type UnsafePostServer interface {
	// contains filtered or unexported methods
}

UnsafePostServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PostServer will result in compilation errors.

type UpdatePlateReply

type UpdatePlateReply struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePlateReply) Descriptor deprecated

func (*UpdatePlateReply) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePlateReply.ProtoReflect.Descriptor instead.

func (*UpdatePlateReply) GetCode

func (x *UpdatePlateReply) GetCode() int32

func (*UpdatePlateReply) GetMsg

func (x *UpdatePlateReply) GetMsg() string

func (*UpdatePlateReply) ProtoMessage

func (*UpdatePlateReply) ProtoMessage()

func (*UpdatePlateReply) ProtoReflect

func (x *UpdatePlateReply) ProtoReflect() protoreflect.Message

func (*UpdatePlateReply) Reset

func (x *UpdatePlateReply) Reset()

func (*UpdatePlateReply) String

func (x *UpdatePlateReply) String() string

type UpdatePlateRequest

type UpdatePlateRequest struct {
	PlateId int64  `protobuf:"varint,1,opt,name=plateId,proto3" json:"plateId,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePlateRequest) Descriptor deprecated

func (*UpdatePlateRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePlateRequest.ProtoReflect.Descriptor instead.

func (*UpdatePlateRequest) GetName

func (x *UpdatePlateRequest) GetName() string

func (*UpdatePlateRequest) GetPlateId

func (x *UpdatePlateRequest) GetPlateId() int64

func (*UpdatePlateRequest) ProtoMessage

func (*UpdatePlateRequest) ProtoMessage()

func (*UpdatePlateRequest) ProtoReflect

func (x *UpdatePlateRequest) ProtoReflect() protoreflect.Message

func (*UpdatePlateRequest) Reset

func (x *UpdatePlateRequest) Reset()

func (*UpdatePlateRequest) String

func (x *UpdatePlateRequest) String() string

type UpdatePostReply

type UpdatePostReply struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePostReply) Descriptor deprecated

func (*UpdatePostReply) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePostReply.ProtoReflect.Descriptor instead.

func (*UpdatePostReply) GetCode

func (x *UpdatePostReply) GetCode() int32

func (*UpdatePostReply) GetMsg

func (x *UpdatePostReply) GetMsg() string

func (*UpdatePostReply) ProtoMessage

func (*UpdatePostReply) ProtoMessage()

func (*UpdatePostReply) ProtoReflect

func (x *UpdatePostReply) ProtoReflect() protoreflect.Message

func (*UpdatePostReply) Reset

func (x *UpdatePostReply) Reset()

func (*UpdatePostReply) String

func (x *UpdatePostReply) String() string

type UpdatePostRequest

type UpdatePostRequest struct {
	PostId  int64  `protobuf:"varint,1,opt,name=postId,proto3" json:"postId,omitempty"`
	Title   string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	PlateId int64  `protobuf:"varint,4,opt,name=plateId,proto3" json:"plateId,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePostRequest) Descriptor deprecated

func (*UpdatePostRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePostRequest.ProtoReflect.Descriptor instead.

func (*UpdatePostRequest) GetContent

func (x *UpdatePostRequest) GetContent() string

func (*UpdatePostRequest) GetPlateId

func (x *UpdatePostRequest) GetPlateId() int64

func (*UpdatePostRequest) GetPostId

func (x *UpdatePostRequest) GetPostId() int64

func (*UpdatePostRequest) GetTitle

func (x *UpdatePostRequest) GetTitle() string

func (*UpdatePostRequest) ProtoMessage

func (*UpdatePostRequest) ProtoMessage()

func (*UpdatePostRequest) ProtoReflect

func (x *UpdatePostRequest) ProtoReflect() protoreflect.Message

func (*UpdatePostRequest) Reset

func (x *UpdatePostRequest) Reset()

func (*UpdatePostRequest) String

func (x *UpdatePostRequest) String() string

type UpdatePostStatusReply

type UpdatePostStatusReply struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePostStatusReply) Descriptor deprecated

func (*UpdatePostStatusReply) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePostStatusReply.ProtoReflect.Descriptor instead.

func (*UpdatePostStatusReply) GetCode

func (x *UpdatePostStatusReply) GetCode() int32

func (*UpdatePostStatusReply) GetMsg

func (x *UpdatePostStatusReply) GetMsg() string

func (*UpdatePostStatusReply) ProtoMessage

func (*UpdatePostStatusReply) ProtoMessage()

func (*UpdatePostStatusReply) ProtoReflect

func (x *UpdatePostStatusReply) ProtoReflect() protoreflect.Message

func (*UpdatePostStatusReply) Reset

func (x *UpdatePostStatusReply) Reset()

func (*UpdatePostStatusReply) String

func (x *UpdatePostStatusReply) String() string

type UpdatePostStatusRequest

type UpdatePostStatusRequest struct {
	PostId int64  `protobuf:"varint,1,opt,name=postId,proto3" json:"postId,omitempty"`
	Status uint32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePostStatusRequest) Descriptor deprecated

func (*UpdatePostStatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePostStatusRequest.ProtoReflect.Descriptor instead.

func (*UpdatePostStatusRequest) GetPostId

func (x *UpdatePostStatusRequest) GetPostId() int64

func (*UpdatePostStatusRequest) GetStatus

func (x *UpdatePostStatusRequest) GetStatus() uint32

func (*UpdatePostStatusRequest) ProtoMessage

func (*UpdatePostStatusRequest) ProtoMessage()

func (*UpdatePostStatusRequest) ProtoReflect

func (x *UpdatePostStatusRequest) ProtoReflect() protoreflect.Message

func (*UpdatePostStatusRequest) Reset

func (x *UpdatePostStatusRequest) Reset()

func (*UpdatePostStatusRequest) String

func (x *UpdatePostStatusRequest) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL