Documentation ¶
Overview ¶
Package client is a generated GoMock package.
Index ¶
- type ArticleRPC
- type MockArticleRPC
- func (m *MockArticleRPC) AddArtDraft(c context.Context, arg *model.ArgArticle) (int64, error)
- func (m *MockArticleRPC) AddArticle(c context.Context, arg *model.ArgArticle) (int64, error)
- func (m *MockArticleRPC) AddArticleCache(c context.Context, arg *model.ArgAid) error
- func (m *MockArticleRPC) ArtDraft(c context.Context, arg *model.ArgAidMid) (*model.Draft, error)
- func (m *MockArticleRPC) ArticleMetas(c context.Context, arg *model.ArgAids) (map[int64]*model.Meta, error)
- func (m *MockArticleRPC) ArticleRemainCount(c context.Context, arg *model.ArgMid) (int, error)
- func (m *MockArticleRPC) Categories(c context.Context, arg *model.ArgIP) (*model.Categories, error)
- func (m *MockArticleRPC) CategoriesMap(c context.Context, arg *model.ArgIP) (map[int64]*model.Category, error)
- func (m *MockArticleRPC) CheckPrivilege(c context.Context, arg *model.ArgMid) error
- func (m *MockArticleRPC) CreationArticle(c context.Context, arg *model.ArgAidMid) (*model.Article, error)
- func (m *MockArticleRPC) CreationUpStat(c context.Context, arg *model.ArgMid) (model.UpStat, error)
- func (m *MockArticleRPC) CreationUpThirtyDayStat(c context.Context, arg *model.ArgMid) ([]*model.ThirtyDayArticle, error)
- func (m *MockArticleRPC) CreationUpperArticles(c context.Context, arg *model.ArgCreationArts) (*model.CreationArts, error)
- func (m *MockArticleRPC) CreationWithdrawArticle(c context.Context, arg *model.ArgAidMid) error
- func (m *MockArticleRPC) DelArtDraft(c context.Context, arg *model.ArgAidMid) error
- func (m *MockArticleRPC) DelArticle(c context.Context, arg *model.ArgAidMid) error
- func (m *MockArticleRPC) DelArticleCache(c context.Context, arg *model.ArgAidMid) error
- func (m *MockArticleRPC) DelRecommendArtCache(c context.Context, arg *model.ArgAidCid) error
- func (m *MockArticleRPC) EXPECT() *MockArticleRPCMockRecorder
- func (m *MockArticleRPC) Favorites(c context.Context, arg *model.ArgFav) ([]*model.Favorite, error)
- func (m *MockArticleRPC) HadLikesByMid(c context.Context, arg *model.ArgMidAids) (map[int64]int, error)
- func (m *MockArticleRPC) IsAuthor(c context.Context, arg *model.ArgMid) (bool, error)
- func (m *MockArticleRPC) NewArticleCount(c context.Context, arg *model.ArgNewArt) (int64, error)
- func (m *MockArticleRPC) Recommends(c context.Context, arg *model.ArgRecommends) ([]*model.Meta, error)
- func (m *MockArticleRPC) SetStat(c context.Context, arg *model.ArgStats) error
- func (m *MockArticleRPC) UpArtMetas(c context.Context, arg *model.ArgUpArts) (*model.UpArtMetas, error)
- func (m *MockArticleRPC) UpLists(c context.Context, arg *model.ArgMid) (model.UpLists, error)
- func (m *MockArticleRPC) UpMoreArts(c context.Context, arg *model.ArgAid) ([]*model.Meta, error)
- func (m *MockArticleRPC) UpdateArtDraft(c context.Context, arg *model.ArgAidMid) error
- func (m *MockArticleRPC) UpdateArticle(c context.Context, arg *model.ArgArticle) error
- func (m *MockArticleRPC) UpdateArticleCache(c context.Context, arg *model.ArgAidCid) error
- func (m *MockArticleRPC) UpdateAuthorCache(c context.Context, arg *model.ArgAuthor) error
- func (m *MockArticleRPC) UpdateNewArts(c context.Context, arg *model.ArgIP) error
- func (m *MockArticleRPC) UpdateRecommends(c context.Context) error
- func (m *MockArticleRPC) UpdateSortCache(c context.Context, arg *model.ArgSort) error
- func (m *MockArticleRPC) UpperDrafts(c context.Context, arg *model.ArgUpDraft) (*model.Drafts, error)
- func (m *MockArticleRPC) UpsArtMetas(c context.Context, arg *model.ArgUpsArts) (map[int64][]*model.Meta, error)
- type MockArticleRPCMockRecorder
- func (mr *MockArticleRPCMockRecorder) AddArtDraft(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) AddArticle(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) AddArticleCache(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) ArtDraft(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) ArticleMetas(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) ArticleRemainCount(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) Categories(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) CategoriesMap(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) CheckPrivilege(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) CreationArticle(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) CreationUpStat(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) CreationUpThirtyDayStat(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) CreationUpperArticles(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) CreationWithdrawArticle(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) DelArtDraft(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) DelArticle(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) DelArticleCache(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) DelRecommendArtCache(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) Favorites(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) HadLikesByMid(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) IsAuthor(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) NewArticleCount(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) Recommends(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) SetStat(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) UpArtMetas(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) UpLists(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) UpMoreArts(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) UpdateArtDraft(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) UpdateArticle(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) UpdateArticleCache(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) UpdateAuthorCache(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) UpdateNewArts(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) UpdateRecommends(c interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) UpdateSortCache(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) UpperDrafts(c, arg interface{}) *gomock.Call
- func (mr *MockArticleRPCMockRecorder) UpsArtMetas(c, arg interface{}) *gomock.Call
- type Service
- func (s *Service) AddArtDraft(c context.Context, arg *model.ArgArticle) (id int64, err error)
- func (s *Service) AddArticle(c context.Context, arg *model.ArgArticle) (id int64, err error)
- func (s *Service) AddArticleCache(c context.Context, arg *model.ArgAid) (err error)
- func (s *Service) ArtDraft(c context.Context, arg *model.ArgAidMid) (res *model.Draft, err error)
- func (s *Service) ArticleMetas(c context.Context, arg *model.ArgAids) (res map[int64]*model.Meta, err error)
- func (s *Service) ArticleRemainCount(c context.Context, arg *model.ArgMid) (res int, err error)
- func (s *Service) Categories(c context.Context, arg *model.ArgIP) (res *model.Categories, err error)
- func (s *Service) CategoriesMap(c context.Context, arg *model.ArgIP) (res map[int64]*model.Category, err error)
- func (s *Service) CreationArticle(c context.Context, arg *model.ArgAidMid) (res *model.Article, err error)
- func (s *Service) CreationUpStat(c context.Context, arg *model.ArgMid) (res model.UpStat, err error)
- func (s *Service) CreationUpThirtyDayStat(c context.Context, arg *model.ArgMid) (res []*model.ThirtyDayArticle, err error)
- func (s *Service) CreationUpperArticles(c context.Context, arg *model.ArgCreationArts) (res *model.CreationArts, err error)
- func (s *Service) CreationWithdrawArticle(c context.Context, arg *model.ArgAidMid) (err error)
- func (s *Service) DelArtDraft(c context.Context, arg *model.ArgAidMid) (err error)
- func (s *Service) DelArticle(c context.Context, arg *model.ArgAidMid) (err error)
- func (s *Service) DelArticleCache(c context.Context, arg *model.ArgAidMid) (err error)
- func (s *Service) DelRecommendArtCache(c context.Context, arg *model.ArgAidCid) (err error)
- func (s *Service) Favorites(c context.Context, arg *model.ArgFav) (res []*model.Favorite, err error)
- func (s *Service) HadLikesByMid(c context.Context, arg *model.ArgMidAids) (res map[int64]int, err error)
- func (s *Service) IsAuthor(c context.Context, arg *model.ArgMid) (res bool, err error)
- func (s *Service) NewArticleCount(c context.Context, arg *model.ArgNewArt) (res int64, err error)
- func (s *Service) RebuildAllListReadCount(c context.Context) (err error)
- func (s *Service) Recommends(c context.Context, arg *model.ArgRecommends) (res []*model.Meta, err error)
- func (s *Service) SetStat(c context.Context, arg *model.ArgStats) (err error)
- func (s *Service) UpArtMetas(c context.Context, arg *model.ArgUpArts) (res *model.UpArtMetas, err error)
- func (s *Service) UpLists(c context.Context, arg *model.ArgMid) (res model.UpLists, err error)
- func (s *Service) UpMoreArts(c context.Context, arg *model.ArgAid) (res []*model.Meta, err error)
- func (s *Service) UpdateArticle(c context.Context, arg *model.ArgArticle) (err error)
- func (s *Service) UpdateArticleCache(c context.Context, arg *model.ArgAidCid) (err error)
- func (s *Service) UpdateAuthorCache(c context.Context, arg *model.ArgAuthor) (err error)
- func (s *Service) UpdateHotspots(c context.Context, arg *model.ArgForce) (err error)
- func (s *Service) UpdateRecommends(c context.Context) (err error)
- func (s *Service) UpdateSortCache(c context.Context, arg *model.ArgSort) (err error)
- func (s *Service) UpperDrafts(c context.Context, arg *model.ArgUpDraft) (res *model.Drafts, err error)
- func (s *Service) UpsArtMetas(c context.Context, arg *model.ArgUpsArts) (res map[int64][]*model.Meta, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleRPC ¶
type ArticleRPC interface { AddArticle(c context.Context, arg *model.ArgArticle) (id int64, err error) AddArticleCache(c context.Context, arg *model.ArgAid) (err error) UpdateArticleCache(c context.Context, arg *model.ArgAidCid) (err error) DelArticleCache(c context.Context, arg *model.ArgAidMid) (err error) UpdateArticle(c context.Context, arg *model.ArgArticle) (err error) CreationWithdrawArticle(c context.Context, arg *model.ArgAidMid) (err error) DelArticle(c context.Context, arg *model.ArgAidMid) (err error) CreationArticle(c context.Context, arg *model.ArgAidMid) (res *model.Article, err error) CreationUpperArticles(c context.Context, arg *model.ArgCreationArts) (res *model.CreationArts, err error) Categories(c context.Context, arg *model.ArgIP) (res *model.Categories, err error) CategoriesMap(c context.Context, arg *model.ArgIP) (res map[int64]*model.Category, err error) SetStat(c context.Context, arg *model.ArgStats) (err error) UpsArtMetas(c context.Context, arg *model.ArgUpsArts) (res map[int64][]*model.Meta, err error) ArticleMetas(c context.Context, arg *model.ArgAids) (res map[int64]*model.Meta, err error) UpdateRecommends(c context.Context) (err error) Recommends(c context.Context, arg *model.ArgRecommends) (res []*model.Meta, err error) UpArtMetas(c context.Context, arg *model.ArgUpArts) (res *model.UpArtMetas, err error) AddArtDraft(c context.Context, arg *model.ArgArticle) (id int64, err error) UpdateArtDraft(c context.Context, arg *model.ArgAidMid) (err error) DelArtDraft(c context.Context, arg *model.ArgAidMid) (err error) ArtDraft(c context.Context, arg *model.ArgAidMid) (res *model.Draft, err error) UpperDrafts(c context.Context, arg *model.ArgUpDraft) (res *model.Drafts, err error) ArticleRemainCount(c context.Context, arg *model.ArgMid) (res int, err error) DelRecommendArtCache(c context.Context, arg *model.ArgAidCid) (err error) Favorites(c context.Context, arg *model.ArgFav) (res []*model.Favorite, err error) UpdateAuthorCache(c context.Context, arg *model.ArgAuthor) (err error) UpdateSortCache(c context.Context, arg *model.ArgSort) (err error) IsAuthor(c context.Context, arg *model.ArgMid) (res bool, err error) NewArticleCount(c context.Context, arg *model.ArgNewArt) (res int64, err error) HadLikesByMid(c context.Context, arg *model.ArgMidAids) (res map[int64]int, err error) UpMoreArts(c context.Context, arg *model.ArgAid) (res []*model.Meta, err error) CreationUpStat(c context.Context, arg *model.ArgMid) (res model.UpStat, err error) CreationUpThirtyDayStat(c context.Context, arg *model.ArgMid) (res []*model.ThirtyDayArticle, err error) UpLists(c context.Context, arg *model.ArgMid) (res model.UpLists, err error) }
ArticleRPC article rpc.
type MockArticleRPC ¶
type MockArticleRPC struct {
// contains filtered or unexported fields
}
MockArticleRPC is a mock of ArticleRPC interface
func NewMockArticleRPC ¶
func NewMockArticleRPC(ctrl *gomock.Controller) *MockArticleRPC
NewMockArticleRPC creates a new mock instance
func (*MockArticleRPC) AddArtDraft ¶
func (m *MockArticleRPC) AddArtDraft(c context.Context, arg *model.ArgArticle) (int64, error)
AddArtDraft mocks base method
func (*MockArticleRPC) AddArticle ¶
func (m *MockArticleRPC) AddArticle(c context.Context, arg *model.ArgArticle) (int64, error)
AddArticle mocks base method
func (*MockArticleRPC) AddArticleCache ¶
AddArticleCache mocks base method
func (*MockArticleRPC) ArticleMetas ¶
func (m *MockArticleRPC) ArticleMetas(c context.Context, arg *model.ArgAids) (map[int64]*model.Meta, error)
ArticleMetas mocks base method
func (*MockArticleRPC) ArticleRemainCount ¶
ArticleRemainCount mocks base method
func (*MockArticleRPC) Categories ¶
func (m *MockArticleRPC) Categories(c context.Context, arg *model.ArgIP) (*model.Categories, error)
Categories mocks base method
func (*MockArticleRPC) CategoriesMap ¶
func (m *MockArticleRPC) CategoriesMap(c context.Context, arg *model.ArgIP) (map[int64]*model.Category, error)
CategoriesMap mocks base method
func (*MockArticleRPC) CheckPrivilege ¶
CheckPrivilege mocks base method
func (*MockArticleRPC) CreationArticle ¶
func (m *MockArticleRPC) CreationArticle(c context.Context, arg *model.ArgAidMid) (*model.Article, error)
CreationArticle mocks base method
func (*MockArticleRPC) CreationUpStat ¶
CreationUpStat mocks base method
func (*MockArticleRPC) CreationUpThirtyDayStat ¶
func (m *MockArticleRPC) CreationUpThirtyDayStat(c context.Context, arg *model.ArgMid) ([]*model.ThirtyDayArticle, error)
CreationUpThirtyDayStat mocks base method
func (*MockArticleRPC) CreationUpperArticles ¶
func (m *MockArticleRPC) CreationUpperArticles(c context.Context, arg *model.ArgCreationArts) (*model.CreationArts, error)
CreationUpperArticles mocks base method
func (*MockArticleRPC) CreationWithdrawArticle ¶
CreationWithdrawArticle mocks base method
func (*MockArticleRPC) DelArtDraft ¶
DelArtDraft mocks base method
func (*MockArticleRPC) DelArticle ¶
DelArticle mocks base method
func (*MockArticleRPC) DelArticleCache ¶
DelArticleCache mocks base method
func (*MockArticleRPC) DelRecommendArtCache ¶
DelRecommendArtCache mocks base method
func (*MockArticleRPC) EXPECT ¶
func (m *MockArticleRPC) EXPECT() *MockArticleRPCMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockArticleRPC) HadLikesByMid ¶
func (m *MockArticleRPC) HadLikesByMid(c context.Context, arg *model.ArgMidAids) (map[int64]int, error)
HadLikesByMid mocks base method
func (*MockArticleRPC) NewArticleCount ¶
NewArticleCount mocks base method
func (*MockArticleRPC) Recommends ¶
func (m *MockArticleRPC) Recommends(c context.Context, arg *model.ArgRecommends) ([]*model.Meta, error)
Recommends mocks base method
func (*MockArticleRPC) UpArtMetas ¶
func (m *MockArticleRPC) UpArtMetas(c context.Context, arg *model.ArgUpArts) (*model.UpArtMetas, error)
UpArtMetas mocks base method
func (*MockArticleRPC) UpMoreArts ¶
UpMoreArts mocks base method
func (*MockArticleRPC) UpdateArtDraft ¶
UpdateArtDraft mocks base method
func (*MockArticleRPC) UpdateArticle ¶
func (m *MockArticleRPC) UpdateArticle(c context.Context, arg *model.ArgArticle) error
UpdateArticle mocks base method
func (*MockArticleRPC) UpdateArticleCache ¶
UpdateArticleCache mocks base method
func (*MockArticleRPC) UpdateAuthorCache ¶
UpdateAuthorCache mocks base method
func (*MockArticleRPC) UpdateNewArts ¶
UpdateNewArts mocks base method
func (*MockArticleRPC) UpdateRecommends ¶
func (m *MockArticleRPC) UpdateRecommends(c context.Context) error
UpdateRecommends mocks base method
func (*MockArticleRPC) UpdateSortCache ¶
UpdateSortCache mocks base method
func (*MockArticleRPC) UpperDrafts ¶
func (m *MockArticleRPC) UpperDrafts(c context.Context, arg *model.ArgUpDraft) (*model.Drafts, error)
UpperDrafts mocks base method
func (*MockArticleRPC) UpsArtMetas ¶
func (m *MockArticleRPC) UpsArtMetas(c context.Context, arg *model.ArgUpsArts) (map[int64][]*model.Meta, error)
UpsArtMetas mocks base method
type MockArticleRPCMockRecorder ¶
type MockArticleRPCMockRecorder struct {
// contains filtered or unexported fields
}
MockArticleRPCMockRecorder is the mock recorder for MockArticleRPC
func (*MockArticleRPCMockRecorder) AddArtDraft ¶
func (mr *MockArticleRPCMockRecorder) AddArtDraft(c, arg interface{}) *gomock.Call
AddArtDraft indicates an expected call of AddArtDraft
func (*MockArticleRPCMockRecorder) AddArticle ¶
func (mr *MockArticleRPCMockRecorder) AddArticle(c, arg interface{}) *gomock.Call
AddArticle indicates an expected call of AddArticle
func (*MockArticleRPCMockRecorder) AddArticleCache ¶
func (mr *MockArticleRPCMockRecorder) AddArticleCache(c, arg interface{}) *gomock.Call
AddArticleCache indicates an expected call of AddArticleCache
func (*MockArticleRPCMockRecorder) ArtDraft ¶
func (mr *MockArticleRPCMockRecorder) ArtDraft(c, arg interface{}) *gomock.Call
ArtDraft indicates an expected call of ArtDraft
func (*MockArticleRPCMockRecorder) ArticleMetas ¶
func (mr *MockArticleRPCMockRecorder) ArticleMetas(c, arg interface{}) *gomock.Call
ArticleMetas indicates an expected call of ArticleMetas
func (*MockArticleRPCMockRecorder) ArticleRemainCount ¶
func (mr *MockArticleRPCMockRecorder) ArticleRemainCount(c, arg interface{}) *gomock.Call
ArticleRemainCount indicates an expected call of ArticleRemainCount
func (*MockArticleRPCMockRecorder) Categories ¶
func (mr *MockArticleRPCMockRecorder) Categories(c, arg interface{}) *gomock.Call
Categories indicates an expected call of Categories
func (*MockArticleRPCMockRecorder) CategoriesMap ¶
func (mr *MockArticleRPCMockRecorder) CategoriesMap(c, arg interface{}) *gomock.Call
CategoriesMap indicates an expected call of CategoriesMap
func (*MockArticleRPCMockRecorder) CheckPrivilege ¶
func (mr *MockArticleRPCMockRecorder) CheckPrivilege(c, arg interface{}) *gomock.Call
CheckPrivilege indicates an expected call of CheckPrivilege
func (*MockArticleRPCMockRecorder) CreationArticle ¶
func (mr *MockArticleRPCMockRecorder) CreationArticle(c, arg interface{}) *gomock.Call
CreationArticle indicates an expected call of CreationArticle
func (*MockArticleRPCMockRecorder) CreationUpStat ¶
func (mr *MockArticleRPCMockRecorder) CreationUpStat(c, arg interface{}) *gomock.Call
CreationUpStat indicates an expected call of CreationUpStat
func (*MockArticleRPCMockRecorder) CreationUpThirtyDayStat ¶
func (mr *MockArticleRPCMockRecorder) CreationUpThirtyDayStat(c, arg interface{}) *gomock.Call
CreationUpThirtyDayStat indicates an expected call of CreationUpThirtyDayStat
func (*MockArticleRPCMockRecorder) CreationUpperArticles ¶
func (mr *MockArticleRPCMockRecorder) CreationUpperArticles(c, arg interface{}) *gomock.Call
CreationUpperArticles indicates an expected call of CreationUpperArticles
func (*MockArticleRPCMockRecorder) CreationWithdrawArticle ¶
func (mr *MockArticleRPCMockRecorder) CreationWithdrawArticle(c, arg interface{}) *gomock.Call
CreationWithdrawArticle indicates an expected call of CreationWithdrawArticle
func (*MockArticleRPCMockRecorder) DelArtDraft ¶
func (mr *MockArticleRPCMockRecorder) DelArtDraft(c, arg interface{}) *gomock.Call
DelArtDraft indicates an expected call of DelArtDraft
func (*MockArticleRPCMockRecorder) DelArticle ¶
func (mr *MockArticleRPCMockRecorder) DelArticle(c, arg interface{}) *gomock.Call
DelArticle indicates an expected call of DelArticle
func (*MockArticleRPCMockRecorder) DelArticleCache ¶
func (mr *MockArticleRPCMockRecorder) DelArticleCache(c, arg interface{}) *gomock.Call
DelArticleCache indicates an expected call of DelArticleCache
func (*MockArticleRPCMockRecorder) DelRecommendArtCache ¶
func (mr *MockArticleRPCMockRecorder) DelRecommendArtCache(c, arg interface{}) *gomock.Call
DelRecommendArtCache indicates an expected call of DelRecommendArtCache
func (*MockArticleRPCMockRecorder) Favorites ¶
func (mr *MockArticleRPCMockRecorder) Favorites(c, arg interface{}) *gomock.Call
Favorites indicates an expected call of Favorites
func (*MockArticleRPCMockRecorder) HadLikesByMid ¶
func (mr *MockArticleRPCMockRecorder) HadLikesByMid(c, arg interface{}) *gomock.Call
HadLikesByMid indicates an expected call of HadLikesByMid
func (*MockArticleRPCMockRecorder) IsAuthor ¶
func (mr *MockArticleRPCMockRecorder) IsAuthor(c, arg interface{}) *gomock.Call
IsAuthor indicates an expected call of IsAuthor
func (*MockArticleRPCMockRecorder) NewArticleCount ¶
func (mr *MockArticleRPCMockRecorder) NewArticleCount(c, arg interface{}) *gomock.Call
NewArticleCount indicates an expected call of NewArticleCount
func (*MockArticleRPCMockRecorder) Recommends ¶
func (mr *MockArticleRPCMockRecorder) Recommends(c, arg interface{}) *gomock.Call
Recommends indicates an expected call of Recommends
func (*MockArticleRPCMockRecorder) SetStat ¶
func (mr *MockArticleRPCMockRecorder) SetStat(c, arg interface{}) *gomock.Call
SetStat indicates an expected call of SetStat
func (*MockArticleRPCMockRecorder) UpArtMetas ¶
func (mr *MockArticleRPCMockRecorder) UpArtMetas(c, arg interface{}) *gomock.Call
UpArtMetas indicates an expected call of UpArtMetas
func (*MockArticleRPCMockRecorder) UpLists ¶
func (mr *MockArticleRPCMockRecorder) UpLists(c, arg interface{}) *gomock.Call
UpLists indicates an expected call of UpLists
func (*MockArticleRPCMockRecorder) UpMoreArts ¶
func (mr *MockArticleRPCMockRecorder) UpMoreArts(c, arg interface{}) *gomock.Call
UpMoreArts indicates an expected call of UpMoreArts
func (*MockArticleRPCMockRecorder) UpdateArtDraft ¶
func (mr *MockArticleRPCMockRecorder) UpdateArtDraft(c, arg interface{}) *gomock.Call
UpdateArtDraft indicates an expected call of UpdateArtDraft
func (*MockArticleRPCMockRecorder) UpdateArticle ¶
func (mr *MockArticleRPCMockRecorder) UpdateArticle(c, arg interface{}) *gomock.Call
UpdateArticle indicates an expected call of UpdateArticle
func (*MockArticleRPCMockRecorder) UpdateArticleCache ¶
func (mr *MockArticleRPCMockRecorder) UpdateArticleCache(c, arg interface{}) *gomock.Call
UpdateArticleCache indicates an expected call of UpdateArticleCache
func (*MockArticleRPCMockRecorder) UpdateAuthorCache ¶
func (mr *MockArticleRPCMockRecorder) UpdateAuthorCache(c, arg interface{}) *gomock.Call
UpdateAuthorCache indicates an expected call of UpdateAuthorCache
func (*MockArticleRPCMockRecorder) UpdateNewArts ¶
func (mr *MockArticleRPCMockRecorder) UpdateNewArts(c, arg interface{}) *gomock.Call
UpdateNewArts indicates an expected call of UpdateNewArts
func (*MockArticleRPCMockRecorder) UpdateRecommends ¶
func (mr *MockArticleRPCMockRecorder) UpdateRecommends(c interface{}) *gomock.Call
UpdateRecommends indicates an expected call of UpdateRecommends
func (*MockArticleRPCMockRecorder) UpdateSortCache ¶
func (mr *MockArticleRPCMockRecorder) UpdateSortCache(c, arg interface{}) *gomock.Call
UpdateSortCache indicates an expected call of UpdateSortCache
func (*MockArticleRPCMockRecorder) UpperDrafts ¶
func (mr *MockArticleRPCMockRecorder) UpperDrafts(c, arg interface{}) *gomock.Call
UpperDrafts indicates an expected call of UpperDrafts
func (*MockArticleRPCMockRecorder) UpsArtMetas ¶
func (mr *MockArticleRPCMockRecorder) UpsArtMetas(c, arg interface{}) *gomock.Call
UpsArtMetas indicates an expected call of UpsArtMetas
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct info.
func (*Service) AddArtDraft ¶
AddArtDraft add article draft.
func (*Service) AddArticle ¶
AddArticle adds article when article passed. purge cache.
func (*Service) AddArticleCache ¶
AddArticleCache adds article when article passed. purge cache.
func (*Service) ArticleMetas ¶
func (s *Service) ArticleMetas(c context.Context, arg *model.ArgAids) (res map[int64]*model.Meta, err error)
ArticleMetas get article metas by aids
func (*Service) ArticleRemainCount ¶
ArticleRemainCount returns the number that user could be use to posting new articles.
func (*Service) Categories ¶
func (s *Service) Categories(c context.Context, arg *model.ArgIP) (res *model.Categories, err error)
Categories list categories of article
func (*Service) CategoriesMap ¶
func (s *Service) CategoriesMap(c context.Context, arg *model.ArgIP) (res map[int64]*model.Category, err error)
CategoriesMap list categories of article map
func (*Service) CreationArticle ¶
func (s *Service) CreationArticle(c context.Context, arg *model.ArgAidMid) (res *model.Article, err error)
CreationArticle gets article's meta.
func (*Service) CreationUpStat ¶
func (s *Service) CreationUpStat(c context.Context, arg *model.ArgMid) (res model.UpStat, err error)
CreationUpStat creation up stat
func (*Service) CreationUpThirtyDayStat ¶
func (s *Service) CreationUpThirtyDayStat(c context.Context, arg *model.ArgMid) (res []*model.ThirtyDayArticle, err error)
CreationUpThirtyDayStat creation up thirty day stat
func (*Service) CreationUpperArticles ¶
func (s *Service) CreationUpperArticles(c context.Context, arg *model.ArgCreationArts) (res *model.CreationArts, err error)
CreationUpperArticles gets article's meta.
func (*Service) CreationWithdrawArticle ¶
CreationWithdrawArticle author withdraw article.
func (*Service) DelArtDraft ¶
DelArtDraft deletes draft.
func (*Service) DelArticle ¶
DelArticle drops article when article not passed. purge cache.
func (*Service) DelArticleCache ¶
DelArticleCache adds article when article passed. purge cache.
func (*Service) DelRecommendArtCache ¶
DelRecommendArtCache del recommend article cache
func (*Service) Favorites ¶
func (s *Service) Favorites(c context.Context, arg *model.ArgFav) (res []*model.Favorite, err error)
Favorites list user's favorite articles
func (*Service) HadLikesByMid ¶
func (s *Service) HadLikesByMid(c context.Context, arg *model.ArgMidAids) (res map[int64]int, err error)
HadLikesByMid check user if has liked articles
func (*Service) NewArticleCount ¶
NewArticleCount get new article count since given pubtime
func (*Service) RebuildAllListReadCount ¶
RebuildAllListReadCount rebuild all list read count
func (*Service) Recommends ¶
func (s *Service) Recommends(c context.Context, arg *model.ArgRecommends) (res []*model.Meta, err error)
Recommends list recommend articles
func (*Service) UpArtMetas ¶
func (s *Service) UpArtMetas(c context.Context, arg *model.ArgUpArts) (res *model.UpArtMetas, err error)
UpArtMetas list up's article list
func (*Service) UpMoreArts ¶
UpMoreArts get upper more arts
func (*Service) UpdateArticle ¶
UpdateArticle updates article when article passed. purge cache.
func (*Service) UpdateArticleCache ¶
UpdateArticleCache adds article when article passed. purge cache.
func (*Service) UpdateAuthorCache ¶
UpdateAuthorCache update author cache
func (*Service) UpdateHotspots ¶
UpdateHotspots update hotspots
func (*Service) UpdateRecommends ¶
UpdateRecommends updates recommended articles.
func (*Service) UpdateSortCache ¶
UpdateSortCache update sort cache
func (*Service) UpperDrafts ¶
func (s *Service) UpperDrafts(c context.Context, arg *model.ArgUpDraft) (res *model.Drafts, err error)
UpperDrafts get article drafts by mid