Documentation ¶
Index ¶
- Variables
- type Article
- type ArticleDraft
- type ArticleRepo
- type ArticleReview
- type ArticleSearch
- type ArticleStatistic
- type ArticleStatisticJudge
- type ArticleUseCase
- func (r *ArticleUseCase) AddArticleComment(ctx context.Context, id int32, uuid string) error
- func (r *ArticleUseCase) AddArticleContentReviewDbAndCache(ctx context.Context, review *TextReview) error
- func (r *ArticleUseCase) AddArticleImageReviewDbAndCache(ctx context.Context, review *ImageReview) error
- func (r *ArticleUseCase) ArticleContentIrregular(ctx context.Context, review *TextReview) error
- func (r *ArticleUseCase) ArticleDraftMark(ctx context.Context, id int32, uuid string) error
- func (r *ArticleUseCase) ArticleImageIrregular(ctx context.Context, review *ImageReview) error
- func (r *ArticleUseCase) ArticleStatisticJudge(ctx context.Context, id int32, uuid string) (*ArticleStatisticJudge, error)
- func (r *ArticleUseCase) CancelArticleAgree(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *ArticleUseCase) CancelArticleAgreeDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *ArticleUseCase) CancelArticleCollect(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *ArticleUseCase) CancelArticleCollectDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *ArticleUseCase) CreateArticle(ctx context.Context, id, auth int32, uuid string) error
- func (r *ArticleUseCase) CreateArticleDbCacheAndSearch(ctx context.Context, id, auth int32, uuid string) error
- func (r *ArticleUseCase) CreateArticleDraft(ctx context.Context, uuid string) (int32, error)
- func (r *ArticleUseCase) DeleteArticle(ctx context.Context, id int32, uuid string) error
- func (r *ArticleUseCase) DeleteArticleCacheAndSearch(ctx context.Context, id int32, uuid string) error
- func (r *ArticleUseCase) DeleteArticleDraft(ctx context.Context, id int32, uuid string) error
- func (r *ArticleUseCase) EditArticle(ctx context.Context, id, auth int32, uuid string) error
- func (r *ArticleUseCase) EditArticleCosAndSearch(ctx context.Context, id, auth int32, uuid string) error
- func (r *ArticleUseCase) GetArticleContentReview(ctx context.Context, page int32, uuid string) ([]*TextReview, error)
- func (r *ArticleUseCase) GetArticleCount(ctx context.Context, uuid string) (int32, error)
- func (r *ArticleUseCase) GetArticleCountVisitor(ctx context.Context, uuid string) (int32, error)
- func (r *ArticleUseCase) GetArticleDraftList(ctx context.Context, uuid string) ([]*ArticleDraft, error)
- func (r *ArticleUseCase) GetArticleImageReview(ctx context.Context, page int32, uuid string) ([]*ImageReview, error)
- func (r *ArticleUseCase) GetArticleList(ctx context.Context, page int32) ([]*Article, error)
- func (r *ArticleUseCase) GetArticleListHot(ctx context.Context, page int32) ([]*ArticleStatistic, error)
- func (r *ArticleUseCase) GetArticleListStatistic(ctx context.Context, ids []int32) ([]*ArticleStatistic, error)
- func (r *ArticleUseCase) GetArticleSearch(ctx context.Context, page int32, search, time string) ([]*ArticleSearch, int32, error)
- func (r *ArticleUseCase) GetArticleStatistic(ctx context.Context, id int32, uuid string) (*ArticleStatistic, error)
- func (r *ArticleUseCase) GetColumnArticleList(ctx context.Context, id int32) ([]*Article, error)
- func (r *ArticleUseCase) GetLastArticleDraft(ctx context.Context, uuid string) (*ArticleDraft, error)
- func (r *ArticleUseCase) GetUserArticleAgree(ctx context.Context, uuid string) (map[int32]bool, error)
- func (r *ArticleUseCase) GetUserArticleCollect(ctx context.Context, uuid string) (map[int32]bool, error)
- func (r *ArticleUseCase) GetUserArticleList(ctx context.Context, page int32, uuid string) ([]*Article, error)
- func (r *ArticleUseCase) GetUserArticleListAll(ctx context.Context, uuid string) ([]*Article, error)
- func (r *ArticleUseCase) GetUserArticleListVisitor(ctx context.Context, page int32, uuid string) ([]*Article, error)
- func (r *ArticleUseCase) ReduceArticleComment(ctx context.Context, id int32, uuid string) error
- func (r *ArticleUseCase) SendArticle(ctx context.Context, id int32, uuid, ip string) error
- func (r *ArticleUseCase) SendArticleEdit(ctx context.Context, id int32, uuid, ip string) error
- func (r *ArticleUseCase) SetArticleAgree(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *ArticleUseCase) SetArticleAgreeDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *ArticleUseCase) SetArticleCollect(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error
- func (r *ArticleUseCase) SetArticleCollectDbAndCache(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error
- func (r *ArticleUseCase) SetArticleView(ctx context.Context, id int32, uuid string) error
- func (r *ArticleUseCase) SetArticleViewDbAndCache(ctx context.Context, id int32, uuid string) error
- type Collections
- type CollectionsDraft
- type CollectionsReview
- type Column
- type ColumnDraft
- type ColumnRepo
- type ColumnReview
- type ColumnSearch
- type ColumnStatistic
- type ColumnStatisticJudge
- type ColumnUseCase
- func (r *ColumnUseCase) AddColumnContentReviewDbAndCache(ctx context.Context, review *TextReview) error
- func (r *ColumnUseCase) AddColumnImageReviewDbAndCache(ctx context.Context, review *ImageReview) error
- func (r *ColumnUseCase) AddColumnIncludes(ctx context.Context, id, articleId int32, uuid string) error
- func (r *ColumnUseCase) AddColumnIncludesDbAndCache(ctx context.Context, id, articleId int32, uuid string) error
- func (r *ColumnUseCase) CancelColumnAgree(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *ColumnUseCase) CancelColumnAgreeDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *ColumnUseCase) CancelColumnCollect(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *ColumnUseCase) CancelColumnCollectDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *ColumnUseCase) CancelColumnSubscribeDbAndCache(ctx context.Context, id int32, uuid string) error
- func (r *ColumnUseCase) CancelSubscribeColumn(ctx context.Context, id int32, uuid string) error
- func (r *ColumnUseCase) ColumnContentIrregular(ctx context.Context, review *TextReview) error
- func (r *ColumnUseCase) ColumnImageIrregular(ctx context.Context, review *ImageReview) error
- func (r *ColumnUseCase) ColumnStatisticJudge(ctx context.Context, id int32, uuid string) (*ColumnStatisticJudge, error)
- func (r *ColumnUseCase) CreateColumn(ctx context.Context, id, auth int32, uuid string) error
- func (r *ColumnUseCase) CreateColumnDbCacheAndSearch(ctx context.Context, id, auth int32, uuid string) error
- func (r *ColumnUseCase) CreateColumnDraft(ctx context.Context, uuid string) (int32, error)
- func (r *ColumnUseCase) DeleteColumn(ctx context.Context, id int32, uuid string) error
- func (r *ColumnUseCase) DeleteColumnCacheAndSearch(ctx context.Context, id int32, uuid string) error
- func (r *ColumnUseCase) DeleteColumnIncludes(ctx context.Context, id, articleId int32, uuid string) error
- func (r *ColumnUseCase) DeleteColumnIncludesDbAndCache(ctx context.Context, id, articleId int32, uuid string) error
- func (r *ColumnUseCase) EditColumn(ctx context.Context, id, auth int32, uuid string) error
- func (r *ColumnUseCase) EditColumnCosAndSearch(ctx context.Context, id, auth int32, uuid string) error
- func (r *ColumnUseCase) GetColumnContentReview(ctx context.Context, page int32, uuid string) ([]*TextReview, error)
- func (r *ColumnUseCase) GetColumnCount(ctx context.Context, uuid string) (int32, error)
- func (r *ColumnUseCase) GetColumnCountVisitor(ctx context.Context, uuid string) (int32, error)
- func (r *ColumnUseCase) GetColumnImageReview(ctx context.Context, page int32, uuid string) ([]*ImageReview, error)
- func (r *ColumnUseCase) GetColumnList(ctx context.Context, page int32) ([]*Column, error)
- func (r *ColumnUseCase) GetColumnListHot(ctx context.Context, page int32) ([]*ColumnStatistic, error)
- func (r *ColumnUseCase) GetColumnListStatistic(ctx context.Context, ids []int32) ([]*ColumnStatistic, error)
- func (r *ColumnUseCase) GetColumnSearch(ctx context.Context, page int32, search, time string) ([]*ColumnSearch, int32, error)
- func (r *ColumnUseCase) GetColumnStatistic(ctx context.Context, id int32, uuid string) (*ColumnStatistic, error)
- func (r *ColumnUseCase) GetColumnSubscribes(ctx context.Context, uuid string, ids []int32) ([]*Subscribe, error)
- func (r *ColumnUseCase) GetLastColumnDraft(ctx context.Context, uuid string) (*ColumnDraft, error)
- func (r *ColumnUseCase) GetSubscribeList(ctx context.Context, page int32, uuid string) ([]*Subscribe, error)
- func (r *ColumnUseCase) GetSubscribeListCount(ctx context.Context, uuid string) (int32, error)
- func (r *ColumnUseCase) GetUserColumnAgree(ctx context.Context, uuid string) (map[int32]bool, error)
- func (r *ColumnUseCase) GetUserColumnCollect(ctx context.Context, uuid string) (map[int32]bool, error)
- func (r *ColumnUseCase) GetUserColumnList(ctx context.Context, page int32, uuid string) ([]*Column, error)
- func (r *ColumnUseCase) GetUserColumnListVisitor(ctx context.Context, page int32, uuid string) ([]*Column, error)
- func (r *ColumnUseCase) GetUserSubscribeColumn(ctx context.Context, uuid string) (map[int32]bool, error)
- func (r *ColumnUseCase) SendColumn(ctx context.Context, id int32, uuid, ip string) error
- func (r *ColumnUseCase) SendColumnEdit(ctx context.Context, id int32, uuid, ip string) error
- func (r *ColumnUseCase) SetColumnAgree(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *ColumnUseCase) SetColumnAgreeDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *ColumnUseCase) SetColumnCollect(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error
- func (r *ColumnUseCase) SetColumnCollectDbAndCache(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error
- func (r *ColumnUseCase) SetColumnSubscribeDbAndCache(ctx context.Context, id int32, uuid string) error
- func (r *ColumnUseCase) SetColumnView(ctx context.Context, id int32, uuid string) error
- func (r *ColumnUseCase) SetColumnViewDbAndCache(ctx context.Context, id int32, uuid string) error
- func (r *ColumnUseCase) SubscribeColumn(ctx context.Context, id int32, uuid string) error
- func (r *ColumnUseCase) SubscribeJudge(ctx context.Context, id int32, uuid string) (bool, error)
- type CreationRepo
- type CreationUseCase
- func (r *CreationUseCase) AddCollectionsContentReviewDbAndCache(ctx context.Context, review *TextReview) error
- func (r *CreationUseCase) CollectionsContentIrregular(ctx context.Context, review *TextReview) error
- func (r *CreationUseCase) CreateCollections(ctx context.Context, id, auth int32, uuid string) error
- func (r *CreationUseCase) CreateCollectionsDbAndCache(ctx context.Context, id, auth int32, uuid string) error
- func (r *CreationUseCase) CreateCollectionsDraft(ctx context.Context, uuid string) (int32, error)
- func (r *CreationUseCase) DeleteCollections(ctx context.Context, id int32, uuid string) error
- func (r *CreationUseCase) DeleteCollectionsCache(ctx context.Context, id int32, uuid string) error
- func (r *CreationUseCase) EditCollections(ctx context.Context, id, auth int32, uuid string) error
- func (r *CreationUseCase) EditCollectionsCos(ctx context.Context, id, auth int32, uuid string) error
- func (r *CreationUseCase) GetCollectArticleCount(ctx context.Context, id int32) (int32, error)
- func (r *CreationUseCase) GetCollectArticleList(ctx context.Context, id, page int32) ([]*Article, error)
- func (r *CreationUseCase) GetCollectColumnCount(ctx context.Context, id int32) (int32, error)
- func (r *CreationUseCase) GetCollectColumnList(ctx context.Context, id, page int32) ([]*Column, error)
- func (r *CreationUseCase) GetCollectTalkCount(ctx context.Context, id int32) (int32, error)
- func (r *CreationUseCase) GetCollectTalkList(ctx context.Context, id, page int32) ([]*Talk, error)
- func (r *CreationUseCase) GetCollectionListInfo(ctx context.Context, ids []int32) ([]*Collections, error)
- func (r *CreationUseCase) GetCollections(ctx context.Context, id int32, uuid string) (*Collections, error)
- func (r *CreationUseCase) GetCollectionsContentReview(ctx context.Context, page int32, uuid string) ([]*TextReview, error)
- func (r *CreationUseCase) GetCollectionsCount(ctx context.Context, uuid string) (int32, error)
- func (r *CreationUseCase) GetCollectionsList(ctx context.Context, uuid string, page int32) ([]*Collections, error)
- func (r *CreationUseCase) GetCollectionsListAll(ctx context.Context, uuid string) ([]*Collections, error)
- func (r *CreationUseCase) GetCollectionsListByVisitor(ctx context.Context, uuid string, page int32) ([]*Collections, error)
- func (r *CreationUseCase) GetCollectionsVisitorCount(ctx context.Context, uuid string) (int32, error)
- func (r *CreationUseCase) GetCreationUser(ctx context.Context, uuid string) (*CreationUser, error)
- func (r *CreationUseCase) GetCreationUserVisitor(ctx context.Context, uuid string) (*CreationUser, error)
- func (r *CreationUseCase) GetLastCollectionsDraft(ctx context.Context, uuid string) (*CollectionsDraft, error)
- func (r *CreationUseCase) GetLeaderBoard(ctx context.Context) ([]*LeaderBoard, error)
- func (r *CreationUseCase) GetUserTimeLineList(ctx context.Context, page int32, uuid string) ([]*TimeLine, error)
- func (r *CreationUseCase) SendCollections(ctx context.Context, id int32, uuid, ip string) error
- func (r *CreationUseCase) SendCollectionsEdit(ctx context.Context, id int32, uuid, ip string) error
- type CreationUser
- type ImageReview
- type LeaderBoard
- type News
- type NewsRepo
- type NewsUseCase
- type Recovery
- type SendArticleMap
- type SendArticleStatisticMap
- type SendCollectionMap
- type SendColumnIncludesMap
- type SendColumnMap
- type SendColumnStatisticMap
- type SendColumnSubscribeMap
- type SendScoreMap
- type SendStatisticMap
- type SendTalkMap
- type SendTalkStatisticMap
- type Subscribe
- type Talk
- type TalkDraft
- type TalkRepo
- type TalkReview
- type TalkSearch
- type TalkStatistic
- type TalkStatisticJudge
- type TalkUseCase
- func (r *TalkUseCase) AddTalkComment(ctx context.Context, id int32, uuid string) error
- func (r *TalkUseCase) AddTalkContentReviewDbAndCache(ctx context.Context, review *TextReview) error
- func (r *TalkUseCase) AddTalkImageReviewDbAndCache(ctx context.Context, review *ImageReview) error
- func (r *TalkUseCase) CancelTalkAgree(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *TalkUseCase) CancelTalkAgreeDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *TalkUseCase) CancelTalkCollect(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *TalkUseCase) CancelTalkCollectDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *TalkUseCase) CreateTalk(ctx context.Context, id, auth int32, uuid string) error
- func (r *TalkUseCase) CreateTalkDbCacheAndSearch(ctx context.Context, id, auth int32, uuid string) error
- func (r *TalkUseCase) CreateTalkDraft(ctx context.Context, uuid string) (int32, error)
- func (r *TalkUseCase) DeleteTalk(ctx context.Context, id int32, uuid string) error
- func (r *TalkUseCase) DeleteTalkCacheAndSearch(ctx context.Context, id int32, uuid string) error
- func (r *TalkUseCase) EditTalk(ctx context.Context, id, auth int32, uuid string) error
- func (r *TalkUseCase) EditTalkCosAndSearch(ctx context.Context, id, auth int32, uuid string) error
- func (r *TalkUseCase) GetLastTalkDraft(ctx context.Context, uuid string) (*TalkDraft, error)
- func (r *TalkUseCase) GetTalkContentReview(ctx context.Context, page int32, uuid string) ([]*TextReview, error)
- func (r *TalkUseCase) GetTalkCount(ctx context.Context, uuid string) (int32, error)
- func (r *TalkUseCase) GetTalkCountVisitor(ctx context.Context, uuid string) (int32, error)
- func (r *TalkUseCase) GetTalkImageReview(ctx context.Context, page int32, uuid string) ([]*ImageReview, error)
- func (r *TalkUseCase) GetTalkList(ctx context.Context, page int32) ([]*Talk, error)
- func (r *TalkUseCase) GetTalkListHot(ctx context.Context, page int32) ([]*TalkStatistic, error)
- func (r *TalkUseCase) GetTalkListStatistic(ctx context.Context, ids []int32) ([]*TalkStatistic, error)
- func (r *TalkUseCase) GetTalkSearch(ctx context.Context, page int32, search, time string) ([]*TalkSearch, int32, error)
- func (r *TalkUseCase) GetTalkStatistic(ctx context.Context, id int32, uuid string) (*TalkStatistic, error)
- func (r *TalkUseCase) GetUserTalkAgree(ctx context.Context, uuid string) (map[int32]bool, error)
- func (r *TalkUseCase) GetUserTalkCollect(ctx context.Context, uuid string) (map[int32]bool, error)
- func (r *TalkUseCase) GetUserTalkList(ctx context.Context, page int32, uuid string) ([]*Talk, error)
- func (r *TalkUseCase) GetUserTalkListVisitor(ctx context.Context, page int32, uuid string) ([]*Talk, error)
- func (r *TalkUseCase) ReduceTalkComment(ctx context.Context, id int32, uuid string) error
- func (r *TalkUseCase) SendTalk(ctx context.Context, id int32, uuid, ip string) error
- func (r *TalkUseCase) SendTalkEdit(ctx context.Context, id int32, uuid, ip string) error
- func (r *TalkUseCase) SetTalkAgree(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *TalkUseCase) SetTalkAgreeDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error
- func (r *TalkUseCase) SetTalkCollect(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error
- func (r *TalkUseCase) SetTalkCollectDbAndCache(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error
- func (r *TalkUseCase) SetTalkView(ctx context.Context, id int32, uuid string) error
- func (r *TalkUseCase) SetTalkViewDbAndCache(ctx context.Context, id int32, uuid string) error
- func (r *TalkUseCase) TalkContentIrregular(ctx context.Context, review *TextReview) error
- func (r *TalkUseCase) TalkImageIrregular(ctx context.Context, review *ImageReview) error
- func (r *TalkUseCase) TalkStatisticJudge(ctx context.Context, id int32, uuid string) (*TalkStatisticJudge, error)
- type TextReview
- type TimeLine
- type Transaction
Constants ¶
This section is empty.
Variables ¶
var ProviderSet = wire.NewSet(NewArticleUseCase, NewTalkUseCase, NewCreationUseCase, NewColumnUseCase, NewNewsUseCase)
Functions ¶
This section is empty.
Types ¶
type ArticleDraft ¶
type ArticleRepo ¶
type ArticleRepo interface { GetLastArticleDraft(ctx context.Context, uuid string) (*ArticleDraft, error) GetArticle(ctx context.Context, id int32) (*Article, error) GetArticleList(ctx context.Context, page int32) ([]*Article, error) GetArticleDraftList(ctx context.Context, uuid string) ([]*ArticleDraft, error) GetArticleAgreeJudge(ctx context.Context, id int32, uuid string) (bool, error) GetArticleCollectJudge(ctx context.Context, id int32, uuid string) (bool, error) GetArticleListHot(ctx context.Context, page int32) ([]*ArticleStatistic, error) GetArticleHotFromDB(ctx context.Context, page int32) ([]*ArticleStatistic, error) GetColumnArticleList(ctx context.Context, id int32) ([]*Article, error) GetArticleCount(ctx context.Context, uuid string) (int32, error) GetArticleCountVisitor(ctx context.Context, uuid string) (int32, error) GetUserArticleList(ctx context.Context, page int32, uuid string) ([]*Article, error) GetUserArticleListAll(ctx context.Context, uuid string) ([]*Article, error) GetUserArticleListVisitor(ctx context.Context, page int32, uuid string) ([]*Article, error) GetArticleStatistic(ctx context.Context, id int32, uuid string) (*ArticleStatistic, error) GetArticleListStatistic(ctx context.Context, ids []int32) ([]*ArticleStatistic, error) GetArticleSearch(ctx context.Context, page int32, search, time string) ([]*ArticleSearch, int32, error) GetArticleAuth(ctx context.Context, id int32) (int32, error) GetUserArticleAgree(ctx context.Context, uuid string) (map[int32]bool, error) GetUserArticleCollect(ctx context.Context, uuid string) (map[int32]bool, error) GetCollectionsIdFromArticleCollect(ctx context.Context, id int32) (int32, error) GetArticleImageReview(ctx context.Context, page int32, uuid string) ([]*ImageReview, error) GetArticleContentReview(ctx context.Context, page int32, uuid string) ([]*TextReview, error) CreateArticle(ctx context.Context, id, auth int32, uuid string) error CreateArticleStatistic(ctx context.Context, id, auth int32, uuid string) error CreateArticleDraft(ctx context.Context, uuid string) (int32, error) CreateArticleFolder(ctx context.Context, id int32, uuid string) error CreateArticleCache(ctx context.Context, id, auth int32, uuid, mode string) error CreateArticleSearch(ctx context.Context, id int32, uuid string) error AddArticleComment(ctx context.Context, id int32) error AddArticleCommentToCache(ctx context.Context, id int32, uuid string) error AddCreationUserArticle(ctx context.Context, uuid string, auth int32) error ReduceArticleComment(ctx context.Context, id int32) error ReduceArticleCommentToCache(ctx context.Context, id int32, uuid string) error ReduceCreationUserArticle(ctx context.Context, auth int32, uuid string) error EditArticleCos(ctx context.Context, id int32, uuid string) error EditArticleSearch(ctx context.Context, id int32, uuid string) error UpdateArticleCache(ctx context.Context, id, auth int32, uuid, mode string) error DeleteArticle(ctx context.Context, id int32, uuid string) error DeleteArticleStatistic(ctx context.Context, id int32, uuid string) error DeleteArticleCache(ctx context.Context, id, auth int32, uuid string) error DeleteArticleSearch(ctx context.Context, id int32, uuid string) error DeleteArticleDraft(ctx context.Context, id int32, uuid string) error FreezeArticleCos(ctx context.Context, id int32, uuid string) error ArticleDraftMark(ctx context.Context, id int32, uuid string) error SendArticle(ctx context.Context, id int32, uuid string) (*ArticleDraft, error) SendReviewToMq(ctx context.Context, review *ArticleReview) error SendScoreToMq(ctx context.Context, score int32, uuid, mode string) error SendArticleToMq(ctx context.Context, article *Article, mode string) error SendStatisticToMq(ctx context.Context, id, collectionsId int32, uuid, userUuid, mode string) error SendArticleStatisticToMq(ctx context.Context, uuid, userUuid, mode string) error SendArticleImageIrregularToMq(ctx context.Context, review *ImageReview) error SendArticleContentIrregularToMq(ctx context.Context, review *TextReview) error SetArticleAgree(ctx context.Context, id int32, uuid string) error SetUserArticleAgree(ctx context.Context, id int32, userUuid string) error SetArticleView(ctx context.Context, id int32, uuid string) error SetCollectionsArticleCollect(ctx context.Context, id, collectionsId int32, userUuid string) error SetCollectionArticle(ctx context.Context, collectionsId int32, userUuid string) error SetUserArticleCollect(ctx context.Context, id int32, userUuid string) error SetCreationUserCollect(ctx context.Context, userUuid string) error SetArticleCollect(ctx context.Context, id int32, uuid string) error SetArticleAgreeToCache(ctx context.Context, id int32, uuid, userUuid string) error SetArticleViewToCache(ctx context.Context, id int32, uuid string) error SetArticleCollectToCache(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error SetUserArticleAgreeToCache(ctx context.Context, id int32, userUuid string) error SetUserArticleCollectToCache(ctx context.Context, id int32, userUuid string) error SetArticleImageIrregular(ctx context.Context, review *ImageReview) (*ImageReview, error) SetArticleImageIrregularToCache(ctx context.Context, review *ImageReview) error SetArticleContentIrregular(ctx context.Context, review *TextReview) (*TextReview, error) SetArticleContentIrregularToCache(ctx context.Context, review *TextReview) error CancelArticleAgree(ctx context.Context, id int32, uuid string) error CancelUserArticleAgree(ctx context.Context, id int32, userUuid string) error CancelArticleAgreeFromCache(ctx context.Context, id int32, uuid, userUuid string) error CancelCollectionsArticleCollect(ctx context.Context, id int32, userUuid string) error CancelUserArticleCollect(ctx context.Context, id int32, userUuid string) error CancelCollectionArticle(ctx context.Context, collectionsId int32, userUuid string) error ReduceCreationUserCollect(ctx context.Context, userUuid string) error CancelArticleCollect(ctx context.Context, id int32, uuid string) error CancelArticleCollectFromCache(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error CancelUserArticleAgreeFromCache(ctx context.Context, id int32, userUuid string) error CancelUserArticleCollectFromCache(ctx context.Context, id int32, userUuid string) error }
type ArticleReview ¶
func (ArticleReview) MarshalEasyJSON ¶ added in v1.2.0
func (v ArticleReview) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ArticleReview) MarshalJSON ¶ added in v1.2.0
func (v ArticleReview) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ArticleReview) UnmarshalEasyJSON ¶ added in v1.2.0
func (v *ArticleReview) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ArticleReview) UnmarshalJSON ¶ added in v1.2.0
func (v *ArticleReview) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ArticleSearch ¶
type ArticleStatistic ¶
type ArticleStatisticJudge ¶
type ArticleUseCase ¶
type ArticleUseCase struct {
// contains filtered or unexported fields
}
func NewArticleUseCase ¶
func NewArticleUseCase(repo ArticleRepo, re Recovery, creationRepo CreationRepo, tm Transaction, logger log.Logger) *ArticleUseCase
func (*ArticleUseCase) AddArticleComment ¶
func (*ArticleUseCase) AddArticleContentReviewDbAndCache ¶
func (r *ArticleUseCase) AddArticleContentReviewDbAndCache(ctx context.Context, review *TextReview) error
func (*ArticleUseCase) AddArticleImageReviewDbAndCache ¶
func (r *ArticleUseCase) AddArticleImageReviewDbAndCache(ctx context.Context, review *ImageReview) error
func (*ArticleUseCase) ArticleContentIrregular ¶
func (r *ArticleUseCase) ArticleContentIrregular(ctx context.Context, review *TextReview) error
func (*ArticleUseCase) ArticleDraftMark ¶
func (*ArticleUseCase) ArticleImageIrregular ¶
func (r *ArticleUseCase) ArticleImageIrregular(ctx context.Context, review *ImageReview) error
func (*ArticleUseCase) ArticleStatisticJudge ¶
func (r *ArticleUseCase) ArticleStatisticJudge(ctx context.Context, id int32, uuid string) (*ArticleStatisticJudge, error)
func (*ArticleUseCase) CancelArticleAgree ¶
func (*ArticleUseCase) CancelArticleAgreeDbAndCache ¶
func (*ArticleUseCase) CancelArticleCollect ¶
func (*ArticleUseCase) CancelArticleCollectDbAndCache ¶
func (*ArticleUseCase) CreateArticle ¶
func (*ArticleUseCase) CreateArticleDbCacheAndSearch ¶
func (*ArticleUseCase) CreateArticleDraft ¶
func (*ArticleUseCase) DeleteArticle ¶
func (*ArticleUseCase) DeleteArticleCacheAndSearch ¶
func (*ArticleUseCase) DeleteArticleDraft ¶ added in v1.3.0
func (*ArticleUseCase) EditArticle ¶
func (*ArticleUseCase) EditArticleCosAndSearch ¶
func (*ArticleUseCase) GetArticleContentReview ¶
func (r *ArticleUseCase) GetArticleContentReview(ctx context.Context, page int32, uuid string) ([]*TextReview, error)
func (*ArticleUseCase) GetArticleCount ¶
func (*ArticleUseCase) GetArticleCountVisitor ¶
func (*ArticleUseCase) GetArticleDraftList ¶
func (r *ArticleUseCase) GetArticleDraftList(ctx context.Context, uuid string) ([]*ArticleDraft, error)
func (*ArticleUseCase) GetArticleImageReview ¶
func (r *ArticleUseCase) GetArticleImageReview(ctx context.Context, page int32, uuid string) ([]*ImageReview, error)
func (*ArticleUseCase) GetArticleList ¶
func (*ArticleUseCase) GetArticleListHot ¶
func (r *ArticleUseCase) GetArticleListHot(ctx context.Context, page int32) ([]*ArticleStatistic, error)
func (*ArticleUseCase) GetArticleListStatistic ¶
func (r *ArticleUseCase) GetArticleListStatistic(ctx context.Context, ids []int32) ([]*ArticleStatistic, error)
func (*ArticleUseCase) GetArticleSearch ¶
func (r *ArticleUseCase) GetArticleSearch(ctx context.Context, page int32, search, time string) ([]*ArticleSearch, int32, error)
func (*ArticleUseCase) GetArticleStatistic ¶
func (r *ArticleUseCase) GetArticleStatistic(ctx context.Context, id int32, uuid string) (*ArticleStatistic, error)
func (*ArticleUseCase) GetColumnArticleList ¶
func (*ArticleUseCase) GetLastArticleDraft ¶
func (r *ArticleUseCase) GetLastArticleDraft(ctx context.Context, uuid string) (*ArticleDraft, error)
func (*ArticleUseCase) GetUserArticleAgree ¶
func (*ArticleUseCase) GetUserArticleCollect ¶
func (*ArticleUseCase) GetUserArticleList ¶
func (*ArticleUseCase) GetUserArticleListAll ¶
func (*ArticleUseCase) GetUserArticleListVisitor ¶
func (*ArticleUseCase) ReduceArticleComment ¶
func (*ArticleUseCase) SendArticle ¶
func (*ArticleUseCase) SendArticleEdit ¶
func (*ArticleUseCase) SetArticleAgree ¶
func (*ArticleUseCase) SetArticleAgreeDbAndCache ¶
func (*ArticleUseCase) SetArticleCollect ¶
func (*ArticleUseCase) SetArticleCollectDbAndCache ¶
func (*ArticleUseCase) SetArticleView ¶
func (*ArticleUseCase) SetArticleViewDbAndCache ¶
type Collections ¶
type CollectionsDraft ¶
type CollectionsReview ¶
func (CollectionsReview) MarshalEasyJSON ¶ added in v1.2.0
func (v CollectionsReview) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CollectionsReview) MarshalJSON ¶ added in v1.2.0
func (v CollectionsReview) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CollectionsReview) UnmarshalEasyJSON ¶ added in v1.2.0
func (v *CollectionsReview) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CollectionsReview) UnmarshalJSON ¶ added in v1.2.0
func (v *CollectionsReview) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ColumnDraft ¶
type ColumnRepo ¶
type ColumnRepo interface { CreateColumnDraft(ctx context.Context, uuid string) (int32, error) CreateColumnFolder(ctx context.Context, id int32, uuid string) error CreateColumn(ctx context.Context, id, auth int32, uuid string) error CreateColumnStatistic(ctx context.Context, id, auth int32, uuid string) error CreateColumnCache(ctx context.Context, id, auth int32, uuid, mode string) error CreateColumnSearch(ctx context.Context, id int32, uuid string) error AddColumnIncludes(ctx context.Context, id, articleId int32, uuid string) error AddColumnIncludesToCache(ctx context.Context, id, articleId int32, uuid string) error AddCreationUserColumn(ctx context.Context, uuid string, auth int32) error AddUserCreationSubscribe(ctx context.Context, uuid string) error ReduceCreationUserColumn(ctx context.Context, auth int32, uuid string) error UpdateColumnCache(ctx context.Context, id, auth int32, uuid, mode string) error EditColumnCos(ctx context.Context, id int32, uuid string) error EditColumnSearch(ctx context.Context, id int32, uuid string) error DeleteColumnDraft(ctx context.Context, id int32, uuid string) error DeleteColumnStatistic(ctx context.Context, id int32, uuid string) error DeleteColumn(ctx context.Context, id int32, uuid string) error DeleteColumnCache(ctx context.Context, id, auth int32, uuid string) error DeleteColumnSearch(ctx context.Context, id int32, uuid string) error DeleteColumnIncludes(ctx context.Context, id, articleId int32, uuid string) error DeleteColumnIncludesFromCache(ctx context.Context, id, articleId int32, uuid string) error GetColumn(ctx context.Context, id int32) (*Column, error) GetLastColumnDraft(ctx context.Context, uuid string) (*ColumnDraft, error) GetColumnList(ctx context.Context, page int32) ([]*Column, error) GetColumnListHot(ctx context.Context, page int32) ([]*ColumnStatistic, error) GetColumnHotFromDB(ctx context.Context, page int32) ([]*ColumnStatistic, error) GetUserColumnList(ctx context.Context, page int32, uuid string) ([]*Column, error) GetUserColumnListVisitor(ctx context.Context, page int32, uuid string) ([]*Column, error) GetColumnCount(ctx context.Context, uuid string) (int32, error) GetColumnCountVisitor(ctx context.Context, uuid string) (int32, error) GetColumnStatistic(ctx context.Context, id int32, uuid string) (*ColumnStatistic, error) GetColumnListStatistic(ctx context.Context, ids []int32) ([]*ColumnStatistic, error) GetColumnAgreeJudge(ctx context.Context, id int32, uuid string) (bool, error) GetColumnCollectJudge(ctx context.Context, id int32, uuid string) (bool, error) GetSubscribeList(ctx context.Context, page int32, uuid string) ([]*Subscribe, error) GetSubscribeListCount(ctx context.Context, uuid string) (int32, error) GetColumnSubscribes(ctx context.Context, uuid string, ids []int32) ([]*Subscribe, error) GetColumnSearch(ctx context.Context, page int32, search, time string) ([]*ColumnSearch, int32, error) GetColumnAuth(ctx context.Context, id int32) (int32, error) GetCollectionsIdFromColumnCollect(ctx context.Context, id int32) (int32, error) GetUserColumnAgree(ctx context.Context, uuid string) (map[int32]bool, error) GetUserColumnCollect(ctx context.Context, uuid string) (map[int32]bool, error) GetUserSubscribeColumn(ctx context.Context, uuid string) (map[int32]bool, error) GetAuthorFromSubscribe(ctx context.Context, id int32) (string, error) GetColumnImageReview(ctx context.Context, page int32, uuid string) ([]*ImageReview, error) GetColumnContentReview(ctx context.Context, page int32, uuid string) ([]*TextReview, error) SendColumn(ctx context.Context, id int32, uuid string) (*ColumnDraft, error) SendColumnToMq(ctx context.Context, column *Column, mode string) error SendReviewToMq(ctx context.Context, review *ColumnReview) error SendScoreToMq(ctx context.Context, score int32, uuid, mode string) error SendStatisticToMq(ctx context.Context, id, collectionsId int32, uuid, userUuid, mode string) error SendColumnIncludesToMq(ctx context.Context, id, articleId int32, uuid, mode string) error SendColumnSubscribeToMq(ctx context.Context, id int32, uuid, mode string) error SendColumnImageIrregularToMq(ctx context.Context, review *ImageReview) error SendColumnContentIrregularToMq(ctx context.Context, review *TextReview) error FreezeColumnCos(ctx context.Context, id int32, uuid string) error SetColumnAgree(ctx context.Context, id int32, uuid string) error SetUserColumnAgree(ctx context.Context, id int32, userUuid string) error SetColumnAgreeToCache(ctx context.Context, id int32, uuid, userUuid string) error SendColumnStatisticToMq(ctx context.Context, uuid, userUuid, mode string) error SetColumnView(ctx context.Context, id int32, uuid string) error SetColumnViewToCache(ctx context.Context, id int32, uuid string) error SetColumnUserCollect(ctx context.Context, id, collectionsId int32, userUuid string) error SetColumnCollect(ctx context.Context, id int32, uuid string) error SetColumnCollectToCache(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error SetUserColumnAgreeToCache(ctx context.Context, id int32, userUuid string) error SetUserColumnCollectToCache(ctx context.Context, id int32, userUuid string) error SetCollectionsColumnCollect(ctx context.Context, id, collectionsId int32, userUuid string) error SetCollectionColumn(ctx context.Context, collectionsId int32, userUuid string) error SetUserColumnCollect(ctx context.Context, id int32, userUuid string) error SetCreationUserCollect(ctx context.Context, userUuid string) error SetUserColumnSubscribeToCache(ctx context.Context, id int32, uuid string) error SetColumnSubscribeToCache(ctx context.Context, id int32, author, uuid string) error SetColumnImageIrregular(ctx context.Context, review *ImageReview) (*ImageReview, error) SetColumnImageIrregularToCache(ctx context.Context, review *ImageReview) error SetColumnContentIrregular(ctx context.Context, review *TextReview) (*TextReview, error) SetColumnContentIrregularToCache(ctx context.Context, review *TextReview) error CancelColumnAgree(ctx context.Context, id int32, uuid string) error CancelColumnAgreeFromCache(ctx context.Context, id int32, uuid, userUuid string) error CancelColumnCollect(ctx context.Context, id int32, uuid string) error CancelColumnCollectFromCache(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error CancelColumnUserCollect(ctx context.Context, id int32, userUuid string) error CancelSubscribeColumn(ctx context.Context, id int32, uuid string) error CancelUserColumnAgreeFromCache(ctx context.Context, id int32, userUuid string) error CancelUserColumnAgree(ctx context.Context, id int32, userUuid string) error CancelUserColumnCollectFromCache(ctx context.Context, id int32, userUuid string) error CancelCollectionsColumnCollect(ctx context.Context, id int32, userUuid string) error CancelUserColumnCollect(ctx context.Context, id int32, userUuid string) error CancelCollectionColumn(ctx context.Context, collectionsId int32, userUuid string) error CancelUserColumnSubscribeFromCache(ctx context.Context, id int32, uuid string) error CancelColumnSubscribeFromCache(ctx context.Context, id int32, author, uuid string) error ReduceCreationUserCollect(ctx context.Context, userUuid string) error ReduceUserCreationSubscribe(ctx context.Context, uuid string) error SubscribeColumn(ctx context.Context, id int32, author, uuid string) error SubscribeJudge(ctx context.Context, id int32, uuid string) (bool, error) }
type ColumnReview ¶
func (ColumnReview) MarshalEasyJSON ¶ added in v1.2.0
func (v ColumnReview) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ColumnReview) MarshalJSON ¶ added in v1.2.0
func (v ColumnReview) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ColumnReview) UnmarshalEasyJSON ¶ added in v1.2.0
func (v *ColumnReview) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ColumnReview) UnmarshalJSON ¶ added in v1.2.0
func (v *ColumnReview) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ColumnSearch ¶
type ColumnStatistic ¶
type ColumnStatisticJudge ¶
type ColumnUseCase ¶
type ColumnUseCase struct {
// contains filtered or unexported fields
}
func NewColumnUseCase ¶
func NewColumnUseCase(repo ColumnRepo, re Recovery, creationRepo CreationRepo, tm Transaction, logger log.Logger) *ColumnUseCase
func (*ColumnUseCase) AddColumnContentReviewDbAndCache ¶
func (r *ColumnUseCase) AddColumnContentReviewDbAndCache(ctx context.Context, review *TextReview) error
func (*ColumnUseCase) AddColumnImageReviewDbAndCache ¶
func (r *ColumnUseCase) AddColumnImageReviewDbAndCache(ctx context.Context, review *ImageReview) error
func (*ColumnUseCase) AddColumnIncludes ¶
func (*ColumnUseCase) AddColumnIncludesDbAndCache ¶
func (*ColumnUseCase) CancelColumnAgree ¶
func (*ColumnUseCase) CancelColumnAgreeDbAndCache ¶
func (*ColumnUseCase) CancelColumnCollect ¶
func (*ColumnUseCase) CancelColumnCollectDbAndCache ¶
func (*ColumnUseCase) CancelColumnSubscribeDbAndCache ¶
func (*ColumnUseCase) CancelSubscribeColumn ¶
func (*ColumnUseCase) ColumnContentIrregular ¶
func (r *ColumnUseCase) ColumnContentIrregular(ctx context.Context, review *TextReview) error
func (*ColumnUseCase) ColumnImageIrregular ¶
func (r *ColumnUseCase) ColumnImageIrregular(ctx context.Context, review *ImageReview) error
func (*ColumnUseCase) ColumnStatisticJudge ¶
func (r *ColumnUseCase) ColumnStatisticJudge(ctx context.Context, id int32, uuid string) (*ColumnStatisticJudge, error)
func (*ColumnUseCase) CreateColumn ¶
func (*ColumnUseCase) CreateColumnDbCacheAndSearch ¶
func (*ColumnUseCase) CreateColumnDraft ¶
func (*ColumnUseCase) DeleteColumn ¶
func (*ColumnUseCase) DeleteColumnCacheAndSearch ¶
func (*ColumnUseCase) DeleteColumnIncludes ¶
func (*ColumnUseCase) DeleteColumnIncludesDbAndCache ¶
func (*ColumnUseCase) EditColumn ¶
func (*ColumnUseCase) EditColumnCosAndSearch ¶
func (*ColumnUseCase) GetColumnContentReview ¶
func (r *ColumnUseCase) GetColumnContentReview(ctx context.Context, page int32, uuid string) ([]*TextReview, error)
func (*ColumnUseCase) GetColumnCount ¶
func (*ColumnUseCase) GetColumnCountVisitor ¶
func (*ColumnUseCase) GetColumnImageReview ¶
func (r *ColumnUseCase) GetColumnImageReview(ctx context.Context, page int32, uuid string) ([]*ImageReview, error)
func (*ColumnUseCase) GetColumnList ¶
func (*ColumnUseCase) GetColumnListHot ¶
func (r *ColumnUseCase) GetColumnListHot(ctx context.Context, page int32) ([]*ColumnStatistic, error)
func (*ColumnUseCase) GetColumnListStatistic ¶
func (r *ColumnUseCase) GetColumnListStatistic(ctx context.Context, ids []int32) ([]*ColumnStatistic, error)
func (*ColumnUseCase) GetColumnSearch ¶
func (r *ColumnUseCase) GetColumnSearch(ctx context.Context, page int32, search, time string) ([]*ColumnSearch, int32, error)
func (*ColumnUseCase) GetColumnStatistic ¶
func (r *ColumnUseCase) GetColumnStatistic(ctx context.Context, id int32, uuid string) (*ColumnStatistic, error)
func (*ColumnUseCase) GetColumnSubscribes ¶
func (*ColumnUseCase) GetLastColumnDraft ¶
func (r *ColumnUseCase) GetLastColumnDraft(ctx context.Context, uuid string) (*ColumnDraft, error)
func (*ColumnUseCase) GetSubscribeList ¶
func (*ColumnUseCase) GetSubscribeListCount ¶
func (*ColumnUseCase) GetUserColumnAgree ¶
func (*ColumnUseCase) GetUserColumnCollect ¶
func (*ColumnUseCase) GetUserColumnList ¶
func (*ColumnUseCase) GetUserColumnListVisitor ¶
func (*ColumnUseCase) GetUserSubscribeColumn ¶
func (*ColumnUseCase) SendColumn ¶
func (*ColumnUseCase) SendColumnEdit ¶
func (*ColumnUseCase) SetColumnAgree ¶
func (*ColumnUseCase) SetColumnAgreeDbAndCache ¶
func (*ColumnUseCase) SetColumnCollect ¶
func (*ColumnUseCase) SetColumnCollectDbAndCache ¶
func (*ColumnUseCase) SetColumnSubscribeDbAndCache ¶
func (*ColumnUseCase) SetColumnView ¶
func (*ColumnUseCase) SetColumnViewDbAndCache ¶
func (*ColumnUseCase) SubscribeColumn ¶
func (*ColumnUseCase) SubscribeJudge ¶
type CreationRepo ¶
type CreationRepo interface { GetLeaderBoard(ctx context.Context) ([]*LeaderBoard, error) GetLastCollectionsDraft(ctx context.Context, uuid string) (*CollectionsDraft, error) GetCollectionsContentReview(ctx context.Context, page int32, uuid string) ([]*TextReview, error) GetCollectArticleList(ctx context.Context, id, page int32) ([]*Article, error) GetCollectArticleCount(ctx context.Context, id int32) (int32, error) GetCollectTalkList(ctx context.Context, id, page int32) ([]*Talk, error) GetCollectTalkCount(ctx context.Context, id int32) (int32, error) GetCollectColumnList(ctx context.Context, id, page int32) ([]*Column, error) GetCollectColumnCount(ctx context.Context, id int32) (int32, error) GetCollectCount(ctx context.Context, id int32) (int64, error) GetCollections(ctx context.Context, id int32, uuid string) (*Collections, error) GetCollectionListInfo(ctx context.Context, ids []int32) ([]*Collections, error) GetCollectionsList(ctx context.Context, uuid string, page int32) ([]*Collections, error) GetCollectionsListAll(ctx context.Context, uuid string) ([]*Collections, error) GetCollectionsListByVisitor(ctx context.Context, uuid string, page int32) ([]*Collections, error) GetCollectionsCount(ctx context.Context, uuid string) (int32, error) GetCollectionsVisitorCount(ctx context.Context, uuid string) (int32, error) GetCreationUser(ctx context.Context, uuid string) (*CreationUser, error) GetCreationUserVisitor(ctx context.Context, uuid string) (*CreationUser, error) GetUserTimeLineList(ctx context.Context, page int32, uuid string) ([]*TimeLine, error) GetCollectionsAuth(ctx context.Context, id int32) (int32, error) GetUserTimeLine(ctx context.Context, creationId, mode int32) (int32, error) CreateCollectionsDraft(ctx context.Context, uuid string) (int32, error) CreateCollectionsFolder(ctx context.Context, id int32, uuid string) error CreateCollections(ctx context.Context, id, auth int32, uuid string) error CreateCollectionsCache(ctx context.Context, id, auth int32, uuid, mode string) error CreateTimeLine(ctx context.Context, creationsId, auth, mode int32, uuid string) (int32, error) CreateTimeLineCache(ctx context.Context, id, creationId, mode int32, uuid string) error AddCreationUserCollections(ctx context.Context, uuid string, auth int32) error EditCollectionsCos(ctx context.Context, id int32, uuid string) error UpdateCollectionsCache(ctx context.Context, id, auth int32, uuid, mode string) error DeleteCollections(ctx context.Context, id int32, uuid string) error DeleteCollect(ctx context.Context, id int32) error DeleteCollectionsDraft(ctx context.Context, id int32, uuid string) error DeleteCreationCache(ctx context.Context, id, auth int32, uuid string) error DeleteTimeLine(ctx context.Context, id int32) error DeleteTimeLineCache(ctx context.Context, id, creationId, mode int32, uuid string) error ReduceCreationUserCollections(ctx context.Context, auth int32, uuid string) error SetRecord(ctx context.Context, id, mode int32, uuid, operation, ip string) error SetLeaderBoardToCache(ctx context.Context, boardList []*LeaderBoard) SendReviewToMq(ctx context.Context, review *CollectionsReview) error SendCollectionsToMq(ctx context.Context, collections *Collections, mode string) error SendCollections(ctx context.Context, id int32, uuid string) (*CollectionsDraft, error) SendCollectionsContentIrregularToMq(ctx context.Context, review *TextReview) error SetCollectionsContentIrregular(ctx context.Context, review *TextReview) (*TextReview, error) SetCollectionsContentIrregularToCache(ctx context.Context, review *TextReview) error }
type CreationUseCase ¶
type CreationUseCase struct {
// contains filtered or unexported fields
}
func NewCreationUseCase ¶
func NewCreationUseCase(repo CreationRepo, articleRepo ArticleRepo, talkRepo TalkRepo, columnRepo ColumnRepo, tm Transaction, re Recovery, logger log.Logger) *CreationUseCase
func (*CreationUseCase) AddCollectionsContentReviewDbAndCache ¶
func (r *CreationUseCase) AddCollectionsContentReviewDbAndCache(ctx context.Context, review *TextReview) error
func (*CreationUseCase) CollectionsContentIrregular ¶
func (r *CreationUseCase) CollectionsContentIrregular(ctx context.Context, review *TextReview) error
func (*CreationUseCase) CreateCollections ¶
func (*CreationUseCase) CreateCollectionsDbAndCache ¶
func (*CreationUseCase) CreateCollectionsDraft ¶
func (*CreationUseCase) DeleteCollections ¶
func (*CreationUseCase) DeleteCollectionsCache ¶
func (*CreationUseCase) EditCollections ¶
func (*CreationUseCase) EditCollectionsCos ¶
func (*CreationUseCase) GetCollectArticleCount ¶
func (*CreationUseCase) GetCollectArticleList ¶
func (*CreationUseCase) GetCollectColumnCount ¶
func (*CreationUseCase) GetCollectColumnList ¶
func (*CreationUseCase) GetCollectTalkCount ¶
func (*CreationUseCase) GetCollectTalkList ¶
func (*CreationUseCase) GetCollectionListInfo ¶
func (r *CreationUseCase) GetCollectionListInfo(ctx context.Context, ids []int32) ([]*Collections, error)
func (*CreationUseCase) GetCollections ¶
func (r *CreationUseCase) GetCollections(ctx context.Context, id int32, uuid string) (*Collections, error)
func (*CreationUseCase) GetCollectionsContentReview ¶
func (r *CreationUseCase) GetCollectionsContentReview(ctx context.Context, page int32, uuid string) ([]*TextReview, error)
func (*CreationUseCase) GetCollectionsCount ¶
func (*CreationUseCase) GetCollectionsList ¶
func (r *CreationUseCase) GetCollectionsList(ctx context.Context, uuid string, page int32) ([]*Collections, error)
func (*CreationUseCase) GetCollectionsListAll ¶
func (r *CreationUseCase) GetCollectionsListAll(ctx context.Context, uuid string) ([]*Collections, error)
func (*CreationUseCase) GetCollectionsListByVisitor ¶
func (r *CreationUseCase) GetCollectionsListByVisitor(ctx context.Context, uuid string, page int32) ([]*Collections, error)
func (*CreationUseCase) GetCollectionsVisitorCount ¶
func (*CreationUseCase) GetCreationUser ¶
func (r *CreationUseCase) GetCreationUser(ctx context.Context, uuid string) (*CreationUser, error)
func (*CreationUseCase) GetCreationUserVisitor ¶
func (r *CreationUseCase) GetCreationUserVisitor(ctx context.Context, uuid string) (*CreationUser, error)
func (*CreationUseCase) GetLastCollectionsDraft ¶
func (r *CreationUseCase) GetLastCollectionsDraft(ctx context.Context, uuid string) (*CollectionsDraft, error)
func (*CreationUseCase) GetLeaderBoard ¶
func (r *CreationUseCase) GetLeaderBoard(ctx context.Context) ([]*LeaderBoard, error)
func (*CreationUseCase) GetUserTimeLineList ¶
func (*CreationUseCase) SendCollections ¶
func (*CreationUseCase) SendCollectionsEdit ¶
type CreationUser ¶
type ImageReview ¶
type ImageReview struct { Id int32 CreationId int32 Kind string Uid string CreateAt string Uuid string JobId string Url string Label string Result int32 Category string SubLabel string Mode string Score int32 }
func (ImageReview) MarshalEasyJSON ¶ added in v1.2.0
func (v ImageReview) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ImageReview) MarshalJSON ¶ added in v1.2.0
func (v ImageReview) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ImageReview) UnmarshalEasyJSON ¶ added in v1.2.0
func (v *ImageReview) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ImageReview) UnmarshalJSON ¶ added in v1.2.0
func (v *ImageReview) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type NewsUseCase ¶
type NewsUseCase struct {
// contains filtered or unexported fields
}
func NewNewsUseCase ¶
func NewNewsUseCase(repo NewsRepo, tm Transaction, logger log.Logger) *NewsUseCase
type SendArticleMap ¶ added in v1.2.0
func (SendArticleMap) MarshalEasyJSON ¶ added in v1.2.0
func (v SendArticleMap) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SendArticleMap) MarshalJSON ¶ added in v1.2.0
func (v SendArticleMap) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SendArticleMap) UnmarshalEasyJSON ¶ added in v1.2.0
func (v *SendArticleMap) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SendArticleMap) UnmarshalJSON ¶ added in v1.2.0
func (v *SendArticleMap) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SendArticleStatisticMap ¶ added in v1.2.0
func (SendArticleStatisticMap) MarshalEasyJSON ¶ added in v1.2.0
func (v SendArticleStatisticMap) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SendArticleStatisticMap) MarshalJSON ¶ added in v1.2.0
func (v SendArticleStatisticMap) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SendArticleStatisticMap) UnmarshalEasyJSON ¶ added in v1.2.0
func (v *SendArticleStatisticMap) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SendArticleStatisticMap) UnmarshalJSON ¶ added in v1.2.0
func (v *SendArticleStatisticMap) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SendCollectionMap ¶ added in v1.2.0
func (SendCollectionMap) MarshalEasyJSON ¶ added in v1.2.0
func (v SendCollectionMap) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SendCollectionMap) MarshalJSON ¶ added in v1.2.0
func (v SendCollectionMap) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SendCollectionMap) UnmarshalEasyJSON ¶ added in v1.2.0
func (v *SendCollectionMap) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SendCollectionMap) UnmarshalJSON ¶ added in v1.2.0
func (v *SendCollectionMap) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SendColumnIncludesMap ¶ added in v1.2.0
func (SendColumnIncludesMap) MarshalEasyJSON ¶ added in v1.2.0
func (v SendColumnIncludesMap) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SendColumnIncludesMap) MarshalJSON ¶ added in v1.2.0
func (v SendColumnIncludesMap) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SendColumnIncludesMap) UnmarshalEasyJSON ¶ added in v1.2.0
func (v *SendColumnIncludesMap) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SendColumnIncludesMap) UnmarshalJSON ¶ added in v1.2.0
func (v *SendColumnIncludesMap) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SendColumnMap ¶ added in v1.2.0
func (SendColumnMap) MarshalEasyJSON ¶ added in v1.2.0
func (v SendColumnMap) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SendColumnMap) MarshalJSON ¶ added in v1.2.0
func (v SendColumnMap) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SendColumnMap) UnmarshalEasyJSON ¶ added in v1.2.0
func (v *SendColumnMap) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SendColumnMap) UnmarshalJSON ¶ added in v1.2.0
func (v *SendColumnMap) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SendColumnStatisticMap ¶ added in v1.2.0
func (SendColumnStatisticMap) MarshalEasyJSON ¶ added in v1.2.0
func (v SendColumnStatisticMap) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SendColumnStatisticMap) MarshalJSON ¶ added in v1.2.0
func (v SendColumnStatisticMap) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SendColumnStatisticMap) UnmarshalEasyJSON ¶ added in v1.2.0
func (v *SendColumnStatisticMap) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SendColumnStatisticMap) UnmarshalJSON ¶ added in v1.2.0
func (v *SendColumnStatisticMap) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SendColumnSubscribeMap ¶ added in v1.2.0
func (SendColumnSubscribeMap) MarshalEasyJSON ¶ added in v1.2.0
func (v SendColumnSubscribeMap) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SendColumnSubscribeMap) MarshalJSON ¶ added in v1.2.0
func (v SendColumnSubscribeMap) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SendColumnSubscribeMap) UnmarshalEasyJSON ¶ added in v1.2.0
func (v *SendColumnSubscribeMap) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SendColumnSubscribeMap) UnmarshalJSON ¶ added in v1.2.0
func (v *SendColumnSubscribeMap) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SendScoreMap ¶ added in v1.2.0
func (SendScoreMap) MarshalEasyJSON ¶ added in v1.2.0
func (v SendScoreMap) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SendScoreMap) MarshalJSON ¶ added in v1.2.0
func (v SendScoreMap) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SendScoreMap) UnmarshalEasyJSON ¶ added in v1.2.0
func (v *SendScoreMap) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SendScoreMap) UnmarshalJSON ¶ added in v1.2.0
func (v *SendScoreMap) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SendStatisticMap ¶ added in v1.2.0
type SendStatisticMap struct { Id int32 CollectionsId int32 Uuid string UserUuid string Mode string }
func (SendStatisticMap) MarshalEasyJSON ¶ added in v1.2.0
func (v SendStatisticMap) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SendStatisticMap) MarshalJSON ¶ added in v1.2.0
func (v SendStatisticMap) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SendStatisticMap) UnmarshalEasyJSON ¶ added in v1.2.0
func (v *SendStatisticMap) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SendStatisticMap) UnmarshalJSON ¶ added in v1.2.0
func (v *SendStatisticMap) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SendTalkMap ¶ added in v1.2.0
func (SendTalkMap) MarshalEasyJSON ¶ added in v1.2.0
func (v SendTalkMap) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SendTalkMap) MarshalJSON ¶ added in v1.2.0
func (v SendTalkMap) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SendTalkMap) UnmarshalEasyJSON ¶ added in v1.2.0
func (v *SendTalkMap) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SendTalkMap) UnmarshalJSON ¶ added in v1.2.0
func (v *SendTalkMap) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SendTalkStatisticMap ¶ added in v1.2.0
func (SendTalkStatisticMap) MarshalEasyJSON ¶ added in v1.2.0
func (v SendTalkStatisticMap) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SendTalkStatisticMap) MarshalJSON ¶ added in v1.2.0
func (v SendTalkStatisticMap) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SendTalkStatisticMap) UnmarshalEasyJSON ¶ added in v1.2.0
func (v *SendTalkStatisticMap) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SendTalkStatisticMap) UnmarshalJSON ¶ added in v1.2.0
func (v *SendTalkStatisticMap) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type TalkRepo ¶
type TalkRepo interface { GetTalk(ctx context.Context, id int32) (*Talk, error) GetTalkList(ctx context.Context, page int32) ([]*Talk, error) GetTalkListHot(ctx context.Context, page int32) ([]*TalkStatistic, error) GetTalkHotFromDB(ctx context.Context, page int32) ([]*TalkStatistic, error) GetUserTalkList(ctx context.Context, page int32, uuid string) ([]*Talk, error) GetUserTalkListVisitor(ctx context.Context, page int32, uuid string) ([]*Talk, error) GetTalkCount(ctx context.Context, uuid string) (int32, error) GetTalkCountVisitor(ctx context.Context, uuid string) (int32, error) GetTalkListStatistic(ctx context.Context, ids []int32) ([]*TalkStatistic, error) GetTalkStatistic(ctx context.Context, id int32, uuid string) (*TalkStatistic, error) GetLastTalkDraft(ctx context.Context, uuid string) (*TalkDraft, error) GetTalkAgreeJudge(ctx context.Context, id int32, uuid string) (bool, error) GetTalkCollectJudge(ctx context.Context, id int32, uuid string) (bool, error) GetTalkSearch(ctx context.Context, page int32, search, time string) ([]*TalkSearch, int32, error) GetUserTalkAgree(ctx context.Context, uuid string) (map[int32]bool, error) GetUserTalkCollect(ctx context.Context, uuid string) (map[int32]bool, error) GetTalkAuth(ctx context.Context, id int32) (int32, error) GetCollectionsIdFromTalkCollect(ctx context.Context, id int32) (int32, error) GetTalkImageReview(ctx context.Context, page int32, uuid string) ([]*ImageReview, error) GetTalkContentReview(ctx context.Context, page int32, uuid string) ([]*TextReview, error) CreateTalkDraft(ctx context.Context, uuid string) (int32, error) CreateTalkFolder(ctx context.Context, id int32, uuid string) error CreateTalk(ctx context.Context, id, auth int32, uuid string) error CreateTalkStatistic(ctx context.Context, id, auth int32, uuid string) error CreateTalkCache(ctx context.Context, id, auth int32, uuid, mode string) error CreateTalkSearch(ctx context.Context, id int32, uuid string) error AddCreationUserTalk(ctx context.Context, uuid string, auth int32) error AddTalkComment(ctx context.Context, id int32) error AddTalkCommentToCache(ctx context.Context, id int32, uuid string) error ReduceTalkComment(ctx context.Context, id int32) error ReduceTalkCommentToCache(ctx context.Context, id int32, uuid string) error ReduceCreationUserTalk(ctx context.Context, auth int32, uuid string) error SetTalkAgree(ctx context.Context, id int32, uuid string) error SetUserTalkAgree(ctx context.Context, id int32, userUuid string) error SetTalkView(ctx context.Context, id int32, uuid string) error SetTalkViewToCache(ctx context.Context, id int32, uuid string) error SetTalkAgreeToCache(ctx context.Context, id int32, uuid, userUuid string) error SetTalkCollect(ctx context.Context, id int32, uuid string) error SetTalkUserCollect(ctx context.Context, id, collectionsId int32, userUuid string) error SetTalkCollectToCache(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error SetUserTalkAgreeToCache(ctx context.Context, id int32, userUuid string) error SetUserTalkCollectToCache(ctx context.Context, id int32, userUuid string) error SetCollectionsTalkCollect(ctx context.Context, id, collectionsId int32, userUuid string) error SetCollectionTalk(ctx context.Context, collectionsId int32, userUuid string) error SetUserTalkCollect(ctx context.Context, id int32, userUuid string) error SetCreationUserCollect(ctx context.Context, userUuid string) error SetTalkImageIrregular(ctx context.Context, review *ImageReview) (*ImageReview, error) SetTalkImageIrregularToCache(ctx context.Context, review *ImageReview) error SetTalkContentIrregular(ctx context.Context, review *TextReview) (*TextReview, error) SetTalkContentIrregularToCache(ctx context.Context, review *TextReview) error CancelTalkAgree(ctx context.Context, id int32, uuid string) error CancelUserTalkAgree(ctx context.Context, id int32, userUuid string) error CancelTalkAgreeFromCache(ctx context.Context, id int32, uuid, userUuid string) error CancelTalkUserCollect(ctx context.Context, id int32, userUuid string) error CancelTalkCollect(ctx context.Context, id int32, uuid string) error CancelTalkCollectFromCache(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error CancelUserTalkAgreeFromCache(ctx context.Context, id int32, userUuid string) error CancelUserTalkCollectFromCache(ctx context.Context, id int32, userUuid string) error CancelCollectionsTalkCollect(ctx context.Context, id int32, userUuid string) error CancelUserTalkCollect(ctx context.Context, id int32, userUuid string) error CancelCollectionTalk(ctx context.Context, collectionsId int32, userUuid string) error ReduceCreationUserCollect(ctx context.Context, userUuid string) error SendTalk(ctx context.Context, id int32, uuid string) (*TalkDraft, error) SendReviewToMq(ctx context.Context, review *TalkReview) error SendTalkToMq(ctx context.Context, talk *Talk, mode string) error SendTalkStatisticToMq(ctx context.Context, uuid, userUuid, mode string) error SendScoreToMq(ctx context.Context, score int32, uuid, mode string) error SendStatisticToMq(ctx context.Context, id, collectionsId int32, uuid, userUuid, mode string) error SendTalkImageIrregularToMq(ctx context.Context, review *ImageReview) error SendTalkContentIrregularToMq(ctx context.Context, review *TextReview) error DeleteTalk(ctx context.Context, id int32, uuid string) error DeleteTalkDraft(ctx context.Context, id int32, uuid string) error DeleteTalkStatistic(ctx context.Context, id int32, uuid string) error DeleteTalkCache(ctx context.Context, id, auth int32, uuid string) error DeleteTalkSearch(ctx context.Context, id int32, uuid string) error FreezeTalkCos(ctx context.Context, id int32, uuid string) error UpdateTalkCache(ctx context.Context, id, auth int32, uuid, mode string) error EditTalkCos(ctx context.Context, id int32, uuid string) error EditTalkSearch(ctx context.Context, id int32, uuid string) error }
type TalkReview ¶
func (TalkReview) MarshalEasyJSON ¶ added in v1.2.0
func (v TalkReview) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (TalkReview) MarshalJSON ¶ added in v1.2.0
func (v TalkReview) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*TalkReview) UnmarshalEasyJSON ¶ added in v1.2.0
func (v *TalkReview) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*TalkReview) UnmarshalJSON ¶ added in v1.2.0
func (v *TalkReview) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type TalkSearch ¶
type TalkStatistic ¶
type TalkStatisticJudge ¶
type TalkUseCase ¶
type TalkUseCase struct {
// contains filtered or unexported fields
}
func NewTalkUseCase ¶
func NewTalkUseCase(repo TalkRepo, re Recovery, creationRepo CreationRepo, tm Transaction, logger log.Logger) *TalkUseCase
func (*TalkUseCase) AddTalkComment ¶
func (*TalkUseCase) AddTalkContentReviewDbAndCache ¶
func (r *TalkUseCase) AddTalkContentReviewDbAndCache(ctx context.Context, review *TextReview) error
func (*TalkUseCase) AddTalkImageReviewDbAndCache ¶
func (r *TalkUseCase) AddTalkImageReviewDbAndCache(ctx context.Context, review *ImageReview) error
func (*TalkUseCase) CancelTalkAgree ¶
func (*TalkUseCase) CancelTalkAgreeDbAndCache ¶
func (*TalkUseCase) CancelTalkCollect ¶
func (*TalkUseCase) CancelTalkCollectDbAndCache ¶
func (*TalkUseCase) CreateTalk ¶
func (*TalkUseCase) CreateTalkDbCacheAndSearch ¶
func (*TalkUseCase) CreateTalkDraft ¶
func (*TalkUseCase) DeleteTalk ¶
func (*TalkUseCase) DeleteTalkCacheAndSearch ¶
func (*TalkUseCase) EditTalkCosAndSearch ¶
func (*TalkUseCase) GetLastTalkDraft ¶
func (*TalkUseCase) GetTalkContentReview ¶
func (r *TalkUseCase) GetTalkContentReview(ctx context.Context, page int32, uuid string) ([]*TextReview, error)
func (*TalkUseCase) GetTalkCount ¶
func (*TalkUseCase) GetTalkCountVisitor ¶
func (*TalkUseCase) GetTalkImageReview ¶
func (r *TalkUseCase) GetTalkImageReview(ctx context.Context, page int32, uuid string) ([]*ImageReview, error)
func (*TalkUseCase) GetTalkList ¶
func (*TalkUseCase) GetTalkListHot ¶
func (r *TalkUseCase) GetTalkListHot(ctx context.Context, page int32) ([]*TalkStatistic, error)
func (*TalkUseCase) GetTalkListStatistic ¶
func (r *TalkUseCase) GetTalkListStatistic(ctx context.Context, ids []int32) ([]*TalkStatistic, error)
func (*TalkUseCase) GetTalkSearch ¶
func (r *TalkUseCase) GetTalkSearch(ctx context.Context, page int32, search, time string) ([]*TalkSearch, int32, error)
func (*TalkUseCase) GetTalkStatistic ¶
func (r *TalkUseCase) GetTalkStatistic(ctx context.Context, id int32, uuid string) (*TalkStatistic, error)
func (*TalkUseCase) GetUserTalkAgree ¶
func (*TalkUseCase) GetUserTalkCollect ¶
func (*TalkUseCase) GetUserTalkList ¶
func (*TalkUseCase) GetUserTalkListVisitor ¶
func (*TalkUseCase) ReduceTalkComment ¶
func (*TalkUseCase) SendTalkEdit ¶
func (*TalkUseCase) SetTalkAgree ¶
func (*TalkUseCase) SetTalkAgreeDbAndCache ¶
func (*TalkUseCase) SetTalkCollect ¶
func (*TalkUseCase) SetTalkCollectDbAndCache ¶
func (*TalkUseCase) SetTalkView ¶
func (*TalkUseCase) SetTalkViewDbAndCache ¶
func (*TalkUseCase) TalkContentIrregular ¶
func (r *TalkUseCase) TalkContentIrregular(ctx context.Context, review *TextReview) error
func (*TalkUseCase) TalkImageIrregular ¶
func (r *TalkUseCase) TalkImageIrregular(ctx context.Context, review *ImageReview) error
func (*TalkUseCase) TalkStatisticJudge ¶
func (r *TalkUseCase) TalkStatisticJudge(ctx context.Context, id int32, uuid string) (*TalkStatisticJudge, error)
type TextReview ¶
type TextReview struct { Id int32 CreationId int32 CreateAt string Title string Kind string JobId string Label string Result int32 Uuid string Mode string Section string }
func (TextReview) MarshalEasyJSON ¶ added in v1.2.0
func (v TextReview) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (TextReview) MarshalJSON ¶ added in v1.2.0
func (v TextReview) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*TextReview) UnmarshalEasyJSON ¶ added in v1.2.0
func (v *TextReview) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*TextReview) UnmarshalJSON ¶ added in v1.2.0
func (v *TextReview) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface