mock.go 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: article.go
  3. // Package client is a generated GoMock package.
  4. package client
  5. import (
  6. context "context"
  7. gomock "github.com/golang/mock/gomock"
  8. model "go-common/app/interface/openplatform/article/model"
  9. reflect "reflect"
  10. )
  11. // MockArticleRPC is a mock of ArticleRPC interface
  12. type MockArticleRPC struct {
  13. ctrl *gomock.Controller
  14. recorder *MockArticleRPCMockRecorder
  15. }
  16. // MockArticleRPCMockRecorder is the mock recorder for MockArticleRPC
  17. type MockArticleRPCMockRecorder struct {
  18. mock *MockArticleRPC
  19. }
  20. // NewMockArticleRPC creates a new mock instance
  21. func NewMockArticleRPC(ctrl *gomock.Controller) *MockArticleRPC {
  22. mock := &MockArticleRPC{ctrl: ctrl}
  23. mock.recorder = &MockArticleRPCMockRecorder{mock}
  24. return mock
  25. }
  26. // EXPECT returns an object that allows the caller to indicate expected use
  27. func (m *MockArticleRPC) EXPECT() *MockArticleRPCMockRecorder {
  28. return m.recorder
  29. }
  30. // AddArticle mocks base method
  31. func (m *MockArticleRPC) AddArticle(c context.Context, arg *model.ArgArticle) (int64, error) {
  32. ret := m.ctrl.Call(m, "AddArticle", c, arg)
  33. ret0, _ := ret[0].(int64)
  34. ret1, _ := ret[1].(error)
  35. return ret0, ret1
  36. }
  37. // AddArticle indicates an expected call of AddArticle
  38. func (mr *MockArticleRPCMockRecorder) AddArticle(c, arg interface{}) *gomock.Call {
  39. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddArticle", reflect.TypeOf((*MockArticleRPC)(nil).AddArticle), c, arg)
  40. }
  41. // AddArticleCache mocks base method
  42. func (m *MockArticleRPC) AddArticleCache(c context.Context, arg *model.ArgAid) error {
  43. ret := m.ctrl.Call(m, "AddArticleCache", c, arg)
  44. ret0, _ := ret[0].(error)
  45. return ret0
  46. }
  47. // AddArticleCache indicates an expected call of AddArticleCache
  48. func (mr *MockArticleRPCMockRecorder) AddArticleCache(c, arg interface{}) *gomock.Call {
  49. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddArticleCache", reflect.TypeOf((*MockArticleRPC)(nil).AddArticleCache), c, arg)
  50. }
  51. // UpdateArticleCache mocks base method
  52. func (m *MockArticleRPC) UpdateArticleCache(c context.Context, arg *model.ArgAidCid) error {
  53. ret := m.ctrl.Call(m, "UpdateArticleCache", c, arg)
  54. ret0, _ := ret[0].(error)
  55. return ret0
  56. }
  57. // UpdateArticleCache indicates an expected call of UpdateArticleCache
  58. func (mr *MockArticleRPCMockRecorder) UpdateArticleCache(c, arg interface{}) *gomock.Call {
  59. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateArticleCache", reflect.TypeOf((*MockArticleRPC)(nil).UpdateArticleCache), c, arg)
  60. }
  61. // DelArticleCache mocks base method
  62. func (m *MockArticleRPC) DelArticleCache(c context.Context, arg *model.ArgAidMid) error {
  63. ret := m.ctrl.Call(m, "DelArticleCache", c, arg)
  64. ret0, _ := ret[0].(error)
  65. return ret0
  66. }
  67. // DelArticleCache indicates an expected call of DelArticleCache
  68. func (mr *MockArticleRPCMockRecorder) DelArticleCache(c, arg interface{}) *gomock.Call {
  69. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelArticleCache", reflect.TypeOf((*MockArticleRPC)(nil).DelArticleCache), c, arg)
  70. }
  71. // UpdateArticle mocks base method
  72. func (m *MockArticleRPC) UpdateArticle(c context.Context, arg *model.ArgArticle) error {
  73. ret := m.ctrl.Call(m, "UpdateArticle", c, arg)
  74. ret0, _ := ret[0].(error)
  75. return ret0
  76. }
  77. // UpdateArticle indicates an expected call of UpdateArticle
  78. func (mr *MockArticleRPCMockRecorder) UpdateArticle(c, arg interface{}) *gomock.Call {
  79. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateArticle", reflect.TypeOf((*MockArticleRPC)(nil).UpdateArticle), c, arg)
  80. }
  81. // CreationWithdrawArticle mocks base method
  82. func (m *MockArticleRPC) CreationWithdrawArticle(c context.Context, arg *model.ArgAidMid) error {
  83. ret := m.ctrl.Call(m, "CreationWithdrawArticle", c, arg)
  84. ret0, _ := ret[0].(error)
  85. return ret0
  86. }
  87. // CreationWithdrawArticle indicates an expected call of CreationWithdrawArticle
  88. func (mr *MockArticleRPCMockRecorder) CreationWithdrawArticle(c, arg interface{}) *gomock.Call {
  89. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreationWithdrawArticle", reflect.TypeOf((*MockArticleRPC)(nil).CreationWithdrawArticle), c, arg)
  90. }
  91. // DelArticle mocks base method
  92. func (m *MockArticleRPC) DelArticle(c context.Context, arg *model.ArgAidMid) error {
  93. ret := m.ctrl.Call(m, "DelArticle", c, arg)
  94. ret0, _ := ret[0].(error)
  95. return ret0
  96. }
  97. // DelArticle indicates an expected call of DelArticle
  98. func (mr *MockArticleRPCMockRecorder) DelArticle(c, arg interface{}) *gomock.Call {
  99. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelArticle", reflect.TypeOf((*MockArticleRPC)(nil).DelArticle), c, arg)
  100. }
  101. // CreationArticle mocks base method
  102. func (m *MockArticleRPC) CreationArticle(c context.Context, arg *model.ArgAidMid) (*model.Article, error) {
  103. ret := m.ctrl.Call(m, "CreationArticle", c, arg)
  104. ret0, _ := ret[0].(*model.Article)
  105. ret1, _ := ret[1].(error)
  106. return ret0, ret1
  107. }
  108. // CreationArticle indicates an expected call of CreationArticle
  109. func (mr *MockArticleRPCMockRecorder) CreationArticle(c, arg interface{}) *gomock.Call {
  110. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreationArticle", reflect.TypeOf((*MockArticleRPC)(nil).CreationArticle), c, arg)
  111. }
  112. // CreationUpperArticles mocks base method
  113. func (m *MockArticleRPC) CreationUpperArticles(c context.Context, arg *model.ArgCreationArts) (*model.CreationArts, error) {
  114. ret := m.ctrl.Call(m, "CreationUpperArticles", c, arg)
  115. ret0, _ := ret[0].(*model.CreationArts)
  116. ret1, _ := ret[1].(error)
  117. return ret0, ret1
  118. }
  119. // CreationUpperArticles indicates an expected call of CreationUpperArticles
  120. func (mr *MockArticleRPCMockRecorder) CreationUpperArticles(c, arg interface{}) *gomock.Call {
  121. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreationUpperArticles", reflect.TypeOf((*MockArticleRPC)(nil).CreationUpperArticles), c, arg)
  122. }
  123. // Categories mocks base method
  124. func (m *MockArticleRPC) Categories(c context.Context, arg *model.ArgIP) (*model.Categories, error) {
  125. ret := m.ctrl.Call(m, "Categories", c, arg)
  126. ret0, _ := ret[0].(*model.Categories)
  127. ret1, _ := ret[1].(error)
  128. return ret0, ret1
  129. }
  130. // Categories indicates an expected call of Categories
  131. func (mr *MockArticleRPCMockRecorder) Categories(c, arg interface{}) *gomock.Call {
  132. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Categories", reflect.TypeOf((*MockArticleRPC)(nil).Categories), c, arg)
  133. }
  134. // CategoriesMap mocks base method
  135. func (m *MockArticleRPC) CategoriesMap(c context.Context, arg *model.ArgIP) (map[int64]*model.Category, error) {
  136. ret := m.ctrl.Call(m, "CategoriesMap", c, arg)
  137. ret0, _ := ret[0].(map[int64]*model.Category)
  138. ret1, _ := ret[1].(error)
  139. return ret0, ret1
  140. }
  141. // CategoriesMap indicates an expected call of CategoriesMap
  142. func (mr *MockArticleRPCMockRecorder) CategoriesMap(c, arg interface{}) *gomock.Call {
  143. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CategoriesMap", reflect.TypeOf((*MockArticleRPC)(nil).CategoriesMap), c, arg)
  144. }
  145. // SetStat mocks base method
  146. func (m *MockArticleRPC) SetStat(c context.Context, arg *model.ArgStats) error {
  147. ret := m.ctrl.Call(m, "SetStat", c, arg)
  148. ret0, _ := ret[0].(error)
  149. return ret0
  150. }
  151. // SetStat indicates an expected call of SetStat
  152. func (mr *MockArticleRPCMockRecorder) SetStat(c, arg interface{}) *gomock.Call {
  153. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetStat", reflect.TypeOf((*MockArticleRPC)(nil).SetStat), c, arg)
  154. }
  155. // UpsArtMetas mocks base method
  156. func (m *MockArticleRPC) UpsArtMetas(c context.Context, arg *model.ArgUpsArts) (map[int64][]*model.Meta, error) {
  157. ret := m.ctrl.Call(m, "UpsArtMetas", c, arg)
  158. ret0, _ := ret[0].(map[int64][]*model.Meta)
  159. ret1, _ := ret[1].(error)
  160. return ret0, ret1
  161. }
  162. // UpsArtMetas indicates an expected call of UpsArtMetas
  163. func (mr *MockArticleRPCMockRecorder) UpsArtMetas(c, arg interface{}) *gomock.Call {
  164. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsArtMetas", reflect.TypeOf((*MockArticleRPC)(nil).UpsArtMetas), c, arg)
  165. }
  166. // ArticleMetas mocks base method
  167. func (m *MockArticleRPC) ArticleMetas(c context.Context, arg *model.ArgAids) (map[int64]*model.Meta, error) {
  168. ret := m.ctrl.Call(m, "ArticleMetas", c, arg)
  169. ret0, _ := ret[0].(map[int64]*model.Meta)
  170. ret1, _ := ret[1].(error)
  171. return ret0, ret1
  172. }
  173. // ArticleMetas indicates an expected call of ArticleMetas
  174. func (mr *MockArticleRPCMockRecorder) ArticleMetas(c, arg interface{}) *gomock.Call {
  175. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ArticleMetas", reflect.TypeOf((*MockArticleRPC)(nil).ArticleMetas), c, arg)
  176. }
  177. // UpdateRecommends mocks base method
  178. func (m *MockArticleRPC) UpdateRecommends(c context.Context) error {
  179. ret := m.ctrl.Call(m, "UpdateRecommends", c)
  180. ret0, _ := ret[0].(error)
  181. return ret0
  182. }
  183. // UpdateRecommends indicates an expected call of UpdateRecommends
  184. func (mr *MockArticleRPCMockRecorder) UpdateRecommends(c interface{}) *gomock.Call {
  185. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRecommends", reflect.TypeOf((*MockArticleRPC)(nil).UpdateRecommends), c)
  186. }
  187. // Recommends mocks base method
  188. func (m *MockArticleRPC) Recommends(c context.Context, arg *model.ArgRecommends) ([]*model.Meta, error) {
  189. ret := m.ctrl.Call(m, "Recommends", c, arg)
  190. ret0, _ := ret[0].([]*model.Meta)
  191. ret1, _ := ret[1].(error)
  192. return ret0, ret1
  193. }
  194. // Recommends indicates an expected call of Recommends
  195. func (mr *MockArticleRPCMockRecorder) Recommends(c, arg interface{}) *gomock.Call {
  196. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recommends", reflect.TypeOf((*MockArticleRPC)(nil).Recommends), c, arg)
  197. }
  198. // UpArtMetas mocks base method
  199. func (m *MockArticleRPC) UpArtMetas(c context.Context, arg *model.ArgUpArts) (*model.UpArtMetas, error) {
  200. ret := m.ctrl.Call(m, "UpArtMetas", c, arg)
  201. ret0, _ := ret[0].(*model.UpArtMetas)
  202. ret1, _ := ret[1].(error)
  203. return ret0, ret1
  204. }
  205. // UpArtMetas indicates an expected call of UpArtMetas
  206. func (mr *MockArticleRPCMockRecorder) UpArtMetas(c, arg interface{}) *gomock.Call {
  207. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpArtMetas", reflect.TypeOf((*MockArticleRPC)(nil).UpArtMetas), c, arg)
  208. }
  209. // AddArtDraft mocks base method
  210. func (m *MockArticleRPC) AddArtDraft(c context.Context, arg *model.ArgArticle) (int64, error) {
  211. ret := m.ctrl.Call(m, "AddArtDraft", c, arg)
  212. ret0, _ := ret[0].(int64)
  213. ret1, _ := ret[1].(error)
  214. return ret0, ret1
  215. }
  216. // AddArtDraft indicates an expected call of AddArtDraft
  217. func (mr *MockArticleRPCMockRecorder) AddArtDraft(c, arg interface{}) *gomock.Call {
  218. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddArtDraft", reflect.TypeOf((*MockArticleRPC)(nil).AddArtDraft), c, arg)
  219. }
  220. // UpdateArtDraft mocks base method
  221. func (m *MockArticleRPC) UpdateArtDraft(c context.Context, arg *model.ArgAidMid) error {
  222. ret := m.ctrl.Call(m, "UpdateArtDraft", c, arg)
  223. ret0, _ := ret[0].(error)
  224. return ret0
  225. }
  226. // UpdateArtDraft indicates an expected call of UpdateArtDraft
  227. func (mr *MockArticleRPCMockRecorder) UpdateArtDraft(c, arg interface{}) *gomock.Call {
  228. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateArtDraft", reflect.TypeOf((*MockArticleRPC)(nil).UpdateArtDraft), c, arg)
  229. }
  230. // DelArtDraft mocks base method
  231. func (m *MockArticleRPC) DelArtDraft(c context.Context, arg *model.ArgAidMid) error {
  232. ret := m.ctrl.Call(m, "DelArtDraft", c, arg)
  233. ret0, _ := ret[0].(error)
  234. return ret0
  235. }
  236. // DelArtDraft indicates an expected call of DelArtDraft
  237. func (mr *MockArticleRPCMockRecorder) DelArtDraft(c, arg interface{}) *gomock.Call {
  238. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelArtDraft", reflect.TypeOf((*MockArticleRPC)(nil).DelArtDraft), c, arg)
  239. }
  240. // ArtDraft mocks base method
  241. func (m *MockArticleRPC) ArtDraft(c context.Context, arg *model.ArgAidMid) (*model.Draft, error) {
  242. ret := m.ctrl.Call(m, "ArtDraft", c, arg)
  243. ret0, _ := ret[0].(*model.Draft)
  244. ret1, _ := ret[1].(error)
  245. return ret0, ret1
  246. }
  247. // ArtDraft indicates an expected call of ArtDraft
  248. func (mr *MockArticleRPCMockRecorder) ArtDraft(c, arg interface{}) *gomock.Call {
  249. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ArtDraft", reflect.TypeOf((*MockArticleRPC)(nil).ArtDraft), c, arg)
  250. }
  251. // UpperDrafts mocks base method
  252. func (m *MockArticleRPC) UpperDrafts(c context.Context, arg *model.ArgUpDraft) (*model.Drafts, error) {
  253. ret := m.ctrl.Call(m, "UpperDrafts", c, arg)
  254. ret0, _ := ret[0].(*model.Drafts)
  255. ret1, _ := ret[1].(error)
  256. return ret0, ret1
  257. }
  258. // UpperDrafts indicates an expected call of UpperDrafts
  259. func (mr *MockArticleRPCMockRecorder) UpperDrafts(c, arg interface{}) *gomock.Call {
  260. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpperDrafts", reflect.TypeOf((*MockArticleRPC)(nil).UpperDrafts), c, arg)
  261. }
  262. // UpdateNewArts mocks base method
  263. func (m *MockArticleRPC) UpdateNewArts(c context.Context, arg *model.ArgIP) error {
  264. ret := m.ctrl.Call(m, "UpdateNewArts", c, arg)
  265. ret0, _ := ret[0].(error)
  266. return ret0
  267. }
  268. // UpdateNewArts indicates an expected call of UpdateNewArts
  269. func (mr *MockArticleRPCMockRecorder) UpdateNewArts(c, arg interface{}) *gomock.Call {
  270. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNewArts", reflect.TypeOf((*MockArticleRPC)(nil).UpdateNewArts), c, arg)
  271. }
  272. // ArticleRemainCount mocks base method
  273. func (m *MockArticleRPC) ArticleRemainCount(c context.Context, arg *model.ArgMid) (int, error) {
  274. ret := m.ctrl.Call(m, "ArticleRemainCount", c, arg)
  275. ret0, _ := ret[0].(int)
  276. ret1, _ := ret[1].(error)
  277. return ret0, ret1
  278. }
  279. // ArticleRemainCount indicates an expected call of ArticleRemainCount
  280. func (mr *MockArticleRPCMockRecorder) ArticleRemainCount(c, arg interface{}) *gomock.Call {
  281. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ArticleRemainCount", reflect.TypeOf((*MockArticleRPC)(nil).ArticleRemainCount), c, arg)
  282. }
  283. // DelRecommendArtCache mocks base method
  284. func (m *MockArticleRPC) DelRecommendArtCache(c context.Context, arg *model.ArgAidCid) error {
  285. ret := m.ctrl.Call(m, "DelRecommendArtCache", c, arg)
  286. ret0, _ := ret[0].(error)
  287. return ret0
  288. }
  289. // DelRecommendArtCache indicates an expected call of DelRecommendArtCache
  290. func (mr *MockArticleRPCMockRecorder) DelRecommendArtCache(c, arg interface{}) *gomock.Call {
  291. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelRecommendArtCache", reflect.TypeOf((*MockArticleRPC)(nil).DelRecommendArtCache), c, arg)
  292. }
  293. // CheckPrivilege mocks base method
  294. func (m *MockArticleRPC) CheckPrivilege(c context.Context, arg *model.ArgMid) error {
  295. ret := m.ctrl.Call(m, "CheckPrivilege", c, arg)
  296. ret0, _ := ret[0].(error)
  297. return ret0
  298. }
  299. // CheckPrivilege indicates an expected call of CheckPrivilege
  300. func (mr *MockArticleRPCMockRecorder) CheckPrivilege(c, arg interface{}) *gomock.Call {
  301. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckPrivilege", reflect.TypeOf((*MockArticleRPC)(nil).CheckPrivilege), c, arg)
  302. }
  303. // Favorites mocks base method
  304. func (m *MockArticleRPC) Favorites(c context.Context, arg *model.ArgFav) ([]*model.Favorite, error) {
  305. ret := m.ctrl.Call(m, "Favorites", c, arg)
  306. ret0, _ := ret[0].([]*model.Favorite)
  307. ret1, _ := ret[1].(error)
  308. return ret0, ret1
  309. }
  310. // Favorites indicates an expected call of Favorites
  311. func (mr *MockArticleRPCMockRecorder) Favorites(c, arg interface{}) *gomock.Call {
  312. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Favorites", reflect.TypeOf((*MockArticleRPC)(nil).Favorites), c, arg)
  313. }
  314. // UpdateAuthorCache mocks base method
  315. func (m *MockArticleRPC) UpdateAuthorCache(c context.Context, arg *model.ArgAuthor) error {
  316. ret := m.ctrl.Call(m, "UpdateAuthorCache", c, arg)
  317. ret0, _ := ret[0].(error)
  318. return ret0
  319. }
  320. // UpdateAuthorCache indicates an expected call of UpdateAuthorCache
  321. func (mr *MockArticleRPCMockRecorder) UpdateAuthorCache(c, arg interface{}) *gomock.Call {
  322. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAuthorCache", reflect.TypeOf((*MockArticleRPC)(nil).UpdateAuthorCache), c, arg)
  323. }
  324. // UpdateSortCache mocks base method
  325. func (m *MockArticleRPC) UpdateSortCache(c context.Context, arg *model.ArgSort) error {
  326. ret := m.ctrl.Call(m, "UpdateSortCache", c, arg)
  327. ret0, _ := ret[0].(error)
  328. return ret0
  329. }
  330. // UpdateSortCache indicates an expected call of UpdateSortCache
  331. func (mr *MockArticleRPCMockRecorder) UpdateSortCache(c, arg interface{}) *gomock.Call {
  332. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSortCache", reflect.TypeOf((*MockArticleRPC)(nil).UpdateSortCache), c, arg)
  333. }
  334. // IsAuthor mocks base method
  335. func (m *MockArticleRPC) IsAuthor(c context.Context, arg *model.ArgMid) (bool, error) {
  336. ret := m.ctrl.Call(m, "IsAuthor", c, arg)
  337. ret0, _ := ret[0].(bool)
  338. ret1, _ := ret[1].(error)
  339. return ret0, ret1
  340. }
  341. // IsAuthor indicates an expected call of IsAuthor
  342. func (mr *MockArticleRPCMockRecorder) IsAuthor(c, arg interface{}) *gomock.Call {
  343. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsAuthor", reflect.TypeOf((*MockArticleRPC)(nil).IsAuthor), c, arg)
  344. }
  345. // NewArticleCount mocks base method
  346. func (m *MockArticleRPC) NewArticleCount(c context.Context, arg *model.ArgNewArt) (int64, error) {
  347. ret := m.ctrl.Call(m, "NewArticleCount", c, arg)
  348. ret0, _ := ret[0].(int64)
  349. ret1, _ := ret[1].(error)
  350. return ret0, ret1
  351. }
  352. // NewArticleCount indicates an expected call of NewArticleCount
  353. func (mr *MockArticleRPCMockRecorder) NewArticleCount(c, arg interface{}) *gomock.Call {
  354. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewArticleCount", reflect.TypeOf((*MockArticleRPC)(nil).NewArticleCount), c, arg)
  355. }
  356. // HadLikesByMid mocks base method
  357. func (m *MockArticleRPC) HadLikesByMid(c context.Context, arg *model.ArgMidAids) (map[int64]int, error) {
  358. ret := m.ctrl.Call(m, "HadLikesByMid", c, arg)
  359. ret0, _ := ret[0].(map[int64]int)
  360. ret1, _ := ret[1].(error)
  361. return ret0, ret1
  362. }
  363. // HadLikesByMid indicates an expected call of HadLikesByMid
  364. func (mr *MockArticleRPCMockRecorder) HadLikesByMid(c, arg interface{}) *gomock.Call {
  365. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HadLikesByMid", reflect.TypeOf((*MockArticleRPC)(nil).HadLikesByMid), c, arg)
  366. }
  367. // UpMoreArts mocks base method
  368. func (m *MockArticleRPC) UpMoreArts(c context.Context, arg *model.ArgAid) ([]*model.Meta, error) {
  369. ret := m.ctrl.Call(m, "UpMoreArts", c, arg)
  370. ret0, _ := ret[0].([]*model.Meta)
  371. ret1, _ := ret[1].(error)
  372. return ret0, ret1
  373. }
  374. // UpMoreArts indicates an expected call of UpMoreArts
  375. func (mr *MockArticleRPCMockRecorder) UpMoreArts(c, arg interface{}) *gomock.Call {
  376. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpMoreArts", reflect.TypeOf((*MockArticleRPC)(nil).UpMoreArts), c, arg)
  377. }
  378. // CreationUpStat mocks base method
  379. func (m *MockArticleRPC) CreationUpStat(c context.Context, arg *model.ArgMid) (model.UpStat, error) {
  380. ret := m.ctrl.Call(m, "CreationUpStat", c, arg)
  381. ret0, _ := ret[0].(model.UpStat)
  382. ret1, _ := ret[1].(error)
  383. return ret0, ret1
  384. }
  385. // CreationUpStat indicates an expected call of CreationUpStat
  386. func (mr *MockArticleRPCMockRecorder) CreationUpStat(c, arg interface{}) *gomock.Call {
  387. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreationUpStat", reflect.TypeOf((*MockArticleRPC)(nil).CreationUpStat), c, arg)
  388. }
  389. // CreationUpThirtyDayStat mocks base method
  390. func (m *MockArticleRPC) CreationUpThirtyDayStat(c context.Context, arg *model.ArgMid) ([]*model.ThirtyDayArticle, error) {
  391. ret := m.ctrl.Call(m, "CreationUpThirtyDayStat", c, arg)
  392. ret0, _ := ret[0].([]*model.ThirtyDayArticle)
  393. ret1, _ := ret[1].(error)
  394. return ret0, ret1
  395. }
  396. // CreationUpThirtyDayStat indicates an expected call of CreationUpThirtyDayStat
  397. func (mr *MockArticleRPCMockRecorder) CreationUpThirtyDayStat(c, arg interface{}) *gomock.Call {
  398. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreationUpThirtyDayStat", reflect.TypeOf((*MockArticleRPC)(nil).CreationUpThirtyDayStat), c, arg)
  399. }
  400. // UpLists mocks base method
  401. func (m *MockArticleRPC) UpLists(c context.Context, arg *model.ArgMid) (model.UpLists, error) {
  402. ret := m.ctrl.Call(m, "UpLists", c, arg)
  403. ret0, _ := ret[0].(model.UpLists)
  404. ret1, _ := ret[1].(error)
  405. return ret0, ret1
  406. }
  407. // UpLists indicates an expected call of UpLists
  408. func (mr *MockArticleRPCMockRecorder) UpLists(c, arg interface{}) *gomock.Call {
  409. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpLists", reflect.TypeOf((*MockArticleRPC)(nil).UpLists), c, arg)
  410. }