Documentation
¶
Index ¶
- type AnalysisArticleResp
- type ArticleCategory
- type ArticleDailyStatistics
- type ArticleDetails
- type ArticleNewReq
- type ArticlePreview
- type ArticleRpc
- type ArticleTag
- type BatchResp
- type CategoryDetails
- type CategoryNewReq
- type CountResp
- type EmptyReq
- type EmptyResp
- type FindArticleListReq
- type FindArticleListResp
- type FindArticlePreviewListResp
- type FindCategoryListReq
- type FindCategoryListResp
- type FindLikeArticleResp
- type FindTagListReq
- type FindTagListResp
- type GetArticleRelationResp
- type IdReq
- type IdsReq
- type TagDetails
- type TagNewReq
- type UpdateArticleDeleteReq
- type UpdateArticleTopReq
- 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 ArticleDailyStatistics ¶
type ArticleDailyStatistics = articlerpc.ArticleDailyStatistics
type ArticleDetails ¶
type ArticleDetails = articlerpc.ArticleDetails
type ArticleNewReq ¶
type ArticleNewReq = articlerpc.ArticleNewReq
type ArticlePreview ¶
type ArticlePreview = articlerpc.ArticlePreview
type ArticleRpc ¶
type ArticleRpc interface {
// 分析文章数量
AnalysisArticle(ctx context.Context, in *EmptyReq, opts ...grpc.CallOption) (*AnalysisArticleResp, error)
// 访问文章
VisitArticle(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*CountResp, error)
// 创建文章
AddArticle(ctx context.Context, in *ArticleNewReq, opts ...grpc.CallOption) (*ArticlePreview, error)
// 更新文章
UpdateArticle(ctx context.Context, in *ArticleNewReq, opts ...grpc.CallOption) (*ArticlePreview, error)
// 更新文章删除
UpdateArticleDelete(ctx context.Context, in *UpdateArticleDeleteReq, opts ...grpc.CallOption) (*ArticlePreview, error)
// 更新文章置顶
UpdateArticleTop(ctx context.Context, in *UpdateArticleTopReq, opts ...grpc.CallOption) (*ArticlePreview, error)
// 删除文章
DeleteArticle(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error)
// 查询文章
GetArticle(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*ArticleDetails, error)
// 查询关联文章
GetArticleRelation(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*GetArticleRelationResp, error)
// 查询文章列表
FindArticleList(ctx context.Context, in *FindArticleListReq, opts ...grpc.CallOption) (*FindArticleListResp, error)
// 查询文章列表
FindArticlePreviewList(ctx context.Context, in *FindArticleListReq, opts ...grpc.CallOption) (*FindArticlePreviewListResp, error)
// 点赞文章
LikeArticle(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*EmptyResp, error)
// 用户点赞的文章
FindUserLikeArticle(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*FindLikeArticleResp, 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 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 GetArticleRelationResp ¶
type GetArticleRelationResp = articlerpc.GetArticleRelationResp
type IdReq ¶
type IdReq = articlerpc.IdReq
type IdsReq ¶
type IdsReq = articlerpc.IdsReq
type TagDetails ¶
type TagDetails = articlerpc.TagDetails
type TagNewReq ¶
type TagNewReq = articlerpc.TagNewReq
type UpdateArticleDeleteReq ¶
type UpdateArticleDeleteReq = articlerpc.UpdateArticleDeleteReq
type UpdateArticleTopReq ¶
type UpdateArticleTopReq = articlerpc.UpdateArticleTopReq
type UserIdReq ¶
type UserIdReq = articlerpc.UserIdReq
Click to show internal directories.
Click to hide internal directories.