biz

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Article

type Article struct {
	ArticleId int32
	Uuid      string
	Status    int32
	Auth      int32
}

type ArticleDraft

type ArticleDraft struct {
	Id     int32
	Status int32
	Uuid   string
}

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

type ArticleReview struct {
	Uuid string
	Id   int32
	Mode string
}

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 ArticleSearch struct {
	Id     int32
	Total  int32
	Title  string
	Tags   string
	Uuid   string
	Text   string
	Cover  string
	Update string
}

type ArticleStatistic

type ArticleStatistic struct {
	ArticleId int32
	Uuid      string
	Agree     int32
	View      int32
	Collect   int32
	Comment   int32
	Auth      int32
}

type ArticleStatisticJudge

type ArticleStatisticJudge struct {
	Agree   bool
	Collect bool
}

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 (r *ArticleUseCase) AddArticleComment(ctx context.Context, id int32, uuid string) error

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 (r *ArticleUseCase) ArticleDraftMark(ctx context.Context, id int32, uuid string) error

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 (r *ArticleUseCase) CancelArticleAgree(ctx context.Context, id int32, uuid, userUuid string) error

func (*ArticleUseCase) CancelArticleAgreeDbAndCache

func (r *ArticleUseCase) CancelArticleAgreeDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error

func (*ArticleUseCase) CancelArticleCollect

func (r *ArticleUseCase) CancelArticleCollect(ctx context.Context, id int32, uuid, userUuid string) error

func (*ArticleUseCase) CancelArticleCollectDbAndCache

func (r *ArticleUseCase) CancelArticleCollectDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error

func (*ArticleUseCase) CreateArticle

func (r *ArticleUseCase) CreateArticle(ctx context.Context, id, auth int32, uuid string) error

func (*ArticleUseCase) CreateArticleDbCacheAndSearch

func (r *ArticleUseCase) CreateArticleDbCacheAndSearch(ctx context.Context, id, auth int32, uuid string) error

func (*ArticleUseCase) CreateArticleDraft

func (r *ArticleUseCase) CreateArticleDraft(ctx context.Context, uuid string) (int32, error)

func (*ArticleUseCase) DeleteArticle

func (r *ArticleUseCase) DeleteArticle(ctx context.Context, id int32, uuid string) error

func (*ArticleUseCase) DeleteArticleCacheAndSearch

func (r *ArticleUseCase) DeleteArticleCacheAndSearch(ctx context.Context, id int32, uuid string) error

func (*ArticleUseCase) DeleteArticleDraft added in v1.3.0

func (r *ArticleUseCase) DeleteArticleDraft(ctx context.Context, id int32, uuid string) error

func (*ArticleUseCase) EditArticle

func (r *ArticleUseCase) EditArticle(ctx context.Context, id, auth int32, uuid string) error

func (*ArticleUseCase) EditArticleCosAndSearch

func (r *ArticleUseCase) EditArticleCosAndSearch(ctx context.Context, id, auth int32, uuid string) error

func (*ArticleUseCase) GetArticleContentReview

func (r *ArticleUseCase) GetArticleContentReview(ctx context.Context, page int32, uuid string) ([]*TextReview, error)

func (*ArticleUseCase) GetArticleCount

func (r *ArticleUseCase) GetArticleCount(ctx context.Context, uuid string) (int32, error)

func (*ArticleUseCase) GetArticleCountVisitor

func (r *ArticleUseCase) GetArticleCountVisitor(ctx context.Context, uuid string) (int32, error)

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 (r *ArticleUseCase) GetArticleList(ctx context.Context, page int32) ([]*Article, error)

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 (r *ArticleUseCase) GetColumnArticleList(ctx context.Context, id int32) ([]*Article, error)

func (*ArticleUseCase) GetLastArticleDraft

func (r *ArticleUseCase) GetLastArticleDraft(ctx context.Context, uuid string) (*ArticleDraft, error)

func (*ArticleUseCase) GetUserArticleAgree

func (r *ArticleUseCase) GetUserArticleAgree(ctx context.Context, uuid string) (map[int32]bool, error)

func (*ArticleUseCase) GetUserArticleCollect

func (r *ArticleUseCase) GetUserArticleCollect(ctx context.Context, uuid string) (map[int32]bool, error)

func (*ArticleUseCase) GetUserArticleList

func (r *ArticleUseCase) GetUserArticleList(ctx context.Context, page int32, uuid string) ([]*Article, error)

func (*ArticleUseCase) GetUserArticleListAll

func (r *ArticleUseCase) GetUserArticleListAll(ctx context.Context, uuid string) ([]*Article, error)

func (*ArticleUseCase) GetUserArticleListVisitor

func (r *ArticleUseCase) GetUserArticleListVisitor(ctx context.Context, page int32, uuid string) ([]*Article, error)

func (*ArticleUseCase) ReduceArticleComment

func (r *ArticleUseCase) ReduceArticleComment(ctx context.Context, id int32, uuid string) error

func (*ArticleUseCase) SendArticle

func (r *ArticleUseCase) SendArticle(ctx context.Context, id int32, uuid, ip string) error

func (*ArticleUseCase) SendArticleEdit

func (r *ArticleUseCase) SendArticleEdit(ctx context.Context, id int32, uuid, ip string) error

func (*ArticleUseCase) SetArticleAgree

func (r *ArticleUseCase) SetArticleAgree(ctx context.Context, id int32, uuid, userUuid string) error

func (*ArticleUseCase) SetArticleAgreeDbAndCache

func (r *ArticleUseCase) SetArticleAgreeDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error

func (*ArticleUseCase) SetArticleCollect

func (r *ArticleUseCase) SetArticleCollect(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error

func (*ArticleUseCase) SetArticleCollectDbAndCache

func (r *ArticleUseCase) SetArticleCollectDbAndCache(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error

func (*ArticleUseCase) SetArticleView

func (r *ArticleUseCase) SetArticleView(ctx context.Context, id int32, uuid string) error

func (*ArticleUseCase) SetArticleViewDbAndCache

func (r *ArticleUseCase) SetArticleViewDbAndCache(ctx context.Context, id int32, uuid string) error

type Collections

type Collections struct {
	CollectionsId int32
	Uuid          string
	Article       int32
	Column        int32
	Talk          int32
	Auth          int32
}

type CollectionsDraft

type CollectionsDraft struct {
	Id     int32
	Status int32
	Uuid   string
}

type CollectionsReview

type CollectionsReview struct {
	Uuid string
	Id   int32
	Mode string
}

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 Column

type Column struct {
	ColumnId int32
	Uuid     string
	Auth     int32
}

type ColumnDraft

type ColumnDraft struct {
	Id     int32
	Status int32
	Uuid   string
}

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

type ColumnReview struct {
	Uuid string
	Id   int32
	Mode string
}

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 ColumnSearch struct {
	Id        int32
	Total     int32
	Name      string
	Tags      string
	Uuid      string
	Introduce string
	Cover     string
	Update    string
}

type ColumnStatistic

type ColumnStatistic struct {
	ColumnId int32
	Uuid     string
	Agree    int32
	View     int32
	Collect  int32
	Auth     int32
}

type ColumnStatisticJudge

type ColumnStatisticJudge struct {
	Agree   bool
	Collect bool
}

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 (r *ColumnUseCase) AddColumnIncludes(ctx context.Context, id, articleId int32, uuid string) error

func (*ColumnUseCase) AddColumnIncludesDbAndCache

func (r *ColumnUseCase) AddColumnIncludesDbAndCache(ctx context.Context, id, articleId int32, uuid string) error

func (*ColumnUseCase) CancelColumnAgree

func (r *ColumnUseCase) CancelColumnAgree(ctx context.Context, id int32, uuid, userUuid string) error

func (*ColumnUseCase) CancelColumnAgreeDbAndCache

func (r *ColumnUseCase) CancelColumnAgreeDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error

func (*ColumnUseCase) CancelColumnCollect

func (r *ColumnUseCase) CancelColumnCollect(ctx context.Context, id int32, uuid, userUuid string) error

func (*ColumnUseCase) CancelColumnCollectDbAndCache

func (r *ColumnUseCase) CancelColumnCollectDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error

func (*ColumnUseCase) CancelColumnSubscribeDbAndCache

func (r *ColumnUseCase) CancelColumnSubscribeDbAndCache(ctx context.Context, id int32, uuid string) error

func (*ColumnUseCase) CancelSubscribeColumn

func (r *ColumnUseCase) CancelSubscribeColumn(ctx context.Context, id int32, uuid string) error

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 (r *ColumnUseCase) CreateColumn(ctx context.Context, id, auth int32, uuid string) error

func (*ColumnUseCase) CreateColumnDbCacheAndSearch

func (r *ColumnUseCase) CreateColumnDbCacheAndSearch(ctx context.Context, id, auth int32, uuid string) error

func (*ColumnUseCase) CreateColumnDraft

func (r *ColumnUseCase) CreateColumnDraft(ctx context.Context, uuid string) (int32, error)

func (*ColumnUseCase) DeleteColumn

func (r *ColumnUseCase) DeleteColumn(ctx context.Context, id int32, uuid string) error

func (*ColumnUseCase) DeleteColumnCacheAndSearch

func (r *ColumnUseCase) DeleteColumnCacheAndSearch(ctx context.Context, id int32, uuid string) error

func (*ColumnUseCase) DeleteColumnIncludes

func (r *ColumnUseCase) DeleteColumnIncludes(ctx context.Context, id, articleId int32, uuid string) error

func (*ColumnUseCase) DeleteColumnIncludesDbAndCache

func (r *ColumnUseCase) DeleteColumnIncludesDbAndCache(ctx context.Context, id, articleId int32, uuid string) error

func (*ColumnUseCase) EditColumn

func (r *ColumnUseCase) EditColumn(ctx context.Context, id, auth int32, uuid string) error

func (*ColumnUseCase) EditColumnCosAndSearch

func (r *ColumnUseCase) EditColumnCosAndSearch(ctx context.Context, id, auth int32, uuid string) error

func (*ColumnUseCase) GetColumnContentReview

func (r *ColumnUseCase) GetColumnContentReview(ctx context.Context, page int32, uuid string) ([]*TextReview, error)

func (*ColumnUseCase) GetColumnCount

func (r *ColumnUseCase) GetColumnCount(ctx context.Context, uuid string) (int32, error)

func (*ColumnUseCase) GetColumnCountVisitor

func (r *ColumnUseCase) GetColumnCountVisitor(ctx context.Context, uuid string) (int32, error)

func (*ColumnUseCase) GetColumnImageReview

func (r *ColumnUseCase) GetColumnImageReview(ctx context.Context, page int32, uuid string) ([]*ImageReview, error)

func (*ColumnUseCase) GetColumnList

func (r *ColumnUseCase) GetColumnList(ctx context.Context, page int32) ([]*Column, error)

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 (r *ColumnUseCase) GetColumnSubscribes(ctx context.Context, uuid string, ids []int32) ([]*Subscribe, error)

func (*ColumnUseCase) GetLastColumnDraft

func (r *ColumnUseCase) GetLastColumnDraft(ctx context.Context, uuid string) (*ColumnDraft, error)

func (*ColumnUseCase) GetSubscribeList

func (r *ColumnUseCase) GetSubscribeList(ctx context.Context, page int32, uuid string) ([]*Subscribe, error)

func (*ColumnUseCase) GetSubscribeListCount

func (r *ColumnUseCase) GetSubscribeListCount(ctx context.Context, uuid string) (int32, error)

func (*ColumnUseCase) GetUserColumnAgree

func (r *ColumnUseCase) GetUserColumnAgree(ctx context.Context, uuid string) (map[int32]bool, error)

func (*ColumnUseCase) GetUserColumnCollect

func (r *ColumnUseCase) GetUserColumnCollect(ctx context.Context, uuid string) (map[int32]bool, error)

func (*ColumnUseCase) GetUserColumnList

func (r *ColumnUseCase) GetUserColumnList(ctx context.Context, page int32, uuid string) ([]*Column, error)

func (*ColumnUseCase) GetUserColumnListVisitor

func (r *ColumnUseCase) GetUserColumnListVisitor(ctx context.Context, page int32, uuid string) ([]*Column, error)

func (*ColumnUseCase) GetUserSubscribeColumn

func (r *ColumnUseCase) GetUserSubscribeColumn(ctx context.Context, uuid string) (map[int32]bool, error)

func (*ColumnUseCase) SendColumn

func (r *ColumnUseCase) SendColumn(ctx context.Context, id int32, uuid, ip string) error

func (*ColumnUseCase) SendColumnEdit

func (r *ColumnUseCase) SendColumnEdit(ctx context.Context, id int32, uuid, ip string) error

func (*ColumnUseCase) SetColumnAgree

func (r *ColumnUseCase) SetColumnAgree(ctx context.Context, id int32, uuid, userUuid string) error

func (*ColumnUseCase) SetColumnAgreeDbAndCache

func (r *ColumnUseCase) SetColumnAgreeDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error

func (*ColumnUseCase) SetColumnCollect

func (r *ColumnUseCase) SetColumnCollect(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error

func (*ColumnUseCase) SetColumnCollectDbAndCache

func (r *ColumnUseCase) SetColumnCollectDbAndCache(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error

func (*ColumnUseCase) SetColumnSubscribeDbAndCache

func (r *ColumnUseCase) SetColumnSubscribeDbAndCache(ctx context.Context, id int32, uuid string) error

func (*ColumnUseCase) SetColumnView

func (r *ColumnUseCase) SetColumnView(ctx context.Context, id int32, uuid string) error

func (*ColumnUseCase) SetColumnViewDbAndCache

func (r *ColumnUseCase) SetColumnViewDbAndCache(ctx context.Context, id int32, uuid string) error

func (*ColumnUseCase) SubscribeColumn

func (r *ColumnUseCase) SubscribeColumn(ctx context.Context, id int32, uuid string) error

func (*ColumnUseCase) SubscribeJudge

func (r *ColumnUseCase) SubscribeJudge(ctx context.Context, id int32, uuid string) (bool, error)

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 (r *CreationUseCase) CreateCollections(ctx context.Context, id, auth int32, uuid string) error

func (*CreationUseCase) CreateCollectionsDbAndCache

func (r *CreationUseCase) CreateCollectionsDbAndCache(ctx context.Context, id, auth int32, uuid string) error

func (*CreationUseCase) CreateCollectionsDraft

func (r *CreationUseCase) CreateCollectionsDraft(ctx context.Context, uuid string) (int32, error)

func (*CreationUseCase) DeleteCollections

func (r *CreationUseCase) DeleteCollections(ctx context.Context, id int32, uuid string) error

func (*CreationUseCase) DeleteCollectionsCache

func (r *CreationUseCase) DeleteCollectionsCache(ctx context.Context, id int32, uuid string) error

func (*CreationUseCase) EditCollections

func (r *CreationUseCase) EditCollections(ctx context.Context, id, auth int32, uuid string) error

func (*CreationUseCase) EditCollectionsCos

func (r *CreationUseCase) EditCollectionsCos(ctx context.Context, id, auth int32, uuid string) error

func (*CreationUseCase) GetCollectArticleCount

func (r *CreationUseCase) GetCollectArticleCount(ctx context.Context, id int32) (int32, error)

func (*CreationUseCase) GetCollectArticleList

func (r *CreationUseCase) GetCollectArticleList(ctx context.Context, id, page int32) ([]*Article, error)

func (*CreationUseCase) GetCollectColumnCount

func (r *CreationUseCase) GetCollectColumnCount(ctx context.Context, id int32) (int32, error)

func (*CreationUseCase) GetCollectColumnList

func (r *CreationUseCase) GetCollectColumnList(ctx context.Context, id, page int32) ([]*Column, error)

func (*CreationUseCase) GetCollectTalkCount

func (r *CreationUseCase) GetCollectTalkCount(ctx context.Context, id int32) (int32, error)

func (*CreationUseCase) GetCollectTalkList

func (r *CreationUseCase) GetCollectTalkList(ctx context.Context, id, page int32) ([]*Talk, error)

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 (r *CreationUseCase) GetCollectionsCount(ctx context.Context, uuid string) (int32, error)

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 (r *CreationUseCase) GetCollectionsVisitorCount(ctx context.Context, uuid string) (int32, error)

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 (r *CreationUseCase) GetUserTimeLineList(ctx context.Context, page int32, uuid string) ([]*TimeLine, error)

func (*CreationUseCase) SendCollections

func (r *CreationUseCase) SendCollections(ctx context.Context, id int32, uuid, ip string) error

func (*CreationUseCase) SendCollectionsEdit

func (r *CreationUseCase) SendCollectionsEdit(ctx context.Context, id int32, uuid, ip string) error

type CreationUser

type CreationUser struct {
	Article     int32
	Column      int32
	Talk        int32
	Collections int32
	Collect     int32
	Subscribe   int32
}

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 LeaderBoard

type LeaderBoard struct {
	Id    int32
	Agree int32
	Uuid  string
	Mode  string
}

type News

type News struct {
	Id     string
	Update string
	Title  string
	Author string
	Text   string
	Tags   string
	Cover  string
	Url    string
}

type NewsRepo

type NewsRepo interface {
	GetNews(ctx context.Context, page int32) ([]*News, error)
	GetNewsSearch(ctx context.Context, page int32, search, time string) ([]*NewsSearch, int32, error)
}

type NewsSearch added in v1.4.0

type NewsSearch struct {
	Id      string
	Update  string
	Title   string
	Author  string
	Tags    string
	Url     string
	Content string
	Cover   string
}

type NewsUseCase

type NewsUseCase struct {
	// contains filtered or unexported fields
}

func NewNewsUseCase

func NewNewsUseCase(repo NewsRepo, tm Transaction, logger log.Logger) *NewsUseCase

func (*NewsUseCase) GetNews

func (r *NewsUseCase) GetNews(ctx context.Context, page int32) ([]*News, error)

func (*NewsUseCase) GetNewsSearch added in v1.4.0

func (r *NewsUseCase) GetNewsSearch(ctx context.Context, page int32, search, time string) ([]*NewsSearch, int32, error)

type Recovery

type Recovery interface {
	GroupRecover(context.Context, func(ctx context.Context) error) func() error
}

type SendArticleMap added in v1.2.0

type SendArticleMap struct {
	Uuid string
	Id   int32
	Auth int32
	Mode string
}

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

type SendArticleStatisticMap struct {
	Uuid     string
	UserUuid string
	Mode     string
}

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

type SendCollectionMap struct {
	Uuid string
	Id   int32
	Auth int32
	Mode string
}

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

type SendColumnIncludesMap struct {
	Id        int32
	ArticleId int32
	Uuid      string
	Mode      string
}

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

type SendColumnMap struct {
	Uuid string
	Id   int32
	Auth int32
	Mode string
}

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

type SendColumnStatisticMap struct {
	Uuid     string
	UserUuid string
	Mode     string
}

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

type SendColumnSubscribeMap struct {
	Id   int32
	Uuid string
	Mode string
}

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

type SendScoreMap struct {
	Uuid  string
	Score int32
	Mode  string
}

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

type SendTalkMap struct {
	Uuid string
	Id   int32
	Auth int32
	Mode string
}

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

type SendTalkStatisticMap struct {
	Uuid     string
	UserUuid string
	Mode     string
}

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 Subscribe

type Subscribe struct {
	ColumnId int32
	AuthorId string
	Uuid     string
	Status   int32
}

type Talk

type Talk struct {
	TalkId int32
	Uuid   string
	Status int32
	Auth   int32
}

type TalkDraft

type TalkDraft struct {
	Id     int32
	Status int32
	Uuid   string
}

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

type TalkReview struct {
	Uuid string
	Id   int32
	Mode string
}

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 TalkSearch struct {
	Id     int32
	Total  int32
	Title  string
	Tags   string
	Uuid   string
	Text   string
	Cover  string
	Update string
}

type TalkStatistic

type TalkStatistic struct {
	TalkId  int32
	Uuid    string
	Agree   int32
	View    int32
	Collect int32
	Comment int32
	Auth    int32
}

type TalkStatisticJudge

type TalkStatisticJudge struct {
	Agree   bool
	Collect bool
}

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 (r *TalkUseCase) AddTalkComment(ctx context.Context, id int32, uuid string) error

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 (r *TalkUseCase) CancelTalkAgree(ctx context.Context, id int32, uuid, userUuid string) error

func (*TalkUseCase) CancelTalkAgreeDbAndCache

func (r *TalkUseCase) CancelTalkAgreeDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error

func (*TalkUseCase) CancelTalkCollect

func (r *TalkUseCase) CancelTalkCollect(ctx context.Context, id int32, uuid, userUuid string) error

func (*TalkUseCase) CancelTalkCollectDbAndCache

func (r *TalkUseCase) CancelTalkCollectDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error

func (*TalkUseCase) CreateTalk

func (r *TalkUseCase) CreateTalk(ctx context.Context, id, auth int32, uuid string) error

func (*TalkUseCase) CreateTalkDbCacheAndSearch

func (r *TalkUseCase) CreateTalkDbCacheAndSearch(ctx context.Context, id, auth int32, uuid string) error

func (*TalkUseCase) CreateTalkDraft

func (r *TalkUseCase) CreateTalkDraft(ctx context.Context, uuid string) (int32, error)

func (*TalkUseCase) DeleteTalk

func (r *TalkUseCase) DeleteTalk(ctx context.Context, id int32, uuid string) error

func (*TalkUseCase) DeleteTalkCacheAndSearch

func (r *TalkUseCase) DeleteTalkCacheAndSearch(ctx context.Context, id int32, uuid string) error

func (*TalkUseCase) EditTalk

func (r *TalkUseCase) EditTalk(ctx context.Context, id, auth int32, uuid string) error

func (*TalkUseCase) EditTalkCosAndSearch

func (r *TalkUseCase) EditTalkCosAndSearch(ctx context.Context, id, auth int32, uuid string) error

func (*TalkUseCase) GetLastTalkDraft

func (r *TalkUseCase) GetLastTalkDraft(ctx context.Context, uuid string) (*TalkDraft, error)

func (*TalkUseCase) GetTalkContentReview

func (r *TalkUseCase) GetTalkContentReview(ctx context.Context, page int32, uuid string) ([]*TextReview, error)

func (*TalkUseCase) GetTalkCount

func (r *TalkUseCase) GetTalkCount(ctx context.Context, uuid string) (int32, error)

func (*TalkUseCase) GetTalkCountVisitor

func (r *TalkUseCase) GetTalkCountVisitor(ctx context.Context, uuid string) (int32, error)

func (*TalkUseCase) GetTalkImageReview

func (r *TalkUseCase) GetTalkImageReview(ctx context.Context, page int32, uuid string) ([]*ImageReview, error)

func (*TalkUseCase) GetTalkList

func (r *TalkUseCase) GetTalkList(ctx context.Context, page int32) ([]*Talk, error)

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 (r *TalkUseCase) GetUserTalkAgree(ctx context.Context, uuid string) (map[int32]bool, error)

func (*TalkUseCase) GetUserTalkCollect

func (r *TalkUseCase) GetUserTalkCollect(ctx context.Context, uuid string) (map[int32]bool, error)

func (*TalkUseCase) GetUserTalkList

func (r *TalkUseCase) GetUserTalkList(ctx context.Context, page int32, uuid string) ([]*Talk, error)

func (*TalkUseCase) GetUserTalkListVisitor

func (r *TalkUseCase) GetUserTalkListVisitor(ctx context.Context, page int32, uuid string) ([]*Talk, error)

func (*TalkUseCase) ReduceTalkComment

func (r *TalkUseCase) ReduceTalkComment(ctx context.Context, id int32, uuid string) error

func (*TalkUseCase) SendTalk

func (r *TalkUseCase) SendTalk(ctx context.Context, id int32, uuid, ip string) error

func (*TalkUseCase) SendTalkEdit

func (r *TalkUseCase) SendTalkEdit(ctx context.Context, id int32, uuid, ip string) error

func (*TalkUseCase) SetTalkAgree

func (r *TalkUseCase) SetTalkAgree(ctx context.Context, id int32, uuid, userUuid string) error

func (*TalkUseCase) SetTalkAgreeDbAndCache

func (r *TalkUseCase) SetTalkAgreeDbAndCache(ctx context.Context, id int32, uuid, userUuid string) error

func (*TalkUseCase) SetTalkCollect

func (r *TalkUseCase) SetTalkCollect(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error

func (*TalkUseCase) SetTalkCollectDbAndCache

func (r *TalkUseCase) SetTalkCollectDbAndCache(ctx context.Context, id, collectionsId int32, uuid, userUuid string) error

func (*TalkUseCase) SetTalkView

func (r *TalkUseCase) SetTalkView(ctx context.Context, id int32, uuid string) error

func (*TalkUseCase) SetTalkViewDbAndCache

func (r *TalkUseCase) SetTalkViewDbAndCache(ctx context.Context, id int32, uuid string) error

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

type TimeLine

type TimeLine struct {
	Id         int32
	Uuid       string
	CreationId int32
	Mode       int32
}

type Transaction

type Transaction interface {
	ExecTx(context.Context, func(ctx context.Context) error) error
}

Jump to

Keyboard shortcuts

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