Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterPostHTTPServer(s *http.Server, srv PostHTTPServer)
- func RegisterPostServer(s grpc.ServiceRegistrar, srv PostServer)
- type CreatePlateReply
- func (*CreatePlateReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePlateReply) GetCode() int32
- func (x *CreatePlateReply) GetMsg() string
- func (*CreatePlateReply) ProtoMessage()
- func (x *CreatePlateReply) ProtoReflect() protoreflect.Message
- func (x *CreatePlateReply) Reset()
- func (x *CreatePlateReply) String() string
- type CreatePlateRequest
- func (*CreatePlateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePlateRequest) GetName() string
- func (*CreatePlateRequest) ProtoMessage()
- func (x *CreatePlateRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePlateRequest) Reset()
- func (x *CreatePlateRequest) String() string
- type CreatePostReply
- func (*CreatePostReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePostReply) GetCode() int32
- func (x *CreatePostReply) GetData() int64
- func (x *CreatePostReply) GetMsg() string
- func (*CreatePostReply) ProtoMessage()
- func (x *CreatePostReply) ProtoReflect() protoreflect.Message
- func (x *CreatePostReply) Reset()
- func (x *CreatePostReply) String() string
- type CreatePostRequest
- func (*CreatePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePostRequest) GetContent() string
- func (x *CreatePostRequest) GetPlateId() int64
- func (x *CreatePostRequest) GetPostId() int64
- func (x *CreatePostRequest) GetTitle() string
- func (*CreatePostRequest) ProtoMessage()
- func (x *CreatePostRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePostRequest) Reset()
- func (x *CreatePostRequest) String() string
- type DeletePlateReply
- func (*DeletePlateReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePlateReply) GetCode() int32
- func (x *DeletePlateReply) GetMsg() string
- func (*DeletePlateReply) ProtoMessage()
- func (x *DeletePlateReply) ProtoReflect() protoreflect.Message
- func (x *DeletePlateReply) Reset()
- func (x *DeletePlateReply) String() string
- type DeletePlateRequest
- func (*DeletePlateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePlateRequest) GetPlateId() int64
- func (*DeletePlateRequest) ProtoMessage()
- func (x *DeletePlateRequest) ProtoReflect() protoreflect.Message
- func (x *DeletePlateRequest) Reset()
- func (x *DeletePlateRequest) String() string
- type DeletePostReply
- func (*DeletePostReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePostReply) GetCode() int32
- func (x *DeletePostReply) GetMsg() string
- func (*DeletePostReply) ProtoMessage()
- func (x *DeletePostReply) ProtoReflect() protoreflect.Message
- func (x *DeletePostReply) Reset()
- func (x *DeletePostReply) String() string
- type DeletePostRequest
- type DetailPost
- func (*DetailPost) Descriptor() ([]byte, []int)deprecated
- func (x *DetailPost) GetContent() string
- func (x *DetailPost) GetCreatedAt() *timestamppb.Timestamp
- func (x *DetailPost) GetId() int64
- func (x *DetailPost) GetPlateId() int64
- func (x *DetailPost) GetTitle() string
- func (x *DetailPost) GetUpdatedAt() *timestamppb.Timestamp
- func (x *DetailPost) GetUserId() int64
- func (*DetailPost) ProtoMessage()
- func (x *DetailPost) ProtoReflect() protoreflect.Message
- func (x *DetailPost) Reset()
- func (x *DetailPost) String() string
- type DetailPostReply
- func (*DetailPostReply) Descriptor() ([]byte, []int)deprecated
- func (x *DetailPostReply) GetCode() int32
- func (x *DetailPostReply) GetData() *DetailPost
- func (x *DetailPostReply) GetMsg() string
- func (*DetailPostReply) ProtoMessage()
- func (x *DetailPostReply) ProtoReflect() protoreflect.Message
- func (x *DetailPostReply) Reset()
- func (x *DetailPostReply) String() string
- type DetailPostRequest
- type DetailPubPostReply
- func (*DetailPubPostReply) Descriptor() ([]byte, []int)deprecated
- func (x *DetailPubPostReply) GetCode() int32
- func (x *DetailPubPostReply) GetData() *DetailPost
- func (x *DetailPubPostReply) GetMsg() string
- func (*DetailPubPostReply) ProtoMessage()
- func (x *DetailPubPostReply) ProtoReflect() protoreflect.Message
- func (x *DetailPubPostReply) Reset()
- func (x *DetailPubPostReply) String() string
- type DetailPubPostRequest
- func (*DetailPubPostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DetailPubPostRequest) GetPostId() int64
- func (*DetailPubPostRequest) ProtoMessage()
- func (x *DetailPubPostRequest) ProtoReflect() protoreflect.Message
- func (x *DetailPubPostRequest) Reset()
- func (x *DetailPubPostRequest) String() string
- type LikePostReply
- func (*LikePostReply) Descriptor() ([]byte, []int)deprecated
- func (x *LikePostReply) GetCode() int32
- func (x *LikePostReply) GetMsg() string
- func (*LikePostReply) ProtoMessage()
- func (x *LikePostReply) ProtoReflect() protoreflect.Message
- func (x *LikePostReply) Reset()
- func (x *LikePostReply) String() string
- type LikePostRequest
- func (*LikePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LikePostRequest) GetLiked() bool
- func (x *LikePostRequest) GetPostId() int64
- func (*LikePostRequest) ProtoMessage()
- func (x *LikePostRequest) ProtoReflect() protoreflect.Message
- func (x *LikePostRequest) Reset()
- func (x *LikePostRequest) String() string
- type ListPlate
- type ListPlateReply
- func (*ListPlateReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListPlateReply) GetCode() int32
- func (x *ListPlateReply) GetData() []*ListPlate
- func (x *ListPlateReply) GetMsg() string
- func (*ListPlateReply) ProtoMessage()
- func (x *ListPlateReply) ProtoReflect() protoreflect.Message
- func (x *ListPlateReply) Reset()
- func (x *ListPlateReply) String() string
- type ListPlateRequest
- func (*ListPlateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPlateRequest) GetPage() int32
- func (x *ListPlateRequest) GetSize() int64
- func (*ListPlateRequest) ProtoMessage()
- func (x *ListPlateRequest) ProtoReflect() protoreflect.Message
- func (x *ListPlateRequest) Reset()
- func (x *ListPlateRequest) String() string
- type ListPost
- func (*ListPost) Descriptor() ([]byte, []int)deprecated
- func (x *ListPost) GetContent() string
- func (x *ListPost) GetCreatedAt() *timestamppb.Timestamp
- func (x *ListPost) GetId() int64
- func (x *ListPost) GetPlateId() int64
- func (x *ListPost) GetTitle() string
- func (x *ListPost) GetUpdatedAt() *timestamppb.Timestamp
- func (x *ListPost) GetUserId() int64
- func (*ListPost) ProtoMessage()
- func (x *ListPost) ProtoReflect() protoreflect.Message
- func (x *ListPost) Reset()
- func (x *ListPost) String() string
- type ListPostReply
- func (*ListPostReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListPostReply) GetCode() int32
- func (x *ListPostReply) GetData() []*ListPost
- func (x *ListPostReply) GetMsg() string
- func (*ListPostReply) ProtoMessage()
- func (x *ListPostReply) ProtoReflect() protoreflect.Message
- func (x *ListPostReply) Reset()
- func (x *ListPostReply) String() string
- type ListPostRequest
- func (*ListPostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPostRequest) GetPage() int32
- func (x *ListPostRequest) GetSize() int64
- func (*ListPostRequest) ProtoMessage()
- func (x *ListPostRequest) ProtoReflect() protoreflect.Message
- func (x *ListPostRequest) Reset()
- func (x *ListPostRequest) String() string
- type ListPubPostReply
- func (*ListPubPostReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListPubPostReply) GetCode() int32
- func (x *ListPubPostReply) GetData() []*ListPost
- func (x *ListPubPostReply) GetMsg() string
- func (*ListPubPostReply) ProtoMessage()
- func (x *ListPubPostReply) ProtoReflect() protoreflect.Message
- func (x *ListPubPostReply) Reset()
- func (x *ListPubPostReply) String() string
- type ListPubPostRequest
- func (*ListPubPostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPubPostRequest) GetPage() int32
- func (x *ListPubPostRequest) GetSize() int64
- func (*ListPubPostRequest) ProtoMessage()
- func (x *ListPubPostRequest) ProtoReflect() protoreflect.Message
- func (x *ListPubPostRequest) Reset()
- func (x *ListPubPostRequest) String() string
- type PostClient
- type PostHTTPClient
- type PostHTTPClientImpl
- func (c *PostHTTPClientImpl) CreatePlate(ctx context.Context, in *CreatePlateRequest, opts ...http.CallOption) (*CreatePlateReply, error)
- func (c *PostHTTPClientImpl) CreatePost(ctx context.Context, in *CreatePostRequest, opts ...http.CallOption) (*CreatePostReply, error)
- func (c *PostHTTPClientImpl) DeletePlate(ctx context.Context, in *DeletePlateRequest, opts ...http.CallOption) (*DeletePlateReply, error)
- func (c *PostHTTPClientImpl) DeletePost(ctx context.Context, in *DeletePostRequest, opts ...http.CallOption) (*DeletePostReply, error)
- func (c *PostHTTPClientImpl) DetailPost(ctx context.Context, in *DetailPostRequest, opts ...http.CallOption) (*DetailPostReply, error)
- func (c *PostHTTPClientImpl) DetailPubPost(ctx context.Context, in *DetailPubPostRequest, opts ...http.CallOption) (*DetailPubPostReply, error)
- func (c *PostHTTPClientImpl) ListPlate(ctx context.Context, in *ListPlateRequest, opts ...http.CallOption) (*ListPlateReply, error)
- func (c *PostHTTPClientImpl) ListPost(ctx context.Context, in *ListPostRequest, opts ...http.CallOption) (*ListPostReply, error)
- func (c *PostHTTPClientImpl) ListPubPost(ctx context.Context, in *ListPubPostRequest, opts ...http.CallOption) (*ListPubPostReply, error)
- func (c *PostHTTPClientImpl) PublishPost(ctx context.Context, in *PublishPostRequest, opts ...http.CallOption) (*PublishPostReply, error)
- func (c *PostHTTPClientImpl) UpdatePlate(ctx context.Context, in *UpdatePlateRequest, opts ...http.CallOption) (*UpdatePlateReply, error)
- func (c *PostHTTPClientImpl) UpdatePost(ctx context.Context, in *UpdatePostRequest, opts ...http.CallOption) (*UpdatePostReply, error)
- type PostHTTPServer
- type PostServer
- type PublishPostReply
- func (*PublishPostReply) Descriptor() ([]byte, []int)deprecated
- func (x *PublishPostReply) GetCode() int32
- func (x *PublishPostReply) GetMsg() string
- func (*PublishPostReply) ProtoMessage()
- func (x *PublishPostReply) ProtoReflect() protoreflect.Message
- func (x *PublishPostReply) Reset()
- func (x *PublishPostReply) String() string
- type PublishPostRequest
- func (*PublishPostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PublishPostRequest) GetPostId() int64
- func (*PublishPostRequest) ProtoMessage()
- func (x *PublishPostRequest) ProtoReflect() protoreflect.Message
- func (x *PublishPostRequest) Reset()
- func (x *PublishPostRequest) String() string
- type UnimplementedPostServer
- func (UnimplementedPostServer) CreatePlate(context.Context, *CreatePlateRequest) (*CreatePlateReply, error)
- func (UnimplementedPostServer) CreatePost(context.Context, *CreatePostRequest) (*CreatePostReply, error)
- func (UnimplementedPostServer) DeletePlate(context.Context, *DeletePlateRequest) (*DeletePlateReply, error)
- func (UnimplementedPostServer) DeletePost(context.Context, *DeletePostRequest) (*DeletePostReply, error)
- func (UnimplementedPostServer) DetailPost(context.Context, *DetailPostRequest) (*DetailPostReply, error)
- func (UnimplementedPostServer) DetailPubPost(context.Context, *DetailPubPostRequest) (*DetailPubPostReply, error)
- func (UnimplementedPostServer) ListPlate(context.Context, *ListPlateRequest) (*ListPlateReply, error)
- func (UnimplementedPostServer) ListPost(context.Context, *ListPostRequest) (*ListPostReply, error)
- func (UnimplementedPostServer) ListPubPost(context.Context, *ListPubPostRequest) (*ListPubPostReply, error)
- func (UnimplementedPostServer) PublishPost(context.Context, *PublishPostRequest) (*PublishPostReply, error)
- func (UnimplementedPostServer) UpdatePlate(context.Context, *UpdatePlateRequest) (*UpdatePlateReply, error)
- func (UnimplementedPostServer) UpdatePost(context.Context, *UpdatePostRequest) (*UpdatePostReply, error)
- func (UnimplementedPostServer) UpdatePostStatus(context.Context, *UpdatePostStatusRequest) (*UpdatePostStatusReply, error)
- type UnsafePostServer
- type UpdatePlateReply
- func (*UpdatePlateReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePlateReply) GetCode() int32
- func (x *UpdatePlateReply) GetMsg() string
- func (*UpdatePlateReply) ProtoMessage()
- func (x *UpdatePlateReply) ProtoReflect() protoreflect.Message
- func (x *UpdatePlateReply) Reset()
- func (x *UpdatePlateReply) String() string
- type UpdatePlateRequest
- func (*UpdatePlateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePlateRequest) GetName() string
- func (x *UpdatePlateRequest) GetPlateId() int64
- func (*UpdatePlateRequest) ProtoMessage()
- func (x *UpdatePlateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePlateRequest) Reset()
- func (x *UpdatePlateRequest) String() string
- type UpdatePostReply
- func (*UpdatePostReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePostReply) GetCode() int32
- func (x *UpdatePostReply) GetMsg() string
- func (*UpdatePostReply) ProtoMessage()
- func (x *UpdatePostReply) ProtoReflect() protoreflect.Message
- func (x *UpdatePostReply) Reset()
- func (x *UpdatePostReply) String() string
- type UpdatePostRequest
- func (*UpdatePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePostRequest) GetContent() string
- func (x *UpdatePostRequest) GetPlateId() int64
- func (x *UpdatePostRequest) GetPostId() int64
- func (x *UpdatePostRequest) GetTitle() string
- func (*UpdatePostRequest) ProtoMessage()
- func (x *UpdatePostRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePostRequest) Reset()
- func (x *UpdatePostRequest) String() string
- type UpdatePostStatusReply
- func (*UpdatePostStatusReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePostStatusReply) GetCode() int32
- func (x *UpdatePostStatusReply) GetMsg() string
- func (*UpdatePostStatusReply) ProtoMessage()
- func (x *UpdatePostStatusReply) ProtoReflect() protoreflect.Message
- func (x *UpdatePostStatusReply) Reset()
- func (x *UpdatePostStatusReply) String() string
- type UpdatePostStatusRequest
- func (*UpdatePostStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePostStatusRequest) GetPostId() int64
- func (x *UpdatePostStatusRequest) GetStatus() uint32
- func (*UpdatePostStatusRequest) ProtoMessage()
- func (x *UpdatePostStatusRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePostStatusRequest) Reset()
- func (x *UpdatePostStatusRequest) String() string
Constants ¶
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" )
const OperationPostCreatePlate = "/api.post.Post/CreatePlate"
const OperationPostCreatePost = "/api.post.Post/CreatePost"
const OperationPostDeletePlate = "/api.post.Post/DeletePlate"
const OperationPostDeletePost = "/api.post.Post/DeletePost"
const OperationPostDetailPost = "/api.post.Post/DetailPost"
const OperationPostDetailPubPost = "/api.post.Post/DetailPubPost"
const OperationPostListPlate = "/api.post.Post/ListPlate"
const OperationPostListPost = "/api.post.Post/ListPost"
const OperationPostListPubPost = "/api.post.Post/ListPubPost"
const OperationPostPublishPost = "/api.post.Post/PublishPost"
const OperationPostUpdatePlate = "/api.post.Post/UpdatePlate"
const OperationPostUpdatePost = "/api.post.Post/UpdatePost"
Variables ¶
var File_api_post_v1_post_proto protoreflect.FileDescriptor
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) ProtoMessage ¶
func (*ListPlate) ProtoMessage()
func (*ListPlate) ProtoReflect ¶
func (x *ListPlate) ProtoReflect() protoreflect.Message
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) GetContent ¶
func (*ListPost) GetCreatedAt ¶
func (x *ListPost) GetCreatedAt() *timestamppb.Timestamp
func (*ListPost) GetPlateId ¶
func (*ListPost) GetUpdatedAt ¶
func (x *ListPost) GetUpdatedAt() *timestamppb.Timestamp
func (*ListPost) ProtoMessage ¶
func (*ListPost) ProtoMessage()
func (*ListPost) ProtoReflect ¶
func (x *ListPost) ProtoReflect() protoreflect.Message
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 ¶
type PostClient interface { CreatePost(ctx context.Context, in *CreatePostRequest, opts ...grpc.CallOption) (*CreatePostReply, error) UpdatePost(ctx context.Context, in *UpdatePostRequest, opts ...grpc.CallOption) (*UpdatePostReply, error) UpdatePostStatus(ctx context.Context, in *UpdatePostStatusRequest, opts ...grpc.CallOption) (*UpdatePostStatusReply, error) DeletePost(ctx context.Context, in *DeletePostRequest, opts ...grpc.CallOption) (*DeletePostReply, error) PublishPost(ctx context.Context, in *PublishPostRequest, opts ...grpc.CallOption) (*PublishPostReply, error) ListPost(ctx context.Context, in *ListPostRequest, opts ...grpc.CallOption) (*ListPostReply, error) ListPubPost(ctx context.Context, in *ListPubPostRequest, opts ...grpc.CallOption) (*ListPubPostReply, error) DetailPost(ctx context.Context, in *DetailPostRequest, opts ...grpc.CallOption) (*DetailPostReply, error) DetailPubPost(ctx context.Context, in *DetailPubPostRequest, opts ...grpc.CallOption) (*DetailPubPostReply, error) CreatePlate(ctx context.Context, in *CreatePlateRequest, opts ...grpc.CallOption) (*CreatePlateReply, error) UpdatePlate(ctx context.Context, in *UpdatePlateRequest, opts ...grpc.CallOption) (*UpdatePlateReply, error) ListPlate(ctx context.Context, in *ListPlateRequest, opts ...grpc.CallOption) (*ListPlateReply, error) DeletePlate(ctx context.Context, in *DeletePlateRequest, opts ...grpc.CallOption) (*DeletePlateReply, error) }
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 (c *PostHTTPClientImpl) CreatePlate(ctx context.Context, in *CreatePlateRequest, opts ...http.CallOption) (*CreatePlateReply, error)
func (*PostHTTPClientImpl) CreatePost ¶
func (c *PostHTTPClientImpl) CreatePost(ctx context.Context, in *CreatePostRequest, opts ...http.CallOption) (*CreatePostReply, error)
func (*PostHTTPClientImpl) DeletePlate ¶
func (c *PostHTTPClientImpl) DeletePlate(ctx context.Context, in *DeletePlateRequest, opts ...http.CallOption) (*DeletePlateReply, error)
func (*PostHTTPClientImpl) DeletePost ¶
func (c *PostHTTPClientImpl) DeletePost(ctx context.Context, in *DeletePostRequest, opts ...http.CallOption) (*DeletePostReply, error)
func (*PostHTTPClientImpl) DetailPost ¶
func (c *PostHTTPClientImpl) DetailPost(ctx context.Context, in *DetailPostRequest, opts ...http.CallOption) (*DetailPostReply, error)
func (*PostHTTPClientImpl) DetailPubPost ¶
func (c *PostHTTPClientImpl) DetailPubPost(ctx context.Context, in *DetailPubPostRequest, opts ...http.CallOption) (*DetailPubPostReply, error)
func (*PostHTTPClientImpl) ListPlate ¶
func (c *PostHTTPClientImpl) ListPlate(ctx context.Context, in *ListPlateRequest, opts ...http.CallOption) (*ListPlateReply, error)
func (*PostHTTPClientImpl) ListPost ¶
func (c *PostHTTPClientImpl) ListPost(ctx context.Context, in *ListPostRequest, opts ...http.CallOption) (*ListPostReply, error)
func (*PostHTTPClientImpl) ListPubPost ¶
func (c *PostHTTPClientImpl) ListPubPost(ctx context.Context, in *ListPubPostRequest, opts ...http.CallOption) (*ListPubPostReply, error)
func (*PostHTTPClientImpl) PublishPost ¶
func (c *PostHTTPClientImpl) PublishPost(ctx context.Context, in *PublishPostRequest, opts ...http.CallOption) (*PublishPostReply, error)
func (*PostHTTPClientImpl) UpdatePlate ¶
func (c *PostHTTPClientImpl) UpdatePlate(ctx context.Context, in *UpdatePlateRequest, opts ...http.CallOption) (*UpdatePlateReply, error)
func (*PostHTTPClientImpl) UpdatePost ¶
func (c *PostHTTPClientImpl) UpdatePost(ctx context.Context, in *UpdatePostRequest, opts ...http.CallOption) (*UpdatePostReply, error)
type PostHTTPServer ¶
type PostHTTPServer interface { CreatePlate(context.Context, *CreatePlateRequest) (*CreatePlateReply, error) CreatePost(context.Context, *CreatePostRequest) (*CreatePostReply, error) DeletePlate(context.Context, *DeletePlateRequest) (*DeletePlateReply, error) DeletePost(context.Context, *DeletePostRequest) (*DeletePostReply, error) DetailPost(context.Context, *DetailPostRequest) (*DetailPostReply, error) DetailPubPost(context.Context, *DetailPubPostRequest) (*DetailPubPostReply, error) ListPlate(context.Context, *ListPlateRequest) (*ListPlateReply, error) ListPost(context.Context, *ListPostRequest) (*ListPostReply, error) ListPubPost(context.Context, *ListPubPostRequest) (*ListPubPostReply, error) PublishPost(context.Context, *PublishPostRequest) (*PublishPostReply, error) UpdatePlate(context.Context, *UpdatePlateRequest) (*UpdatePlateReply, error) UpdatePost(context.Context, *UpdatePostRequest) (*UpdatePostReply, error) }
type PostServer ¶
type PostServer interface { CreatePost(context.Context, *CreatePostRequest) (*CreatePostReply, error) UpdatePost(context.Context, *UpdatePostRequest) (*UpdatePostReply, error) UpdatePostStatus(context.Context, *UpdatePostStatusRequest) (*UpdatePostStatusReply, error) DeletePost(context.Context, *DeletePostRequest) (*DeletePostReply, error) PublishPost(context.Context, *PublishPostRequest) (*PublishPostReply, error) ListPost(context.Context, *ListPostRequest) (*ListPostReply, error) ListPubPost(context.Context, *ListPubPostRequest) (*ListPubPostReply, error) DetailPost(context.Context, *DetailPostRequest) (*DetailPostReply, error) DetailPubPost(context.Context, *DetailPubPostRequest) (*DetailPubPostReply, error) CreatePlate(context.Context, *CreatePlateRequest) (*CreatePlateReply, error) UpdatePlate(context.Context, *UpdatePlateRequest) (*UpdatePlateReply, error) ListPlate(context.Context, *ListPlateRequest) (*ListPlateReply, error) DeletePlate(context.Context, *DeletePlateRequest) (*DeletePlateReply, error) // contains filtered or unexported methods }
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) CreatePlate(context.Context, *CreatePlateRequest) (*CreatePlateReply, error)
func (UnimplementedPostServer) CreatePost ¶
func (UnimplementedPostServer) CreatePost(context.Context, *CreatePostRequest) (*CreatePostReply, error)
func (UnimplementedPostServer) DeletePlate ¶
func (UnimplementedPostServer) DeletePlate(context.Context, *DeletePlateRequest) (*DeletePlateReply, error)
func (UnimplementedPostServer) DeletePost ¶
func (UnimplementedPostServer) DeletePost(context.Context, *DeletePostRequest) (*DeletePostReply, error)
func (UnimplementedPostServer) DetailPost ¶
func (UnimplementedPostServer) DetailPost(context.Context, *DetailPostRequest) (*DetailPostReply, error)
func (UnimplementedPostServer) DetailPubPost ¶
func (UnimplementedPostServer) DetailPubPost(context.Context, *DetailPubPostRequest) (*DetailPubPostReply, error)
func (UnimplementedPostServer) ListPlate ¶
func (UnimplementedPostServer) ListPlate(context.Context, *ListPlateRequest) (*ListPlateReply, error)
func (UnimplementedPostServer) ListPost ¶
func (UnimplementedPostServer) ListPost(context.Context, *ListPostRequest) (*ListPostReply, error)
func (UnimplementedPostServer) ListPubPost ¶
func (UnimplementedPostServer) ListPubPost(context.Context, *ListPubPostRequest) (*ListPubPostReply, error)
func (UnimplementedPostServer) PublishPost ¶
func (UnimplementedPostServer) PublishPost(context.Context, *PublishPostRequest) (*PublishPostReply, error)
func (UnimplementedPostServer) UpdatePlate ¶
func (UnimplementedPostServer) UpdatePlate(context.Context, *UpdatePlateRequest) (*UpdatePlateReply, error)
func (UnimplementedPostServer) UpdatePost ¶
func (UnimplementedPostServer) UpdatePost(context.Context, *UpdatePostRequest) (*UpdatePostReply, error)
func (UnimplementedPostServer) UpdatePostStatus ¶
func (UnimplementedPostServer) UpdatePostStatus(context.Context, *UpdatePostStatusRequest) (*UpdatePostStatusReply, error)
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