Documentation ¶
Index ¶
- type ArticleRpcServer
- func (s *ArticleRpcServer) AddArticle(ctx context.Context, in *articlerpc.ArticleNewReq) (*articlerpc.ArticleDetails, error)
- func (s *ArticleRpcServer) AddCategory(ctx context.Context, in *articlerpc.CategoryNewReq) (*articlerpc.CategoryDetails, error)
- func (s *ArticleRpcServer) AddTag(ctx context.Context, in *articlerpc.TagNewReq) (*articlerpc.TagDetails, error)
- func (s *ArticleRpcServer) AnalysisArticle(ctx context.Context, in *articlerpc.EmptyReq) (*articlerpc.AnalysisArticleResp, error)
- func (s *ArticleRpcServer) DeleteArticle(ctx context.Context, in *articlerpc.IdsReq) (*articlerpc.BatchResp, error)
- func (s *ArticleRpcServer) DeleteCategory(ctx context.Context, in *articlerpc.IdsReq) (*articlerpc.BatchResp, error)
- func (s *ArticleRpcServer) DeleteTag(ctx context.Context, in *articlerpc.IdsReq) (*articlerpc.BatchResp, error)
- func (s *ArticleRpcServer) FindArticleList(ctx context.Context, in *articlerpc.FindArticleListReq) (*articlerpc.FindArticleListResp, error)
- func (s *ArticleRpcServer) FindArticlePreviewList(ctx context.Context, in *articlerpc.FindArticlePreviewListReq) (*articlerpc.FindArticlePreviewListResp, error)
- func (s *ArticleRpcServer) FindArticlePublicList(ctx context.Context, in *articlerpc.FindArticleListReq) (*articlerpc.FindArticleListResp, error)
- func (s *ArticleRpcServer) FindCategoryList(ctx context.Context, in *articlerpc.FindCategoryListReq) (*articlerpc.FindCategoryListResp, error)
- func (s *ArticleRpcServer) FindTagList(ctx context.Context, in *articlerpc.FindTagListReq) (*articlerpc.FindTagListResp, error)
- func (s *ArticleRpcServer) FindUserLikeArticle(ctx context.Context, in *articlerpc.UserIdReq) (*articlerpc.FindLikeArticleResp, error)
- func (s *ArticleRpcServer) GetArticle(ctx context.Context, in *articlerpc.IdReq) (*articlerpc.ArticleDetails, error)
- func (s *ArticleRpcServer) GetArticleRecommend(ctx context.Context, in *articlerpc.IdReq) (*articlerpc.ArticleRecommendResp, error)
- func (s *ArticleRpcServer) GetCategory(ctx context.Context, in *articlerpc.IdReq) (*articlerpc.CategoryDetails, error)
- func (s *ArticleRpcServer) GetTag(ctx context.Context, in *articlerpc.IdReq) (*articlerpc.TagDetails, error)
- func (s *ArticleRpcServer) LikeArticle(ctx context.Context, in *articlerpc.IdReq) (*articlerpc.EmptyResp, error)
- func (s *ArticleRpcServer) RecycleArticle(ctx context.Context, in *articlerpc.RecycleArticleReq) (*articlerpc.EmptyResp, error)
- func (s *ArticleRpcServer) TopArticle(ctx context.Context, in *articlerpc.TopArticleReq) (*articlerpc.EmptyResp, error)
- func (s *ArticleRpcServer) UpdateArticle(ctx context.Context, in *articlerpc.ArticleNewReq) (*articlerpc.ArticleDetails, error)
- func (s *ArticleRpcServer) UpdateCategory(ctx context.Context, in *articlerpc.CategoryNewReq) (*articlerpc.CategoryDetails, error)
- func (s *ArticleRpcServer) UpdateTag(ctx context.Context, in *articlerpc.TagNewReq) (*articlerpc.TagDetails, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleRpcServer ¶
type ArticleRpcServer struct { articlerpc.UnimplementedArticleRpcServer // contains filtered or unexported fields }
func NewArticleRpcServer ¶
func NewArticleRpcServer(svcCtx *svc.ServiceContext) *ArticleRpcServer
func (*ArticleRpcServer) AddArticle ¶
func (s *ArticleRpcServer) AddArticle(ctx context.Context, in *articlerpc.ArticleNewReq) (*articlerpc.ArticleDetails, error)
创建文章
func (*ArticleRpcServer) AddCategory ¶
func (s *ArticleRpcServer) AddCategory(ctx context.Context, in *articlerpc.CategoryNewReq) (*articlerpc.CategoryDetails, error)
创建文章分类
func (*ArticleRpcServer) AddTag ¶
func (s *ArticleRpcServer) AddTag(ctx context.Context, in *articlerpc.TagNewReq) (*articlerpc.TagDetails, error)
创建标签
func (*ArticleRpcServer) AnalysisArticle ¶
func (s *ArticleRpcServer) AnalysisArticle(ctx context.Context, in *articlerpc.EmptyReq) (*articlerpc.AnalysisArticleResp, error)
查询文章数量
func (*ArticleRpcServer) DeleteArticle ¶
func (s *ArticleRpcServer) DeleteArticle(ctx context.Context, in *articlerpc.IdsReq) (*articlerpc.BatchResp, error)
删除文章
func (*ArticleRpcServer) DeleteCategory ¶
func (s *ArticleRpcServer) DeleteCategory(ctx context.Context, in *articlerpc.IdsReq) (*articlerpc.BatchResp, error)
删除文章分类
func (*ArticleRpcServer) DeleteTag ¶
func (s *ArticleRpcServer) DeleteTag(ctx context.Context, in *articlerpc.IdsReq) (*articlerpc.BatchResp, error)
删除标签
func (*ArticleRpcServer) FindArticleList ¶
func (s *ArticleRpcServer) FindArticleList(ctx context.Context, in *articlerpc.FindArticleListReq) (*articlerpc.FindArticleListResp, error)
查询文章列表
func (*ArticleRpcServer) FindArticlePreviewList ¶
func (s *ArticleRpcServer) FindArticlePreviewList(ctx context.Context, in *articlerpc.FindArticlePreviewListReq) (*articlerpc.FindArticlePreviewListResp, error)
查询文章列表
func (*ArticleRpcServer) FindArticlePublicList ¶
func (s *ArticleRpcServer) FindArticlePublicList(ctx context.Context, in *articlerpc.FindArticleListReq) (*articlerpc.FindArticleListResp, error)
查询文章列表
func (*ArticleRpcServer) FindCategoryList ¶
func (s *ArticleRpcServer) FindCategoryList(ctx context.Context, in *articlerpc.FindCategoryListReq) (*articlerpc.FindCategoryListResp, error)
查询文章分类列表
func (*ArticleRpcServer) FindTagList ¶
func (s *ArticleRpcServer) FindTagList(ctx context.Context, in *articlerpc.FindTagListReq) (*articlerpc.FindTagListResp, error)
查询标签列表
func (*ArticleRpcServer) FindUserLikeArticle ¶
func (s *ArticleRpcServer) FindUserLikeArticle(ctx context.Context, in *articlerpc.UserIdReq) (*articlerpc.FindLikeArticleResp, error)
用户点赞的文章
func (*ArticleRpcServer) GetArticle ¶
func (s *ArticleRpcServer) GetArticle(ctx context.Context, in *articlerpc.IdReq) (*articlerpc.ArticleDetails, error)
查询文章
func (*ArticleRpcServer) GetArticleRecommend ¶
func (s *ArticleRpcServer) GetArticleRecommend(ctx context.Context, in *articlerpc.IdReq) (*articlerpc.ArticleRecommendResp, error)
查询文章推荐
func (*ArticleRpcServer) GetCategory ¶
func (s *ArticleRpcServer) GetCategory(ctx context.Context, in *articlerpc.IdReq) (*articlerpc.CategoryDetails, error)
查询文章分类
func (*ArticleRpcServer) GetTag ¶
func (s *ArticleRpcServer) GetTag(ctx context.Context, in *articlerpc.IdReq) (*articlerpc.TagDetails, error)
查询标签
func (*ArticleRpcServer) LikeArticle ¶
func (s *ArticleRpcServer) LikeArticle(ctx context.Context, in *articlerpc.IdReq) (*articlerpc.EmptyResp, error)
点赞文章
func (*ArticleRpcServer) RecycleArticle ¶
func (s *ArticleRpcServer) RecycleArticle(ctx context.Context, in *articlerpc.RecycleArticleReq) (*articlerpc.EmptyResp, error)
回收文章
func (*ArticleRpcServer) TopArticle ¶
func (s *ArticleRpcServer) TopArticle(ctx context.Context, in *articlerpc.TopArticleReq) (*articlerpc.EmptyResp, error)
置顶文章
func (*ArticleRpcServer) UpdateArticle ¶
func (s *ArticleRpcServer) UpdateArticle(ctx context.Context, in *articlerpc.ArticleNewReq) (*articlerpc.ArticleDetails, error)
更新文章
func (*ArticleRpcServer) UpdateCategory ¶
func (s *ArticleRpcServer) UpdateCategory(ctx context.Context, in *articlerpc.CategoryNewReq) (*articlerpc.CategoryDetails, error)
更新文章分类
func (*ArticleRpcServer) UpdateTag ¶
func (s *ArticleRpcServer) UpdateTag(ctx context.Context, in *articlerpc.TagNewReq) (*articlerpc.TagDetails, error)
更新标签
Click to show internal directories.
Click to hide internal directories.