Documentation ¶
Index ¶
- type AnalysisArticleResp
- type ArticleCategory
- type ArticleDetails
- type ArticleNewReq
- type ArticlePreview
- type ArticleRecommendResp
- type ArticleRpc
- type ArticleTag
- type BatchResp
- type CategoryDetails
- type CategoryNewReq
- type CountResp
- type EmptyReq
- type EmptyResp
- type FindArticleListReq
- type FindArticleListResp
- type FindArticlePreviewListReq
- type FindArticlePreviewListResp
- type FindCategoryListReq
- type FindCategoryListResp
- type FindLikeArticleResp
- type FindTagListReq
- type FindTagListResp
- type IdReq
- type IdsReq
- type RecycleArticleReq
- type TagDetails
- type TagNewReq
- type TopArticleReq
- type UserIdReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalysisArticleResp ¶
type AnalysisArticleResp = articlerpc.AnalysisArticleResp
type ArticleCategory ¶
type ArticleCategory = articlerpc.ArticleCategory
type ArticleDetails ¶
type ArticleDetails = articlerpc.ArticleDetails
type ArticleNewReq ¶
type ArticleNewReq = articlerpc.ArticleNewReq
type ArticlePreview ¶
type ArticlePreview = articlerpc.ArticlePreview
type ArticleRecommendResp ¶
type ArticleRecommendResp = articlerpc.ArticleRecommendResp
type ArticleRpc ¶
type ArticleRpc 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) }
func NewArticleRpc ¶
func NewArticleRpc(cli zrpc.Client) ArticleRpc
type ArticleTag ¶
type ArticleTag = articlerpc.ArticleTag
type BatchResp ¶
type BatchResp = articlerpc.BatchResp
type CategoryDetails ¶
type CategoryDetails = articlerpc.CategoryDetails
type CategoryNewReq ¶
type CategoryNewReq = articlerpc.CategoryNewReq
type CountResp ¶
type CountResp = articlerpc.CountResp
type EmptyReq ¶
type EmptyReq = articlerpc.EmptyReq
type EmptyResp ¶
type EmptyResp = articlerpc.EmptyResp
type FindArticleListReq ¶
type FindArticleListReq = articlerpc.FindArticleListReq
type FindArticleListResp ¶
type FindArticleListResp = articlerpc.FindArticleListResp
type FindArticlePreviewListReq ¶
type FindArticlePreviewListReq = articlerpc.FindArticlePreviewListReq
type FindArticlePreviewListResp ¶
type FindArticlePreviewListResp = articlerpc.FindArticlePreviewListResp
type FindCategoryListReq ¶
type FindCategoryListReq = articlerpc.FindCategoryListReq
type FindCategoryListResp ¶
type FindCategoryListResp = articlerpc.FindCategoryListResp
type FindLikeArticleResp ¶
type FindLikeArticleResp = articlerpc.FindLikeArticleResp
type FindTagListReq ¶
type FindTagListReq = articlerpc.FindTagListReq
type FindTagListResp ¶
type FindTagListResp = articlerpc.FindTagListResp
type IdReq ¶
type IdReq = articlerpc.IdReq
type IdsReq ¶
type IdsReq = articlerpc.IdsReq
type RecycleArticleReq ¶
type RecycleArticleReq = articlerpc.RecycleArticleReq
type TagDetails ¶
type TagDetails = articlerpc.TagDetails
type TagNewReq ¶
type TagNewReq = articlerpc.TagNewReq
type TopArticleReq ¶
type TopArticleReq = articlerpc.TopArticleReq
type UserIdReq ¶
type UserIdReq = articlerpc.UserIdReq
Click to show internal directories.
Click to hide internal directories.