Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterArticleRpcServer(s grpc.ServiceRegistrar, srv ArticleRpcServer)
- type AnalysisArticleResp
- func (*AnalysisArticleResp) Descriptor() ([]byte, []int)deprecated
- func (x *AnalysisArticleResp) GetArticleCount() int64
- func (x *AnalysisArticleResp) GetCategoryCount() int64
- func (x *AnalysisArticleResp) GetTagCount() int64
- func (*AnalysisArticleResp) ProtoMessage()
- func (x *AnalysisArticleResp) ProtoReflect() protoreflect.Message
- func (x *AnalysisArticleResp) Reset()
- func (x *AnalysisArticleResp) String() string
- type ArticleCategory
- func (*ArticleCategory) Descriptor() ([]byte, []int)deprecated
- func (x *ArticleCategory) GetCategoryName() string
- func (x *ArticleCategory) GetId() int64
- func (*ArticleCategory) ProtoMessage()
- func (x *ArticleCategory) ProtoReflect() protoreflect.Message
- func (x *ArticleCategory) Reset()
- func (x *ArticleCategory) String() string
- type ArticleDetails
- func (*ArticleDetails) Descriptor() ([]byte, []int)deprecated
- func (x *ArticleDetails) GetArticleContent() string
- func (x *ArticleDetails) GetArticleCover() string
- func (x *ArticleDetails) GetArticleTitle() string
- func (x *ArticleDetails) GetArticleType() int64
- func (x *ArticleDetails) GetCategory() *ArticleCategory
- func (x *ArticleDetails) GetCategoryId() int64
- func (x *ArticleDetails) GetCreatedAt() int64
- func (x *ArticleDetails) GetId() int64
- func (x *ArticleDetails) GetIsDelete() int64
- func (x *ArticleDetails) GetIsTop() int64
- func (x *ArticleDetails) GetLikeCount() int64
- func (x *ArticleDetails) GetOriginalUrl() string
- func (x *ArticleDetails) GetStatus() int64
- func (x *ArticleDetails) GetTagList() []*ArticleTag
- func (x *ArticleDetails) GetUpdatedAt() int64
- func (x *ArticleDetails) GetUserId() string
- func (x *ArticleDetails) GetViewCount() int64
- func (*ArticleDetails) ProtoMessage()
- func (x *ArticleDetails) ProtoReflect() protoreflect.Message
- func (x *ArticleDetails) Reset()
- func (x *ArticleDetails) String() string
- type ArticleNewReq
- func (*ArticleNewReq) Descriptor() ([]byte, []int)deprecated
- func (x *ArticleNewReq) GetArticleContent() string
- func (x *ArticleNewReq) GetArticleCover() string
- func (x *ArticleNewReq) GetArticleTitle() string
- func (x *ArticleNewReq) GetArticleType() int64
- func (x *ArticleNewReq) GetCategoryName() string
- func (x *ArticleNewReq) GetId() int64
- func (x *ArticleNewReq) GetOriginalUrl() string
- func (x *ArticleNewReq) GetStatus() int64
- func (x *ArticleNewReq) GetTagNameList() []string
- func (x *ArticleNewReq) GetUserId() string
- func (*ArticleNewReq) ProtoMessage()
- func (x *ArticleNewReq) ProtoReflect() protoreflect.Message
- func (x *ArticleNewReq) Reset()
- func (x *ArticleNewReq) String() string
- type ArticlePreview
- func (*ArticlePreview) Descriptor() ([]byte, []int)deprecated
- func (x *ArticlePreview) GetArticleCover() string
- func (x *ArticlePreview) GetArticleTitle() string
- func (x *ArticlePreview) GetCreatedAt() int64
- func (x *ArticlePreview) GetId() int64
- func (*ArticlePreview) ProtoMessage()
- func (x *ArticlePreview) ProtoReflect() protoreflect.Message
- func (x *ArticlePreview) Reset()
- func (x *ArticlePreview) String() string
- type ArticleRecommendResp
- func (*ArticleRecommendResp) Descriptor() ([]byte, []int)deprecated
- func (x *ArticleRecommendResp) GetLast() *ArticlePreview
- func (x *ArticleRecommendResp) GetNewest() []*ArticlePreview
- func (x *ArticleRecommendResp) GetNext() *ArticlePreview
- func (x *ArticleRecommendResp) GetRecommend() []*ArticlePreview
- func (*ArticleRecommendResp) ProtoMessage()
- func (x *ArticleRecommendResp) ProtoReflect() protoreflect.Message
- func (x *ArticleRecommendResp) Reset()
- func (x *ArticleRecommendResp) String() string
- type ArticleRpcClient
- type ArticleRpcServer
- type ArticleTag
- type BatchResp
- type CategoryDetails
- func (*CategoryDetails) Descriptor() ([]byte, []int)deprecated
- func (x *CategoryDetails) GetArticleCount() int64
- func (x *CategoryDetails) GetCategoryName() string
- func (x *CategoryDetails) GetCreatedAt() int64
- func (x *CategoryDetails) GetId() int64
- func (x *CategoryDetails) GetUpdatedAt() int64
- func (*CategoryDetails) ProtoMessage()
- func (x *CategoryDetails) ProtoReflect() protoreflect.Message
- func (x *CategoryDetails) Reset()
- func (x *CategoryDetails) String() string
- type CategoryNewReq
- func (*CategoryNewReq) Descriptor() ([]byte, []int)deprecated
- func (x *CategoryNewReq) GetCategoryName() string
- func (x *CategoryNewReq) GetId() int64
- func (*CategoryNewReq) ProtoMessage()
- func (x *CategoryNewReq) ProtoReflect() protoreflect.Message
- func (x *CategoryNewReq) Reset()
- func (x *CategoryNewReq) String() string
- type CountResp
- type EmptyReq
- type EmptyResp
- type FindArticleListReq
- func (*FindArticleListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindArticleListReq) GetArticleTitle() string
- func (x *FindArticleListReq) GetArticleType() int64
- func (x *FindArticleListReq) GetCategoryName() string
- func (x *FindArticleListReq) GetIsDelete() int64
- func (x *FindArticleListReq) GetIsTop() int64
- func (x *FindArticleListReq) GetPage() int64
- func (x *FindArticleListReq) GetPageSize() int64
- func (x *FindArticleListReq) GetSorts() []string
- func (x *FindArticleListReq) GetStatus() int64
- func (x *FindArticleListReq) GetTagName() string
- func (*FindArticleListReq) ProtoMessage()
- func (x *FindArticleListReq) ProtoReflect() protoreflect.Message
- func (x *FindArticleListReq) Reset()
- func (x *FindArticleListReq) String() string
- type FindArticleListResp
- func (*FindArticleListResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindArticleListResp) GetList() []*ArticleDetails
- func (x *FindArticleListResp) GetTotal() int64
- func (*FindArticleListResp) ProtoMessage()
- func (x *FindArticleListResp) ProtoReflect() protoreflect.Message
- func (x *FindArticleListResp) Reset()
- func (x *FindArticleListResp) String() string
- type FindArticlePreviewListReq
- func (*FindArticlePreviewListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindArticlePreviewListReq) GetIds() []int64
- func (*FindArticlePreviewListReq) ProtoMessage()
- func (x *FindArticlePreviewListReq) ProtoReflect() protoreflect.Message
- func (x *FindArticlePreviewListReq) Reset()
- func (x *FindArticlePreviewListReq) String() string
- type FindArticlePreviewListResp
- func (*FindArticlePreviewListResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindArticlePreviewListResp) GetList() []*ArticlePreview
- func (*FindArticlePreviewListResp) ProtoMessage()
- func (x *FindArticlePreviewListResp) ProtoReflect() protoreflect.Message
- func (x *FindArticlePreviewListResp) Reset()
- func (x *FindArticlePreviewListResp) String() string
- type FindCategoryListReq
- func (*FindCategoryListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindCategoryListReq) GetCategoryName() string
- func (x *FindCategoryListReq) GetPage() int64
- func (x *FindCategoryListReq) GetPageSize() int64
- func (x *FindCategoryListReq) GetSorts() []string
- func (*FindCategoryListReq) ProtoMessage()
- func (x *FindCategoryListReq) ProtoReflect() protoreflect.Message
- func (x *FindCategoryListReq) Reset()
- func (x *FindCategoryListReq) String() string
- type FindCategoryListResp
- func (*FindCategoryListResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindCategoryListResp) GetList() []*CategoryDetails
- func (x *FindCategoryListResp) GetTotal() int64
- func (*FindCategoryListResp) ProtoMessage()
- func (x *FindCategoryListResp) ProtoReflect() protoreflect.Message
- func (x *FindCategoryListResp) Reset()
- func (x *FindCategoryListResp) String() string
- type FindLikeArticleResp
- func (*FindLikeArticleResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindLikeArticleResp) GetLikeArticleList() []int64
- func (*FindLikeArticleResp) ProtoMessage()
- func (x *FindLikeArticleResp) ProtoReflect() protoreflect.Message
- func (x *FindLikeArticleResp) Reset()
- func (x *FindLikeArticleResp) String() string
- type FindTagListReq
- func (*FindTagListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindTagListReq) GetPage() int64
- func (x *FindTagListReq) GetPageSize() int64
- func (x *FindTagListReq) GetSorts() []string
- func (x *FindTagListReq) GetTagName() string
- func (*FindTagListReq) ProtoMessage()
- func (x *FindTagListReq) ProtoReflect() protoreflect.Message
- func (x *FindTagListReq) Reset()
- func (x *FindTagListReq) String() string
- type FindTagListResp
- func (*FindTagListResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindTagListResp) GetList() []*TagDetails
- func (x *FindTagListResp) GetTotal() int64
- func (*FindTagListResp) ProtoMessage()
- func (x *FindTagListResp) ProtoReflect() protoreflect.Message
- func (x *FindTagListResp) Reset()
- func (x *FindTagListResp) String() string
- type IdReq
- type IdsReq
- type RecycleArticleReq
- func (*RecycleArticleReq) Descriptor() ([]byte, []int)deprecated
- func (x *RecycleArticleReq) GetArticleId() int64
- func (x *RecycleArticleReq) GetIsDelete() int64
- func (*RecycleArticleReq) ProtoMessage()
- func (x *RecycleArticleReq) ProtoReflect() protoreflect.Message
- func (x *RecycleArticleReq) Reset()
- func (x *RecycleArticleReq) String() string
- type TagDetails
- func (*TagDetails) Descriptor() ([]byte, []int)deprecated
- func (x *TagDetails) GetArticleCount() int64
- func (x *TagDetails) GetCreatedAt() int64
- func (x *TagDetails) GetId() int64
- func (x *TagDetails) GetTagName() string
- func (x *TagDetails) GetUpdatedAt() int64
- func (*TagDetails) ProtoMessage()
- func (x *TagDetails) ProtoReflect() protoreflect.Message
- func (x *TagDetails) Reset()
- func (x *TagDetails) String() string
- type TagNewReq
- type TopArticleReq
- func (*TopArticleReq) Descriptor() ([]byte, []int)deprecated
- func (x *TopArticleReq) GetArticleId() int64
- func (x *TopArticleReq) GetIsTop() int64
- func (*TopArticleReq) ProtoMessage()
- func (x *TopArticleReq) ProtoReflect() protoreflect.Message
- func (x *TopArticleReq) Reset()
- func (x *TopArticleReq) String() string
- type UnimplementedArticleRpcServer
- func (UnimplementedArticleRpcServer) AddArticle(context.Context, *ArticleNewReq) (*ArticleDetails, error)
- func (UnimplementedArticleRpcServer) AddCategory(context.Context, *CategoryNewReq) (*CategoryDetails, error)
- func (UnimplementedArticleRpcServer) AddTag(context.Context, *TagNewReq) (*TagDetails, error)
- func (UnimplementedArticleRpcServer) AnalysisArticle(context.Context, *EmptyReq) (*AnalysisArticleResp, error)
- func (UnimplementedArticleRpcServer) DeleteArticle(context.Context, *IdsReq) (*BatchResp, error)
- func (UnimplementedArticleRpcServer) DeleteCategory(context.Context, *IdsReq) (*BatchResp, error)
- func (UnimplementedArticleRpcServer) DeleteTag(context.Context, *IdsReq) (*BatchResp, error)
- func (UnimplementedArticleRpcServer) FindArticleList(context.Context, *FindArticleListReq) (*FindArticleListResp, error)
- func (UnimplementedArticleRpcServer) FindArticlePreviewList(context.Context, *FindArticlePreviewListReq) (*FindArticlePreviewListResp, error)
- func (UnimplementedArticleRpcServer) FindArticlePublicList(context.Context, *FindArticleListReq) (*FindArticleListResp, error)
- func (UnimplementedArticleRpcServer) FindCategoryList(context.Context, *FindCategoryListReq) (*FindCategoryListResp, error)
- func (UnimplementedArticleRpcServer) FindTagList(context.Context, *FindTagListReq) (*FindTagListResp, error)
- func (UnimplementedArticleRpcServer) FindUserLikeArticle(context.Context, *UserIdReq) (*FindLikeArticleResp, error)
- func (UnimplementedArticleRpcServer) GetArticle(context.Context, *IdReq) (*ArticleDetails, error)
- func (UnimplementedArticleRpcServer) GetArticleRecommend(context.Context, *IdReq) (*ArticleRecommendResp, error)
- func (UnimplementedArticleRpcServer) GetCategory(context.Context, *IdReq) (*CategoryDetails, error)
- func (UnimplementedArticleRpcServer) GetTag(context.Context, *IdReq) (*TagDetails, error)
- func (UnimplementedArticleRpcServer) LikeArticle(context.Context, *IdReq) (*EmptyResp, error)
- func (UnimplementedArticleRpcServer) RecycleArticle(context.Context, *RecycleArticleReq) (*EmptyResp, error)
- func (UnimplementedArticleRpcServer) TopArticle(context.Context, *TopArticleReq) (*EmptyResp, error)
- func (UnimplementedArticleRpcServer) UpdateArticle(context.Context, *ArticleNewReq) (*ArticleDetails, error)
- func (UnimplementedArticleRpcServer) UpdateCategory(context.Context, *CategoryNewReq) (*CategoryDetails, error)
- func (UnimplementedArticleRpcServer) UpdateTag(context.Context, *TagNewReq) (*TagDetails, error)
- type UnsafeArticleRpcServer
- type UserIdReq
Constants ¶
const ( ArticleRpc_AddArticle_FullMethodName = "/articlerpc.ArticleRpc/AddArticle" ArticleRpc_UpdateArticle_FullMethodName = "/articlerpc.ArticleRpc/UpdateArticle" ArticleRpc_DeleteArticle_FullMethodName = "/articlerpc.ArticleRpc/DeleteArticle" ArticleRpc_FindArticleList_FullMethodName = "/articlerpc.ArticleRpc/FindArticleList" ArticleRpc_FindArticlePublicList_FullMethodName = "/articlerpc.ArticleRpc/FindArticlePublicList" ArticleRpc_FindArticlePreviewList_FullMethodName = "/articlerpc.ArticleRpc/FindArticlePreviewList" ArticleRpc_RecycleArticle_FullMethodName = "/articlerpc.ArticleRpc/RecycleArticle" ArticleRpc_TopArticle_FullMethodName = "/articlerpc.ArticleRpc/TopArticle" ArticleRpc_GetArticle_FullMethodName = "/articlerpc.ArticleRpc/GetArticle" ArticleRpc_GetArticleRecommend_FullMethodName = "/articlerpc.ArticleRpc/GetArticleRecommend" ArticleRpc_LikeArticle_FullMethodName = "/articlerpc.ArticleRpc/LikeArticle" ArticleRpc_FindUserLikeArticle_FullMethodName = "/articlerpc.ArticleRpc/FindUserLikeArticle" ArticleRpc_AnalysisArticle_FullMethodName = "/articlerpc.ArticleRpc/AnalysisArticle" ArticleRpc_AddCategory_FullMethodName = "/articlerpc.ArticleRpc/AddCategory" ArticleRpc_UpdateCategory_FullMethodName = "/articlerpc.ArticleRpc/UpdateCategory" ArticleRpc_GetCategory_FullMethodName = "/articlerpc.ArticleRpc/GetCategory" ArticleRpc_DeleteCategory_FullMethodName = "/articlerpc.ArticleRpc/DeleteCategory" ArticleRpc_FindCategoryList_FullMethodName = "/articlerpc.ArticleRpc/FindCategoryList" ArticleRpc_AddTag_FullMethodName = "/articlerpc.ArticleRpc/AddTag" ArticleRpc_UpdateTag_FullMethodName = "/articlerpc.ArticleRpc/UpdateTag" ArticleRpc_GetTag_FullMethodName = "/articlerpc.ArticleRpc/GetTag" ArticleRpc_DeleteTag_FullMethodName = "/articlerpc.ArticleRpc/DeleteTag" ArticleRpc_FindTagList_FullMethodName = "/articlerpc.ArticleRpc/FindTagList" )
Variables ¶
var ArticleRpc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "articlerpc.ArticleRpc", HandlerType: (*ArticleRpcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddArticle", Handler: _ArticleRpc_AddArticle_Handler, }, { MethodName: "UpdateArticle", Handler: _ArticleRpc_UpdateArticle_Handler, }, { MethodName: "DeleteArticle", Handler: _ArticleRpc_DeleteArticle_Handler, }, { MethodName: "FindArticleList", Handler: _ArticleRpc_FindArticleList_Handler, }, { MethodName: "FindArticlePublicList", Handler: _ArticleRpc_FindArticlePublicList_Handler, }, { MethodName: "FindArticlePreviewList", Handler: _ArticleRpc_FindArticlePreviewList_Handler, }, { MethodName: "RecycleArticle", Handler: _ArticleRpc_RecycleArticle_Handler, }, { MethodName: "TopArticle", Handler: _ArticleRpc_TopArticle_Handler, }, { MethodName: "GetArticle", Handler: _ArticleRpc_GetArticle_Handler, }, { MethodName: "GetArticleRecommend", Handler: _ArticleRpc_GetArticleRecommend_Handler, }, { MethodName: "LikeArticle", Handler: _ArticleRpc_LikeArticle_Handler, }, { MethodName: "FindUserLikeArticle", Handler: _ArticleRpc_FindUserLikeArticle_Handler, }, { MethodName: "AnalysisArticle", Handler: _ArticleRpc_AnalysisArticle_Handler, }, { MethodName: "AddCategory", Handler: _ArticleRpc_AddCategory_Handler, }, { MethodName: "UpdateCategory", Handler: _ArticleRpc_UpdateCategory_Handler, }, { MethodName: "GetCategory", Handler: _ArticleRpc_GetCategory_Handler, }, { MethodName: "DeleteCategory", Handler: _ArticleRpc_DeleteCategory_Handler, }, { MethodName: "FindCategoryList", Handler: _ArticleRpc_FindCategoryList_Handler, }, { MethodName: "AddTag", Handler: _ArticleRpc_AddTag_Handler, }, { MethodName: "UpdateTag", Handler: _ArticleRpc_UpdateTag_Handler, }, { MethodName: "GetTag", Handler: _ArticleRpc_GetTag_Handler, }, { MethodName: "DeleteTag", Handler: _ArticleRpc_DeleteTag_Handler, }, { MethodName: "FindTagList", Handler: _ArticleRpc_FindTagList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "article.proto", }
ArticleRpc_ServiceDesc is the grpc.ServiceDesc for ArticleRpc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_article_proto protoreflect.FileDescriptor
Functions ¶
func RegisterArticleRpcServer ¶
func RegisterArticleRpcServer(s grpc.ServiceRegistrar, srv ArticleRpcServer)
Types ¶
type AnalysisArticleResp ¶
type AnalysisArticleResp struct { ArticleCount int64 `protobuf:"varint,1,opt,name=article_count,json=articleCount,proto3" json:"article_count,omitempty"` CategoryCount int64 `protobuf:"varint,2,opt,name=category_count,json=categoryCount,proto3" json:"category_count,omitempty"` TagCount int64 `protobuf:"varint,3,opt,name=tag_count,json=tagCount,proto3" json:"tag_count,omitempty"` // contains filtered or unexported fields }
func (*AnalysisArticleResp) Descriptor
deprecated
func (*AnalysisArticleResp) Descriptor() ([]byte, []int)
Deprecated: Use AnalysisArticleResp.ProtoReflect.Descriptor instead.
func (*AnalysisArticleResp) GetArticleCount ¶
func (x *AnalysisArticleResp) GetArticleCount() int64
func (*AnalysisArticleResp) GetCategoryCount ¶
func (x *AnalysisArticleResp) GetCategoryCount() int64
func (*AnalysisArticleResp) GetTagCount ¶
func (x *AnalysisArticleResp) GetTagCount() int64
func (*AnalysisArticleResp) ProtoMessage ¶
func (*AnalysisArticleResp) ProtoMessage()
func (*AnalysisArticleResp) ProtoReflect ¶
func (x *AnalysisArticleResp) ProtoReflect() protoreflect.Message
func (*AnalysisArticleResp) Reset ¶
func (x *AnalysisArticleResp) Reset()
func (*AnalysisArticleResp) String ¶
func (x *AnalysisArticleResp) String() string
type ArticleCategory ¶
type ArticleCategory struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id CategoryName string `protobuf:"bytes,2,opt,name=category_name,json=categoryName,proto3" json:"category_name,omitempty"` // 分类名 // contains filtered or unexported fields }
func (*ArticleCategory) Descriptor
deprecated
func (*ArticleCategory) Descriptor() ([]byte, []int)
Deprecated: Use ArticleCategory.ProtoReflect.Descriptor instead.
func (*ArticleCategory) GetCategoryName ¶
func (x *ArticleCategory) GetCategoryName() string
func (*ArticleCategory) GetId ¶
func (x *ArticleCategory) GetId() int64
func (*ArticleCategory) ProtoMessage ¶
func (*ArticleCategory) ProtoMessage()
func (*ArticleCategory) ProtoReflect ¶
func (x *ArticleCategory) ProtoReflect() protoreflect.Message
func (*ArticleCategory) Reset ¶
func (x *ArticleCategory) Reset()
func (*ArticleCategory) String ¶
func (x *ArticleCategory) String() string
type ArticleDetails ¶
type ArticleDetails struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 作者 CategoryId int64 `protobuf:"varint,3,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` // 文章分类 ArticleCover string `protobuf:"bytes,4,opt,name=article_cover,json=articleCover,proto3" json:"article_cover,omitempty"` // 文章缩略图 ArticleTitle string `protobuf:"bytes,5,opt,name=article_title,json=articleTitle,proto3" json:"article_title,omitempty"` // 标题 ArticleContent string `protobuf:"bytes,6,opt,name=article_content,json=articleContent,proto3" json:"article_content,omitempty"` // 内容 ArticleType int64 `protobuf:"varint,7,opt,name=article_type,json=articleType,proto3" json:"article_type,omitempty"` // 文章类型 1原创 2转载 3翻译 OriginalUrl string `protobuf:"bytes,8,opt,name=original_url,json=originalUrl,proto3" json:"original_url,omitempty"` // 原文链接 IsTop int64 `protobuf:"varint,9,opt,name=is_top,json=isTop,proto3" json:"is_top,omitempty"` // 是否置顶 0否 1是 IsDelete int64 `protobuf:"varint,10,opt,name=is_delete,json=isDelete,proto3" json:"is_delete,omitempty"` // 是否删除 0否 1是 Status int64 `protobuf:"varint,11,opt,name=status,proto3" json:"status,omitempty"` // 状态值 1公开 2私密 3草稿 4已删除 CreatedAt int64 `protobuf:"varint,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 发表时间 UpdatedAt int64 `protobuf:"varint,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间 Category *ArticleCategory `protobuf:"bytes,14,opt,name=category,proto3" json:"category,omitempty"` // 分类 TagList []*ArticleTag `protobuf:"bytes,15,rep,name=tag_list,json=tagList,proto3" json:"tag_list,omitempty"` // 标签 LikeCount int64 `protobuf:"varint,16,opt,name=like_count,json=likeCount,proto3" json:"like_count,omitempty"` // 点赞数 ViewCount int64 `protobuf:"varint,17,opt,name=view_count,json=viewCount,proto3" json:"view_count,omitempty"` // 查看数量 // contains filtered or unexported fields }
func (*ArticleDetails) Descriptor
deprecated
func (*ArticleDetails) Descriptor() ([]byte, []int)
Deprecated: Use ArticleDetails.ProtoReflect.Descriptor instead.
func (*ArticleDetails) GetArticleContent ¶
func (x *ArticleDetails) GetArticleContent() string
func (*ArticleDetails) GetArticleCover ¶
func (x *ArticleDetails) GetArticleCover() string
func (*ArticleDetails) GetArticleTitle ¶
func (x *ArticleDetails) GetArticleTitle() string
func (*ArticleDetails) GetArticleType ¶
func (x *ArticleDetails) GetArticleType() int64
func (*ArticleDetails) GetCategory ¶
func (x *ArticleDetails) GetCategory() *ArticleCategory
func (*ArticleDetails) GetCategoryId ¶
func (x *ArticleDetails) GetCategoryId() int64
func (*ArticleDetails) GetCreatedAt ¶
func (x *ArticleDetails) GetCreatedAt() int64
func (*ArticleDetails) GetId ¶
func (x *ArticleDetails) GetId() int64
func (*ArticleDetails) GetIsDelete ¶
func (x *ArticleDetails) GetIsDelete() int64
func (*ArticleDetails) GetIsTop ¶
func (x *ArticleDetails) GetIsTop() int64
func (*ArticleDetails) GetLikeCount ¶
func (x *ArticleDetails) GetLikeCount() int64
func (*ArticleDetails) GetOriginalUrl ¶
func (x *ArticleDetails) GetOriginalUrl() string
func (*ArticleDetails) GetStatus ¶
func (x *ArticleDetails) GetStatus() int64
func (*ArticleDetails) GetTagList ¶
func (x *ArticleDetails) GetTagList() []*ArticleTag
func (*ArticleDetails) GetUpdatedAt ¶
func (x *ArticleDetails) GetUpdatedAt() int64
func (*ArticleDetails) GetUserId ¶
func (x *ArticleDetails) GetUserId() string
func (*ArticleDetails) GetViewCount ¶
func (x *ArticleDetails) GetViewCount() int64
func (*ArticleDetails) ProtoMessage ¶
func (*ArticleDetails) ProtoMessage()
func (*ArticleDetails) ProtoReflect ¶
func (x *ArticleDetails) ProtoReflect() protoreflect.Message
func (*ArticleDetails) Reset ¶
func (x *ArticleDetails) Reset()
func (*ArticleDetails) String ¶
func (x *ArticleDetails) String() string
type ArticleNewReq ¶
type ArticleNewReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 作者 // int64 category_id = 3;// 文章分类 ArticleCover string `protobuf:"bytes,4,opt,name=article_cover,json=articleCover,proto3" json:"article_cover,omitempty"` // 文章缩略图 ArticleTitle string `protobuf:"bytes,5,opt,name=article_title,json=articleTitle,proto3" json:"article_title,omitempty"` // 标题 ArticleContent string `protobuf:"bytes,6,opt,name=article_content,json=articleContent,proto3" json:"article_content,omitempty"` // 内容 ArticleType int64 `protobuf:"varint,7,opt,name=article_type,json=articleType,proto3" json:"article_type,omitempty"` // 文章类型 1原创 2转载 3翻译 OriginalUrl string `protobuf:"bytes,8,opt,name=original_url,json=originalUrl,proto3" json:"original_url,omitempty"` // 原文链接 // int64 is_top = 9;// 是否置顶 0否 1是 // int64 is_delete = 10;// 是否删除 0否 1是 Status int64 `protobuf:"varint,11,opt,name=status,proto3" json:"status,omitempty"` // 状态值 1 公开 2 私密 3 草稿 4 已删除 // int64 created_at = 12;// 发表时间 // int64 updated_at = 13;// 更新时间 // int64 like_count = 14;// 点赞数 CategoryName string `protobuf:"bytes,15,opt,name=category_name,json=categoryName,proto3" json:"category_name,omitempty"` // 分类名 TagNameList []string `protobuf:"bytes,16,rep,name=tag_name_list,json=tagNameList,proto3" json:"tag_name_list,omitempty"` // 标签名 // contains filtered or unexported fields }
article结构体
func (*ArticleNewReq) Descriptor
deprecated
func (*ArticleNewReq) Descriptor() ([]byte, []int)
Deprecated: Use ArticleNewReq.ProtoReflect.Descriptor instead.
func (*ArticleNewReq) GetArticleContent ¶
func (x *ArticleNewReq) GetArticleContent() string
func (*ArticleNewReq) GetArticleCover ¶
func (x *ArticleNewReq) GetArticleCover() string
func (*ArticleNewReq) GetArticleTitle ¶
func (x *ArticleNewReq) GetArticleTitle() string
func (*ArticleNewReq) GetArticleType ¶
func (x *ArticleNewReq) GetArticleType() int64
func (*ArticleNewReq) GetCategoryName ¶
func (x *ArticleNewReq) GetCategoryName() string
func (*ArticleNewReq) GetId ¶
func (x *ArticleNewReq) GetId() int64
func (*ArticleNewReq) GetOriginalUrl ¶
func (x *ArticleNewReq) GetOriginalUrl() string
func (*ArticleNewReq) GetStatus ¶
func (x *ArticleNewReq) GetStatus() int64
func (*ArticleNewReq) GetTagNameList ¶
func (x *ArticleNewReq) GetTagNameList() []string
func (*ArticleNewReq) GetUserId ¶
func (x *ArticleNewReq) GetUserId() string
func (*ArticleNewReq) ProtoMessage ¶
func (*ArticleNewReq) ProtoMessage()
func (*ArticleNewReq) ProtoReflect ¶
func (x *ArticleNewReq) ProtoReflect() protoreflect.Message
func (*ArticleNewReq) Reset ¶
func (x *ArticleNewReq) Reset()
func (*ArticleNewReq) String ¶
func (x *ArticleNewReq) String() string
type ArticlePreview ¶
type ArticlePreview struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id ArticleCover string `protobuf:"bytes,4,opt,name=article_cover,json=articleCover,proto3" json:"article_cover,omitempty"` // 文章缩略图 ArticleTitle string `protobuf:"bytes,5,opt,name=article_title,json=articleTitle,proto3" json:"article_title,omitempty"` // 标题 CreatedAt int64 `protobuf:"varint,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 发表时间 // contains filtered or unexported fields }
func (*ArticlePreview) Descriptor
deprecated
func (*ArticlePreview) Descriptor() ([]byte, []int)
Deprecated: Use ArticlePreview.ProtoReflect.Descriptor instead.
func (*ArticlePreview) GetArticleCover ¶
func (x *ArticlePreview) GetArticleCover() string
func (*ArticlePreview) GetArticleTitle ¶
func (x *ArticlePreview) GetArticleTitle() string
func (*ArticlePreview) GetCreatedAt ¶
func (x *ArticlePreview) GetCreatedAt() int64
func (*ArticlePreview) GetId ¶
func (x *ArticlePreview) GetId() int64
func (*ArticlePreview) ProtoMessage ¶
func (*ArticlePreview) ProtoMessage()
func (*ArticlePreview) ProtoReflect ¶
func (x *ArticlePreview) ProtoReflect() protoreflect.Message
func (*ArticlePreview) Reset ¶
func (x *ArticlePreview) Reset()
func (*ArticlePreview) String ¶
func (x *ArticlePreview) String() string
type ArticleRecommendResp ¶
type ArticleRecommendResp struct { Last *ArticlePreview `protobuf:"bytes,1,opt,name=last,proto3" json:"last,omitempty"` Next *ArticlePreview `protobuf:"bytes,2,opt,name=next,proto3" json:"next,omitempty"` Recommend []*ArticlePreview `protobuf:"bytes,3,rep,name=recommend,proto3" json:"recommend,omitempty"` Newest []*ArticlePreview `protobuf:"bytes,4,rep,name=newest,proto3" json:"newest,omitempty"` // contains filtered or unexported fields }
func (*ArticleRecommendResp) Descriptor
deprecated
func (*ArticleRecommendResp) Descriptor() ([]byte, []int)
Deprecated: Use ArticleRecommendResp.ProtoReflect.Descriptor instead.
func (*ArticleRecommendResp) GetLast ¶
func (x *ArticleRecommendResp) GetLast() *ArticlePreview
func (*ArticleRecommendResp) GetNewest ¶
func (x *ArticleRecommendResp) GetNewest() []*ArticlePreview
func (*ArticleRecommendResp) GetNext ¶
func (x *ArticleRecommendResp) GetNext() *ArticlePreview
func (*ArticleRecommendResp) GetRecommend ¶
func (x *ArticleRecommendResp) GetRecommend() []*ArticlePreview
func (*ArticleRecommendResp) ProtoMessage ¶
func (*ArticleRecommendResp) ProtoMessage()
func (*ArticleRecommendResp) ProtoReflect ¶
func (x *ArticleRecommendResp) ProtoReflect() protoreflect.Message
func (*ArticleRecommendResp) Reset ¶
func (x *ArticleRecommendResp) Reset()
func (*ArticleRecommendResp) String ¶
func (x *ArticleRecommendResp) String() string
type ArticleRpcClient ¶
type ArticleRpcClient interface { // 创建文章 AddArticle(ctx context.Context, in *ArticleNewReq, opts ...grpc.CallOption) (*ArticleDetails, error) // 更新文章 UpdateArticle(ctx context.Context, in *ArticleNewReq, opts ...grpc.CallOption) (*ArticleDetails, error) // 删除文章 DeleteArticle(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error) // 查询文章列表 FindArticleList(ctx context.Context, in *FindArticleListReq, opts ...grpc.CallOption) (*FindArticleListResp, error) // 查询文章列表 FindArticlePublicList(ctx context.Context, in *FindArticleListReq, opts ...grpc.CallOption) (*FindArticleListResp, error) // 查询文章列表 FindArticlePreviewList(ctx context.Context, in *FindArticlePreviewListReq, opts ...grpc.CallOption) (*FindArticlePreviewListResp, error) // 回收文章 RecycleArticle(ctx context.Context, in *RecycleArticleReq, opts ...grpc.CallOption) (*EmptyResp, error) // 置顶文章 TopArticle(ctx context.Context, in *TopArticleReq, opts ...grpc.CallOption) (*EmptyResp, error) // 查询文章 GetArticle(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*ArticleDetails, error) // 查询文章推荐 GetArticleRecommend(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*ArticleRecommendResp, error) // 点赞文章 LikeArticle(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*EmptyResp, error) // 用户点赞的文章 FindUserLikeArticle(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*FindLikeArticleResp, error) // 查询文章数量 AnalysisArticle(ctx context.Context, in *EmptyReq, opts ...grpc.CallOption) (*AnalysisArticleResp, error) // 创建文章分类 AddCategory(ctx context.Context, in *CategoryNewReq, opts ...grpc.CallOption) (*CategoryDetails, error) // 更新文章分类 UpdateCategory(ctx context.Context, in *CategoryNewReq, opts ...grpc.CallOption) (*CategoryDetails, error) // 查询文章分类 GetCategory(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*CategoryDetails, error) // 删除文章分类 DeleteCategory(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error) // 查询文章分类列表 FindCategoryList(ctx context.Context, in *FindCategoryListReq, opts ...grpc.CallOption) (*FindCategoryListResp, error) // 创建标签 AddTag(ctx context.Context, in *TagNewReq, opts ...grpc.CallOption) (*TagDetails, error) // 更新标签 UpdateTag(ctx context.Context, in *TagNewReq, opts ...grpc.CallOption) (*TagDetails, error) // 查询标签 GetTag(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*TagDetails, error) // 删除标签 DeleteTag(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error) // 查询标签列表 FindTagList(ctx context.Context, in *FindTagListReq, opts ...grpc.CallOption) (*FindTagListResp, error) }
ArticleRpcClient is the client API for ArticleRpc 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 NewArticleRpcClient ¶
func NewArticleRpcClient(cc grpc.ClientConnInterface) ArticleRpcClient
type ArticleRpcServer ¶
type ArticleRpcServer interface { // 创建文章 AddArticle(context.Context, *ArticleNewReq) (*ArticleDetails, error) // 更新文章 UpdateArticle(context.Context, *ArticleNewReq) (*ArticleDetails, error) // 删除文章 DeleteArticle(context.Context, *IdsReq) (*BatchResp, error) // 查询文章列表 FindArticleList(context.Context, *FindArticleListReq) (*FindArticleListResp, error) // 查询文章列表 FindArticlePublicList(context.Context, *FindArticleListReq) (*FindArticleListResp, error) // 查询文章列表 FindArticlePreviewList(context.Context, *FindArticlePreviewListReq) (*FindArticlePreviewListResp, error) // 回收文章 RecycleArticle(context.Context, *RecycleArticleReq) (*EmptyResp, error) // 置顶文章 TopArticle(context.Context, *TopArticleReq) (*EmptyResp, error) // 查询文章 GetArticle(context.Context, *IdReq) (*ArticleDetails, error) // 查询文章推荐 GetArticleRecommend(context.Context, *IdReq) (*ArticleRecommendResp, error) // 点赞文章 LikeArticle(context.Context, *IdReq) (*EmptyResp, error) // 用户点赞的文章 FindUserLikeArticle(context.Context, *UserIdReq) (*FindLikeArticleResp, error) // 查询文章数量 AnalysisArticle(context.Context, *EmptyReq) (*AnalysisArticleResp, error) // 创建文章分类 AddCategory(context.Context, *CategoryNewReq) (*CategoryDetails, error) // 更新文章分类 UpdateCategory(context.Context, *CategoryNewReq) (*CategoryDetails, error) // 查询文章分类 GetCategory(context.Context, *IdReq) (*CategoryDetails, error) // 删除文章分类 DeleteCategory(context.Context, *IdsReq) (*BatchResp, error) // 查询文章分类列表 FindCategoryList(context.Context, *FindCategoryListReq) (*FindCategoryListResp, error) // 创建标签 AddTag(context.Context, *TagNewReq) (*TagDetails, error) // 更新标签 UpdateTag(context.Context, *TagNewReq) (*TagDetails, error) // 查询标签 GetTag(context.Context, *IdReq) (*TagDetails, error) // 删除标签 DeleteTag(context.Context, *IdsReq) (*BatchResp, error) // 查询标签列表 FindTagList(context.Context, *FindTagListReq) (*FindTagListResp, error) // contains filtered or unexported methods }
ArticleRpcServer is the server API for ArticleRpc service. All implementations must embed UnimplementedArticleRpcServer for forward compatibility
type ArticleTag ¶
type ArticleTag struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id TagName string `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` // 标签名 // contains filtered or unexported fields }
func (*ArticleTag) Descriptor
deprecated
func (*ArticleTag) Descriptor() ([]byte, []int)
Deprecated: Use ArticleTag.ProtoReflect.Descriptor instead.
func (*ArticleTag) GetId ¶
func (x *ArticleTag) GetId() int64
func (*ArticleTag) GetTagName ¶
func (x *ArticleTag) GetTagName() string
func (*ArticleTag) ProtoMessage ¶
func (*ArticleTag) ProtoMessage()
func (*ArticleTag) ProtoReflect ¶
func (x *ArticleTag) ProtoReflect() protoreflect.Message
func (*ArticleTag) Reset ¶
func (x *ArticleTag) Reset()
func (*ArticleTag) String ¶
func (x *ArticleTag) String() string
type BatchResp ¶
type BatchResp struct { SuccessCount int64 `protobuf:"varint,1,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"` // contains filtered or unexported fields }
func (*BatchResp) Descriptor
deprecated
func (*BatchResp) GetSuccessCount ¶
func (*BatchResp) ProtoMessage ¶
func (*BatchResp) ProtoMessage()
func (*BatchResp) ProtoReflect ¶
func (x *BatchResp) ProtoReflect() protoreflect.Message
type CategoryDetails ¶
type CategoryDetails struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id CategoryName string `protobuf:"bytes,2,opt,name=category_name,json=categoryName,proto3" json:"category_name,omitempty"` // 分类名 CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间 UpdatedAt int64 `protobuf:"varint,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间 ArticleCount int64 `protobuf:"varint,5,opt,name=article_count,json=articleCount,proto3" json:"article_count,omitempty"` // 文章数量 // contains filtered or unexported fields }
func (*CategoryDetails) Descriptor
deprecated
func (*CategoryDetails) Descriptor() ([]byte, []int)
Deprecated: Use CategoryDetails.ProtoReflect.Descriptor instead.
func (*CategoryDetails) GetArticleCount ¶
func (x *CategoryDetails) GetArticleCount() int64
func (*CategoryDetails) GetCategoryName ¶
func (x *CategoryDetails) GetCategoryName() string
func (*CategoryDetails) GetCreatedAt ¶
func (x *CategoryDetails) GetCreatedAt() int64
func (*CategoryDetails) GetId ¶
func (x *CategoryDetails) GetId() int64
func (*CategoryDetails) GetUpdatedAt ¶
func (x *CategoryDetails) GetUpdatedAt() int64
func (*CategoryDetails) ProtoMessage ¶
func (*CategoryDetails) ProtoMessage()
func (*CategoryDetails) ProtoReflect ¶
func (x *CategoryDetails) ProtoReflect() protoreflect.Message
func (*CategoryDetails) Reset ¶
func (x *CategoryDetails) Reset()
func (*CategoryDetails) String ¶
func (x *CategoryDetails) String() string
type CategoryNewReq ¶
type CategoryNewReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id CategoryName string `protobuf:"bytes,2,opt,name=category_name,json=categoryName,proto3" json:"category_name,omitempty"` // 分类名 // contains filtered or unexported fields }
func (*CategoryNewReq) Descriptor
deprecated
func (*CategoryNewReq) Descriptor() ([]byte, []int)
Deprecated: Use CategoryNewReq.ProtoReflect.Descriptor instead.
func (*CategoryNewReq) GetCategoryName ¶
func (x *CategoryNewReq) GetCategoryName() string
func (*CategoryNewReq) GetId ¶
func (x *CategoryNewReq) GetId() int64
func (*CategoryNewReq) ProtoMessage ¶
func (*CategoryNewReq) ProtoMessage()
func (*CategoryNewReq) ProtoReflect ¶
func (x *CategoryNewReq) ProtoReflect() protoreflect.Message
func (*CategoryNewReq) Reset ¶
func (x *CategoryNewReq) Reset()
func (*CategoryNewReq) String ¶
func (x *CategoryNewReq) String() string
type CountResp ¶
type CountResp struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*CountResp) Descriptor
deprecated
func (*CountResp) ProtoMessage ¶
func (*CountResp) ProtoMessage()
func (*CountResp) ProtoReflect ¶
func (x *CountResp) ProtoReflect() protoreflect.Message
type EmptyReq ¶
type EmptyReq struct {
// contains filtered or unexported fields
}
func (*EmptyReq) Descriptor
deprecated
func (*EmptyReq) ProtoMessage ¶
func (*EmptyReq) ProtoMessage()
func (*EmptyReq) ProtoReflect ¶
func (x *EmptyReq) ProtoReflect() protoreflect.Message
type EmptyResp ¶
type EmptyResp struct {
// contains filtered or unexported fields
}
func (*EmptyResp) Descriptor
deprecated
func (*EmptyResp) ProtoMessage ¶
func (*EmptyResp) ProtoMessage()
func (*EmptyResp) ProtoReflect ¶
func (x *EmptyResp) ProtoReflect() protoreflect.Message
type FindArticleListReq ¶
type FindArticleListReq struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Sorts []string `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"` // 排序 ArticleTitle string `protobuf:"bytes,4,opt,name=article_title,json=articleTitle,proto3" json:"article_title,omitempty"` // 标题 ArticleType int64 `protobuf:"varint,5,opt,name=article_type,json=articleType,proto3" json:"article_type,omitempty"` // 文章类型 1原创 2转载 3翻译 CategoryName string `protobuf:"bytes,6,opt,name=category_name,json=categoryName,proto3" json:"category_name,omitempty"` // 分类名 TagName string `protobuf:"bytes,7,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` // 标签名 IsTop int64 `protobuf:"varint,9,opt,name=is_top,json=isTop,proto3" json:"is_top,omitempty"` // 是否置顶 0否 1是 IsDelete int64 `protobuf:"varint,10,opt,name=is_delete,json=isDelete,proto3" json:"is_delete,omitempty"` // 是否删除 0否 1是 Status int64 `protobuf:"varint,11,opt,name=status,proto3" json:"status,omitempty"` // 状态值 1公开 2私密 3草稿 4已删除 // contains filtered or unexported fields }
func (*FindArticleListReq) Descriptor
deprecated
func (*FindArticleListReq) Descriptor() ([]byte, []int)
Deprecated: Use FindArticleListReq.ProtoReflect.Descriptor instead.
func (*FindArticleListReq) GetArticleTitle ¶
func (x *FindArticleListReq) GetArticleTitle() string
func (*FindArticleListReq) GetArticleType ¶
func (x *FindArticleListReq) GetArticleType() int64
func (*FindArticleListReq) GetCategoryName ¶
func (x *FindArticleListReq) GetCategoryName() string
func (*FindArticleListReq) GetIsDelete ¶
func (x *FindArticleListReq) GetIsDelete() int64
func (*FindArticleListReq) GetIsTop ¶
func (x *FindArticleListReq) GetIsTop() int64
func (*FindArticleListReq) GetPage ¶
func (x *FindArticleListReq) GetPage() int64
func (*FindArticleListReq) GetPageSize ¶
func (x *FindArticleListReq) GetPageSize() int64
func (*FindArticleListReq) GetSorts ¶
func (x *FindArticleListReq) GetSorts() []string
func (*FindArticleListReq) GetStatus ¶
func (x *FindArticleListReq) GetStatus() int64
func (*FindArticleListReq) GetTagName ¶
func (x *FindArticleListReq) GetTagName() string
func (*FindArticleListReq) ProtoMessage ¶
func (*FindArticleListReq) ProtoMessage()
func (*FindArticleListReq) ProtoReflect ¶
func (x *FindArticleListReq) ProtoReflect() protoreflect.Message
func (*FindArticleListReq) Reset ¶
func (x *FindArticleListReq) Reset()
func (*FindArticleListReq) String ¶
func (x *FindArticleListReq) String() string
type FindArticleListResp ¶
type FindArticleListResp struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*ArticleDetails `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*FindArticleListResp) Descriptor
deprecated
func (*FindArticleListResp) Descriptor() ([]byte, []int)
Deprecated: Use FindArticleListResp.ProtoReflect.Descriptor instead.
func (*FindArticleListResp) GetList ¶
func (x *FindArticleListResp) GetList() []*ArticleDetails
func (*FindArticleListResp) GetTotal ¶
func (x *FindArticleListResp) GetTotal() int64
func (*FindArticleListResp) ProtoMessage ¶
func (*FindArticleListResp) ProtoMessage()
func (*FindArticleListResp) ProtoReflect ¶
func (x *FindArticleListResp) ProtoReflect() protoreflect.Message
func (*FindArticleListResp) Reset ¶
func (x *FindArticleListResp) Reset()
func (*FindArticleListResp) String ¶
func (x *FindArticleListResp) String() string
type FindArticlePreviewListReq ¶
type FindArticlePreviewListReq struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*FindArticlePreviewListReq) Descriptor
deprecated
func (*FindArticlePreviewListReq) Descriptor() ([]byte, []int)
Deprecated: Use FindArticlePreviewListReq.ProtoReflect.Descriptor instead.
func (*FindArticlePreviewListReq) GetIds ¶
func (x *FindArticlePreviewListReq) GetIds() []int64
func (*FindArticlePreviewListReq) ProtoMessage ¶
func (*FindArticlePreviewListReq) ProtoMessage()
func (*FindArticlePreviewListReq) ProtoReflect ¶
func (x *FindArticlePreviewListReq) ProtoReflect() protoreflect.Message
func (*FindArticlePreviewListReq) Reset ¶
func (x *FindArticlePreviewListReq) Reset()
func (*FindArticlePreviewListReq) String ¶
func (x *FindArticlePreviewListReq) String() string
type FindArticlePreviewListResp ¶
type FindArticlePreviewListResp struct { List []*ArticlePreview `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*FindArticlePreviewListResp) Descriptor
deprecated
func (*FindArticlePreviewListResp) Descriptor() ([]byte, []int)
Deprecated: Use FindArticlePreviewListResp.ProtoReflect.Descriptor instead.
func (*FindArticlePreviewListResp) GetList ¶
func (x *FindArticlePreviewListResp) GetList() []*ArticlePreview
func (*FindArticlePreviewListResp) ProtoMessage ¶
func (*FindArticlePreviewListResp) ProtoMessage()
func (*FindArticlePreviewListResp) ProtoReflect ¶
func (x *FindArticlePreviewListResp) ProtoReflect() protoreflect.Message
func (*FindArticlePreviewListResp) Reset ¶
func (x *FindArticlePreviewListResp) Reset()
func (*FindArticlePreviewListResp) String ¶
func (x *FindArticlePreviewListResp) String() string
type FindCategoryListReq ¶
type FindCategoryListReq struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Sorts []string `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"` // 排序 CategoryName string `protobuf:"bytes,4,opt,name=category_name,json=categoryName,proto3" json:"category_name,omitempty"` // contains filtered or unexported fields }
func (*FindCategoryListReq) Descriptor
deprecated
func (*FindCategoryListReq) Descriptor() ([]byte, []int)
Deprecated: Use FindCategoryListReq.ProtoReflect.Descriptor instead.
func (*FindCategoryListReq) GetCategoryName ¶
func (x *FindCategoryListReq) GetCategoryName() string
func (*FindCategoryListReq) GetPage ¶
func (x *FindCategoryListReq) GetPage() int64
func (*FindCategoryListReq) GetPageSize ¶
func (x *FindCategoryListReq) GetPageSize() int64
func (*FindCategoryListReq) GetSorts ¶
func (x *FindCategoryListReq) GetSorts() []string
func (*FindCategoryListReq) ProtoMessage ¶
func (*FindCategoryListReq) ProtoMessage()
func (*FindCategoryListReq) ProtoReflect ¶
func (x *FindCategoryListReq) ProtoReflect() protoreflect.Message
func (*FindCategoryListReq) Reset ¶
func (x *FindCategoryListReq) Reset()
func (*FindCategoryListReq) String ¶
func (x *FindCategoryListReq) String() string
type FindCategoryListResp ¶
type FindCategoryListResp struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*CategoryDetails `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*FindCategoryListResp) Descriptor
deprecated
func (*FindCategoryListResp) Descriptor() ([]byte, []int)
Deprecated: Use FindCategoryListResp.ProtoReflect.Descriptor instead.
func (*FindCategoryListResp) GetList ¶
func (x *FindCategoryListResp) GetList() []*CategoryDetails
func (*FindCategoryListResp) GetTotal ¶
func (x *FindCategoryListResp) GetTotal() int64
func (*FindCategoryListResp) ProtoMessage ¶
func (*FindCategoryListResp) ProtoMessage()
func (*FindCategoryListResp) ProtoReflect ¶
func (x *FindCategoryListResp) ProtoReflect() protoreflect.Message
func (*FindCategoryListResp) Reset ¶
func (x *FindCategoryListResp) Reset()
func (*FindCategoryListResp) String ¶
func (x *FindCategoryListResp) String() string
type FindLikeArticleResp ¶
type FindLikeArticleResp struct { LikeArticleList []int64 `protobuf:"varint,1,rep,packed,name=like_article_list,json=likeArticleList,proto3" json:"like_article_list,omitempty"` // contains filtered or unexported fields }
func (*FindLikeArticleResp) Descriptor
deprecated
func (*FindLikeArticleResp) Descriptor() ([]byte, []int)
Deprecated: Use FindLikeArticleResp.ProtoReflect.Descriptor instead.
func (*FindLikeArticleResp) GetLikeArticleList ¶
func (x *FindLikeArticleResp) GetLikeArticleList() []int64
func (*FindLikeArticleResp) ProtoMessage ¶
func (*FindLikeArticleResp) ProtoMessage()
func (*FindLikeArticleResp) ProtoReflect ¶
func (x *FindLikeArticleResp) ProtoReflect() protoreflect.Message
func (*FindLikeArticleResp) Reset ¶
func (x *FindLikeArticleResp) Reset()
func (*FindLikeArticleResp) String ¶
func (x *FindLikeArticleResp) String() string
type FindTagListReq ¶
type FindTagListReq struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Sorts []string `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"` // 排序 TagName string `protobuf:"bytes,4,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` // 标签名 // contains filtered or unexported fields }
func (*FindTagListReq) Descriptor
deprecated
func (*FindTagListReq) Descriptor() ([]byte, []int)
Deprecated: Use FindTagListReq.ProtoReflect.Descriptor instead.
func (*FindTagListReq) GetPage ¶
func (x *FindTagListReq) GetPage() int64
func (*FindTagListReq) GetPageSize ¶
func (x *FindTagListReq) GetPageSize() int64
func (*FindTagListReq) GetSorts ¶
func (x *FindTagListReq) GetSorts() []string
func (*FindTagListReq) GetTagName ¶
func (x *FindTagListReq) GetTagName() string
func (*FindTagListReq) ProtoMessage ¶
func (*FindTagListReq) ProtoMessage()
func (*FindTagListReq) ProtoReflect ¶
func (x *FindTagListReq) ProtoReflect() protoreflect.Message
func (*FindTagListReq) Reset ¶
func (x *FindTagListReq) Reset()
func (*FindTagListReq) String ¶
func (x *FindTagListReq) String() string
type FindTagListResp ¶
type FindTagListResp struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*TagDetails `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*FindTagListResp) Descriptor
deprecated
func (*FindTagListResp) Descriptor() ([]byte, []int)
Deprecated: Use FindTagListResp.ProtoReflect.Descriptor instead.
func (*FindTagListResp) GetList ¶
func (x *FindTagListResp) GetList() []*TagDetails
func (*FindTagListResp) GetTotal ¶
func (x *FindTagListResp) GetTotal() int64
func (*FindTagListResp) ProtoMessage ¶
func (*FindTagListResp) ProtoMessage()
func (*FindTagListResp) ProtoReflect ¶
func (x *FindTagListResp) ProtoReflect() protoreflect.Message
func (*FindTagListResp) Reset ¶
func (x *FindTagListResp) Reset()
func (*FindTagListResp) String ¶
func (x *FindTagListResp) String() string
type IdReq ¶
type IdReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IdReq) Descriptor
deprecated
func (*IdReq) ProtoMessage ¶
func (*IdReq) ProtoMessage()
func (*IdReq) ProtoReflect ¶
func (x *IdReq) ProtoReflect() protoreflect.Message
type IdsReq ¶
type IdsReq struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*IdsReq) Descriptor
deprecated
func (*IdsReq) ProtoMessage ¶
func (*IdsReq) ProtoMessage()
func (*IdsReq) ProtoReflect ¶
func (x *IdsReq) ProtoReflect() protoreflect.Message
type RecycleArticleReq ¶
type RecycleArticleReq struct { ArticleId int64 `protobuf:"varint,1,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"` IsDelete int64 `protobuf:"varint,2,opt,name=is_delete,json=isDelete,proto3" json:"is_delete,omitempty"` // 是否删除 0否 1是 // contains filtered or unexported fields }
func (*RecycleArticleReq) Descriptor
deprecated
func (*RecycleArticleReq) Descriptor() ([]byte, []int)
Deprecated: Use RecycleArticleReq.ProtoReflect.Descriptor instead.
func (*RecycleArticleReq) GetArticleId ¶
func (x *RecycleArticleReq) GetArticleId() int64
func (*RecycleArticleReq) GetIsDelete ¶
func (x *RecycleArticleReq) GetIsDelete() int64
func (*RecycleArticleReq) ProtoMessage ¶
func (*RecycleArticleReq) ProtoMessage()
func (*RecycleArticleReq) ProtoReflect ¶
func (x *RecycleArticleReq) ProtoReflect() protoreflect.Message
func (*RecycleArticleReq) Reset ¶
func (x *RecycleArticleReq) Reset()
func (*RecycleArticleReq) String ¶
func (x *RecycleArticleReq) String() string
type TagDetails ¶
type TagDetails struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id TagName string `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` // 标签名 CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间 UpdatedAt int64 `protobuf:"varint,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间 ArticleCount int64 `protobuf:"varint,5,opt,name=article_count,json=articleCount,proto3" json:"article_count,omitempty"` // 文章数量 // contains filtered or unexported fields }
func (*TagDetails) Descriptor
deprecated
func (*TagDetails) Descriptor() ([]byte, []int)
Deprecated: Use TagDetails.ProtoReflect.Descriptor instead.
func (*TagDetails) GetArticleCount ¶
func (x *TagDetails) GetArticleCount() int64
func (*TagDetails) GetCreatedAt ¶
func (x *TagDetails) GetCreatedAt() int64
func (*TagDetails) GetId ¶
func (x *TagDetails) GetId() int64
func (*TagDetails) GetTagName ¶
func (x *TagDetails) GetTagName() string
func (*TagDetails) GetUpdatedAt ¶
func (x *TagDetails) GetUpdatedAt() int64
func (*TagDetails) ProtoMessage ¶
func (*TagDetails) ProtoMessage()
func (*TagDetails) ProtoReflect ¶
func (x *TagDetails) ProtoReflect() protoreflect.Message
func (*TagDetails) Reset ¶
func (x *TagDetails) Reset()
func (*TagDetails) String ¶
func (x *TagDetails) String() string
type TagNewReq ¶
type TagNewReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id TagName string `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` // 标签名 // contains filtered or unexported fields }
func (*TagNewReq) Descriptor
deprecated
func (*TagNewReq) GetTagName ¶
func (*TagNewReq) ProtoMessage ¶
func (*TagNewReq) ProtoMessage()
func (*TagNewReq) ProtoReflect ¶
func (x *TagNewReq) ProtoReflect() protoreflect.Message
type TopArticleReq ¶
type TopArticleReq struct { ArticleId int64 `protobuf:"varint,1,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"` IsTop int64 `protobuf:"varint,2,opt,name=is_top,json=isTop,proto3" json:"is_top,omitempty"` // 是否置顶 0否 1是 // contains filtered or unexported fields }
func (*TopArticleReq) Descriptor
deprecated
func (*TopArticleReq) Descriptor() ([]byte, []int)
Deprecated: Use TopArticleReq.ProtoReflect.Descriptor instead.
func (*TopArticleReq) GetArticleId ¶
func (x *TopArticleReq) GetArticleId() int64
func (*TopArticleReq) GetIsTop ¶
func (x *TopArticleReq) GetIsTop() int64
func (*TopArticleReq) ProtoMessage ¶
func (*TopArticleReq) ProtoMessage()
func (*TopArticleReq) ProtoReflect ¶
func (x *TopArticleReq) ProtoReflect() protoreflect.Message
func (*TopArticleReq) Reset ¶
func (x *TopArticleReq) Reset()
func (*TopArticleReq) String ¶
func (x *TopArticleReq) String() string
type UnimplementedArticleRpcServer ¶
type UnimplementedArticleRpcServer struct { }
UnimplementedArticleRpcServer must be embedded to have forward compatible implementations.
func (UnimplementedArticleRpcServer) AddArticle ¶
func (UnimplementedArticleRpcServer) AddArticle(context.Context, *ArticleNewReq) (*ArticleDetails, error)
func (UnimplementedArticleRpcServer) AddCategory ¶
func (UnimplementedArticleRpcServer) AddCategory(context.Context, *CategoryNewReq) (*CategoryDetails, error)
func (UnimplementedArticleRpcServer) AddTag ¶
func (UnimplementedArticleRpcServer) AddTag(context.Context, *TagNewReq) (*TagDetails, error)
func (UnimplementedArticleRpcServer) AnalysisArticle ¶
func (UnimplementedArticleRpcServer) AnalysisArticle(context.Context, *EmptyReq) (*AnalysisArticleResp, error)
func (UnimplementedArticleRpcServer) DeleteArticle ¶
func (UnimplementedArticleRpcServer) DeleteCategory ¶
func (UnimplementedArticleRpcServer) FindArticleList ¶
func (UnimplementedArticleRpcServer) FindArticleList(context.Context, *FindArticleListReq) (*FindArticleListResp, error)
func (UnimplementedArticleRpcServer) FindArticlePreviewList ¶
func (UnimplementedArticleRpcServer) FindArticlePreviewList(context.Context, *FindArticlePreviewListReq) (*FindArticlePreviewListResp, error)
func (UnimplementedArticleRpcServer) FindArticlePublicList ¶
func (UnimplementedArticleRpcServer) FindArticlePublicList(context.Context, *FindArticleListReq) (*FindArticleListResp, error)
func (UnimplementedArticleRpcServer) FindCategoryList ¶
func (UnimplementedArticleRpcServer) FindCategoryList(context.Context, *FindCategoryListReq) (*FindCategoryListResp, error)
func (UnimplementedArticleRpcServer) FindTagList ¶
func (UnimplementedArticleRpcServer) FindTagList(context.Context, *FindTagListReq) (*FindTagListResp, error)
func (UnimplementedArticleRpcServer) FindUserLikeArticle ¶
func (UnimplementedArticleRpcServer) FindUserLikeArticle(context.Context, *UserIdReq) (*FindLikeArticleResp, error)
func (UnimplementedArticleRpcServer) GetArticle ¶
func (UnimplementedArticleRpcServer) GetArticle(context.Context, *IdReq) (*ArticleDetails, error)
func (UnimplementedArticleRpcServer) GetArticleRecommend ¶
func (UnimplementedArticleRpcServer) GetArticleRecommend(context.Context, *IdReq) (*ArticleRecommendResp, error)
func (UnimplementedArticleRpcServer) GetCategory ¶
func (UnimplementedArticleRpcServer) GetCategory(context.Context, *IdReq) (*CategoryDetails, error)
func (UnimplementedArticleRpcServer) GetTag ¶
func (UnimplementedArticleRpcServer) GetTag(context.Context, *IdReq) (*TagDetails, error)
func (UnimplementedArticleRpcServer) LikeArticle ¶
func (UnimplementedArticleRpcServer) RecycleArticle ¶
func (UnimplementedArticleRpcServer) RecycleArticle(context.Context, *RecycleArticleReq) (*EmptyResp, error)
func (UnimplementedArticleRpcServer) TopArticle ¶
func (UnimplementedArticleRpcServer) TopArticle(context.Context, *TopArticleReq) (*EmptyResp, error)
func (UnimplementedArticleRpcServer) UpdateArticle ¶
func (UnimplementedArticleRpcServer) UpdateArticle(context.Context, *ArticleNewReq) (*ArticleDetails, error)
func (UnimplementedArticleRpcServer) UpdateCategory ¶
func (UnimplementedArticleRpcServer) UpdateCategory(context.Context, *CategoryNewReq) (*CategoryDetails, error)
func (UnimplementedArticleRpcServer) UpdateTag ¶
func (UnimplementedArticleRpcServer) UpdateTag(context.Context, *TagNewReq) (*TagDetails, error)
type UnsafeArticleRpcServer ¶
type UnsafeArticleRpcServer interface {
// contains filtered or unexported methods
}
UnsafeArticleRpcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ArticleRpcServer will result in compilation errors.
type UserIdReq ¶
type UserIdReq struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*UserIdReq) Descriptor
deprecated
func (*UserIdReq) ProtoMessage ¶
func (*UserIdReq) ProtoMessage()
func (*UserIdReq) ProtoReflect ¶
func (x *UserIdReq) ProtoReflect() protoreflect.Message