client

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package client is a generated GoMock package.

Index

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

func (m *MockArticleRPC) AddArticleCache(c context.Context, arg *model.ArgAid) error

AddArticleCache mocks base method

func (*MockArticleRPC) ArtDraft

func (m *MockArticleRPC) ArtDraft(c context.Context, arg *model.ArgAidMid) (*model.Draft, error)

ArtDraft 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

func (m *MockArticleRPC) ArticleRemainCount(c context.Context, arg *model.ArgMid) (int, error)

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

func (m *MockArticleRPC) CheckPrivilege(c context.Context, arg *model.ArgMid) error

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

func (m *MockArticleRPC) CreationUpStat(c context.Context, arg *model.ArgMid) (model.UpStat, error)

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

func (m *MockArticleRPC) CreationWithdrawArticle(c context.Context, arg *model.ArgAidMid) error

CreationWithdrawArticle mocks base method

func (*MockArticleRPC) DelArtDraft

func (m *MockArticleRPC) DelArtDraft(c context.Context, arg *model.ArgAidMid) error

DelArtDraft mocks base method

func (*MockArticleRPC) DelArticle

func (m *MockArticleRPC) DelArticle(c context.Context, arg *model.ArgAidMid) error

DelArticle mocks base method

func (*MockArticleRPC) DelArticleCache

func (m *MockArticleRPC) DelArticleCache(c context.Context, arg *model.ArgAidMid) error

DelArticleCache mocks base method

func (*MockArticleRPC) DelRecommendArtCache

func (m *MockArticleRPC) DelRecommendArtCache(c context.Context, arg *model.ArgAidCid) error

DelRecommendArtCache mocks base method

func (*MockArticleRPC) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockArticleRPC) Favorites

func (m *MockArticleRPC) Favorites(c context.Context, arg *model.ArgFav) ([]*model.Favorite, error)

Favorites mocks base method

func (*MockArticleRPC) HadLikesByMid

func (m *MockArticleRPC) HadLikesByMid(c context.Context, arg *model.ArgMidAids) (map[int64]int, error)

HadLikesByMid mocks base method

func (*MockArticleRPC) IsAuthor

func (m *MockArticleRPC) IsAuthor(c context.Context, arg *model.ArgMid) (bool, error)

IsAuthor mocks base method

func (*MockArticleRPC) NewArticleCount

func (m *MockArticleRPC) NewArticleCount(c context.Context, arg *model.ArgNewArt) (int64, error)

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) SetStat

func (m *MockArticleRPC) SetStat(c context.Context, arg *model.ArgStats) error

SetStat 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) UpLists

func (m *MockArticleRPC) UpLists(c context.Context, arg *model.ArgMid) (model.UpLists, error)

UpLists mocks base method

func (*MockArticleRPC) UpMoreArts

func (m *MockArticleRPC) UpMoreArts(c context.Context, arg *model.ArgAid) ([]*model.Meta, error)

UpMoreArts mocks base method

func (*MockArticleRPC) UpdateArtDraft

func (m *MockArticleRPC) UpdateArtDraft(c context.Context, arg *model.ArgAidMid) error

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

func (m *MockArticleRPC) UpdateArticleCache(c context.Context, arg *model.ArgAidCid) error

UpdateArticleCache mocks base method

func (*MockArticleRPC) UpdateAuthorCache

func (m *MockArticleRPC) UpdateAuthorCache(c context.Context, arg *model.ArgAuthor) error

UpdateAuthorCache mocks base method

func (*MockArticleRPC) UpdateNewArts

func (m *MockArticleRPC) UpdateNewArts(c context.Context, arg *model.ArgIP) error

UpdateNewArts mocks base method

func (*MockArticleRPC) UpdateRecommends

func (m *MockArticleRPC) UpdateRecommends(c context.Context) error

UpdateRecommends mocks base method

func (*MockArticleRPC) UpdateSortCache

func (m *MockArticleRPC) UpdateSortCache(c context.Context, arg *model.ArgSort) error

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 New

func New(c *rpc.ClientConfig) (s *Service)

New new service instance and return.

func (*Service) AddArtDraft

func (s *Service) AddArtDraft(c context.Context, arg *model.ArgArticle) (id int64, err error)

AddArtDraft add article draft.

func (*Service) AddArticle

func (s *Service) AddArticle(c context.Context, arg *model.ArgArticle) (id int64, err error)

AddArticle adds article when article passed. purge cache.

func (*Service) AddArticleCache

func (s *Service) AddArticleCache(c context.Context, arg *model.ArgAid) (err error)

AddArticleCache adds article when article passed. purge cache.

func (*Service) ArtDraft

func (s *Service) ArtDraft(c context.Context, arg *model.ArgAidMid) (res *model.Draft, err error)

ArtDraft get article draft by id

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

func (s *Service) ArticleRemainCount(c context.Context, arg *model.ArgMid) (res int, err error)

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

func (s *Service) CreationWithdrawArticle(c context.Context, arg *model.ArgAidMid) (err error)

CreationWithdrawArticle author withdraw article.

func (*Service) DelArtDraft

func (s *Service) DelArtDraft(c context.Context, arg *model.ArgAidMid) (err error)

DelArtDraft deletes draft.

func (*Service) DelArticle

func (s *Service) DelArticle(c context.Context, arg *model.ArgAidMid) (err error)

DelArticle drops article when article not passed. purge cache.

func (*Service) DelArticleCache

func (s *Service) DelArticleCache(c context.Context, arg *model.ArgAidMid) (err error)

DelArticleCache adds article when article passed. purge cache.

func (*Service) DelRecommendArtCache

func (s *Service) DelRecommendArtCache(c context.Context, arg *model.ArgAidCid) (err error)

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) IsAuthor

func (s *Service) IsAuthor(c context.Context, arg *model.ArgMid) (res bool, err error)

IsAuthor checks that whether user has permission to write model.

func (*Service) NewArticleCount

func (s *Service) NewArticleCount(c context.Context, arg *model.ArgNewArt) (res int64, err error)

NewArticleCount get new article count since given pubtime

func (*Service) RebuildAllListReadCount

func (s *Service) RebuildAllListReadCount(c context.Context) (err error)

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) SetStat

func (s *Service) SetStat(c context.Context, arg *model.ArgStats) (err error)

SetStat updates article's stat cache.

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) UpLists

func (s *Service) UpLists(c context.Context, arg *model.ArgMid) (res model.UpLists, err error)

UpLists get upper article lists

func (*Service) UpMoreArts

func (s *Service) UpMoreArts(c context.Context, arg *model.ArgAid) (res []*model.Meta, err error)

UpMoreArts get upper more arts

func (*Service) UpdateArticle

func (s *Service) UpdateArticle(c context.Context, arg *model.ArgArticle) (err error)

UpdateArticle updates article when article passed. purge cache.

func (*Service) UpdateArticleCache

func (s *Service) UpdateArticleCache(c context.Context, arg *model.ArgAidCid) (err error)

UpdateArticleCache adds article when article passed. purge cache.

func (*Service) UpdateAuthorCache

func (s *Service) UpdateAuthorCache(c context.Context, arg *model.ArgAuthor) (err error)

UpdateAuthorCache update author cache

func (*Service) UpdateHotspots

func (s *Service) UpdateHotspots(c context.Context, arg *model.ArgForce) (err error)

UpdateHotspots update hotspots

func (*Service) UpdateRecommends

func (s *Service) UpdateRecommends(c context.Context) (err error)

UpdateRecommends updates recommended articles.

func (*Service) UpdateSortCache

func (s *Service) UpdateSortCache(c context.Context, arg *model.ArgSort) (err error)

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

func (*Service) UpsArtMetas

func (s *Service) UpsArtMetas(c context.Context, arg *model.ArgUpsArts) (res map[int64][]*model.Meta, err error)

UpsArtMetas list passed article meta of ups

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL