Documentation ¶
Index ¶
- Variables
- func NewArticleRepo(data *Data, logger log.Logger) biz.ArticleRepo
- func NewColumnRepo(data *Data, logger log.Logger) biz.ColumnRepo
- func NewCosServiceClient(conf *conf.Data, logger log.Logger) *cos.Client
- func NewCreationRepo(data *Data, logger log.Logger) biz.CreationRepo
- func NewDB(conf *conf.Data, logger log.Logger) *gorm.DB
- func NewNewsRepo(data *Data, logger log.Logger) biz.NewsRepo
- func NewRecovery(d *Data) biz.Recovery
- func NewRedis(conf *conf.Data, logger log.Logger) redis.Cmdable
- func NewTalkRepo(data *Data, logger log.Logger) biz.TalkRepo
- func NewTransaction(d *Data) biz.Transaction
- type AchievementMqPro
- type Article
- type ArticleAgree
- type ArticleCollect
- type ArticleContentReview
- type ArticleDraft
- type ArticleMqPro
- type ArticleReview
- type ArticleReviewMqPro
- type ArticleStatistic
- type Collect
- type Collections
- type CollectionsContentReview
- type CollectionsDraft
- type CollectionsMqPro
- type CollectionsReviewMqPro
- type Column
- type ColumnAgree
- type ColumnCollect
- type ColumnContentReview
- type ColumnDraft
- type ColumnInclusion
- type ColumnMqPro
- type ColumnReview
- type ColumnReviewMqPro
- type ColumnStatistic
- type CreationUser
- type CreationUserVisitor
- type Data
- func (d *Data) DB(ctx context.Context) *gorm.DB
- func (d *Data) ExecTx(ctx context.Context, fn func(ctx context.Context) error) error
- func (d *Data) GroupRecover(ctx context.Context, fn func(ctx context.Context) error) func() error
- func (d *Data) Recover(ctx context.Context, fn func(ctx context.Context)) func()
- type ElasticSearch
- type News
- type Record
- type Subscribe
- type Talk
- type TalkAgree
- type TalkCollect
- type TalkContentReview
- type TalkDraft
- type TalkMqPro
- type TalkReview
- type TalkReviewMqPro
- type TalkStatistic
- type TimeLine
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewData, NewDB, NewRedis, NewTransaction, NewRocketmqArticleProducer, NewRocketmqArticleReviewProducer, NewRocketmqAchievementProducer, NewRocketmqTalkReviewProducer, NewRocketmqTalkProducer, NewRocketmqColumnReviewProducer, NewRocketmqColumnProducer, NewRocketmqCollectionsReviewProducer, NewRocketmqCollectionsProducer, NewCosServiceClient, NewElasticsearch, NewNewsClient, NewArticleRepo, NewTalkRepo, NewCreationRepo, NewColumnRepo, NewNewsRepo, NewRecovery)
Functions ¶
func NewArticleRepo ¶
func NewArticleRepo(data *Data, logger log.Logger) biz.ArticleRepo
func NewColumnRepo ¶
func NewColumnRepo(data *Data, logger log.Logger) biz.ColumnRepo
func NewCreationRepo ¶
func NewCreationRepo(data *Data, logger log.Logger) biz.CreationRepo
func NewRecovery ¶
func NewTransaction ¶
func NewTransaction(d *Data) biz.Transaction
Types ¶
type AchievementMqPro ¶
type AchievementMqPro struct {
// contains filtered or unexported fields
}
func NewRocketmqAchievementProducer ¶
func NewRocketmqAchievementProducer(conf *conf.Data, logger log.Logger) *AchievementMqPro
type ArticleAgree ¶
type ArticleCollect ¶
type ArticleContentReview ¶
type ArticleDraft ¶
type ArticleMqPro ¶
type ArticleMqPro struct {
// contains filtered or unexported fields
}
func NewRocketmqArticleProducer ¶
func NewRocketmqArticleProducer(conf *conf.Data, logger log.Logger) *ArticleMqPro
type ArticleReview ¶
type ArticleReviewMqPro ¶
type ArticleReviewMqPro struct {
// contains filtered or unexported fields
}
func NewRocketmqArticleReviewProducer ¶
func NewRocketmqArticleReviewProducer(conf *conf.Data, logger log.Logger) *ArticleReviewMqPro
type ArticleStatistic ¶
type ArticleStatistic struct { ArticleId int32 `gorm:"primarykey"` CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` Uuid string `gorm:"index;size:36"` Agree int32 `gorm:"index;type:int unsigned;default:0"` View int32 `gorm:"type:int unsigned;default:0"` Collect int32 `gorm:"type:int unsigned;default:0"` Comment int32 `gorm:"type:int unsigned;default:0"` Auth int32 `gorm:"default:1"` }
type Collections ¶
type Collections struct { CollectionsId int32 `gorm:"primarykey"` CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` Uuid string `gorm:"index;size:36"` Auth int32 `gorm:"default:1"` Article int32 `gorm:"type:int unsigned;default:0"` Column int32 `gorm:"type:int unsigned;default:0"` Talk int32 `gorm:"type:int unsigned;default:0"` }
type CollectionsDraft ¶
type CollectionsMqPro ¶
type CollectionsMqPro struct {
// contains filtered or unexported fields
}
func NewRocketmqCollectionsProducer ¶
func NewRocketmqCollectionsProducer(conf *conf.Data, logger log.Logger) *CollectionsMqPro
type CollectionsReviewMqPro ¶
type CollectionsReviewMqPro struct {
// contains filtered or unexported fields
}
func NewRocketmqCollectionsReviewProducer ¶
func NewRocketmqCollectionsReviewProducer(conf *conf.Data, logger log.Logger) *CollectionsReviewMqPro
type ColumnAgree ¶
type ColumnCollect ¶
type ColumnContentReview ¶
type ColumnDraft ¶
type ColumnInclusion ¶
type ColumnMqPro ¶
type ColumnMqPro struct {
// contains filtered or unexported fields
}
func NewRocketmqColumnProducer ¶
func NewRocketmqColumnProducer(conf *conf.Data, logger log.Logger) *ColumnMqPro
type ColumnReview ¶
type ColumnReviewMqPro ¶
type ColumnReviewMqPro struct {
// contains filtered or unexported fields
}
func NewRocketmqColumnReviewProducer ¶
func NewRocketmqColumnReviewProducer(conf *conf.Data, logger log.Logger) *ColumnReviewMqPro
type ColumnStatistic ¶
type ColumnStatistic struct { ColumnId int32 `gorm:"primarykey"` CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` Uuid string `gorm:"index;size:36"` Agree int32 `gorm:"type:int unsigned;index;default:0"` View int32 `gorm:"type:int unsigned;default:0"` Collect int32 `gorm:"type:int unsigned;default:0"` Auth int32 `gorm:"default:1"` }
type CreationUser ¶
type CreationUser struct { CreatedAt time.Time UpdatedAt time.Time Uuid string `gorm:"primarykey;size:36"` Article int32 `gorm:"type:int unsigned;default:0"` Column int32 `gorm:"type:int unsigned;default:0"` Talk int32 `gorm:"type:int unsigned;default:0"` Collections int32 `gorm:"type:int unsigned;default:0"` Collect int32 `gorm:"type:int unsigned;default:0"` Subscribe int32 `gorm:"type:int unsigned;default:0"` }
type CreationUserVisitor ¶
type CreationUserVisitor struct { CreatedAt time.Time UpdatedAt time.Time Uuid string `gorm:"primarykey;size:36"` Article int32 `gorm:"type:int unsigned;default:0"` Column int32 `gorm:"type:int unsigned;default:0"` Talk int32 `gorm:"type:int unsigned;default:0"` Collections int32 `gorm:"type:int unsigned;default:0"` }
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
func NewData ¶
func NewData(db *gorm.DB, redisCmd redis.Cmdable, cos *cos.Client, es *ElasticSearch, amp *ArticleMqPro, arp *ArticleReviewMqPro, tmp *TalkMqPro, trp *TalkReviewMqPro, cmp *ColumnMqPro, crq *ColumnReviewMqPro, cormq *CollectionsReviewMqPro, cmq *CollectionsMqPro, ap *AchievementMqPro, news *News, logger log.Logger) (*Data, func(), error)
func (*Data) GroupRecover ¶
type ElasticSearch ¶
type ElasticSearch struct {
// contains filtered or unexported fields
}
func NewElasticsearch ¶
func NewElasticsearch(conf *conf.Data, logger log.Logger) *ElasticSearch
type TalkCollect ¶
type TalkContentReview ¶
type TalkReview ¶
type TalkReviewMqPro ¶
type TalkReviewMqPro struct {
// contains filtered or unexported fields
}
func NewRocketmqTalkReviewProducer ¶
func NewRocketmqTalkReviewProducer(conf *conf.Data, logger log.Logger) *TalkReviewMqPro
type TalkStatistic ¶
type TalkStatistic struct { TalkId int32 `gorm:"primarykey"` CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` Uuid string `gorm:"index;size:36"` Agree int32 `gorm:"index;type:int unsigned;default:0"` View int32 `gorm:"type:int unsigned;default:0"` Collect int32 `gorm:"type:int unsigned;default:0"` Comment int32 `gorm:"type:int unsigned;default:0"` Auth int32 `gorm:"default:1"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.