Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - func NewAuthRepo(data *Data, logger log.Logger) biz.AuthRepo
 - func NewCosServiceClient(conf *conf.Data) *cos.Client
 - func NewDB(conf *conf.Data) *gorm.DB
 - func NewRecovery(d *Data) biz.Recovery
 - func NewRedis(conf *conf.Data) redis.Cmdable
 - func NewTransaction(d *Data) biz.Transaction
 - func NewUserRepo(data *Data, logger log.Logger) biz.UserRepo
 - type AliCode
 - type AvatarReview
 - type Cos
 - type CoverReview
 - 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 Follow
 - type Gitee
 - type Github
 - type Mail
 - type MqPro
 - type Profile
 - type ProfileUpdate
 - type QQ
 - type User
 - type Wechat
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var ProviderSet = wire.NewSet(NewData, NewDB, NewTransaction, NewRedis, NewRocketmqProducer, NewCosClient, NewCosServiceClient, NewUserRepo, NewAuthRepo, NewElasticsearch, NewGithub, NewWechat, NewQQ, NewGitee, NewPhoneCodeClient, NewMail, NewRecovery)
    Functions ¶
func NewCosServiceClient ¶
func NewRecovery ¶
func NewTransaction ¶
func NewTransaction(d *Data) biz.Transaction
Types ¶
type AliCode ¶
type AliCode struct {
	// contains filtered or unexported fields
}
    func NewPhoneCodeClient ¶
type AvatarReview ¶
type CoverReview ¶
type Data ¶
type Data struct {
	// contains filtered or unexported fields
}
    func (*Data) GroupRecover ¶
type ElasticSearch ¶
type ElasticSearch struct {
	// contains filtered or unexported fields
}
    func NewElasticsearch ¶
func NewElasticsearch(conf *conf.Data) *ElasticSearch
type MqPro ¶
type MqPro struct {
	// contains filtered or unexported fields
}
    func NewRocketmqProducer ¶
type Profile ¶
type Profile struct {
	CreatedAt time.Time
	Updated   int64
	Uuid      string `gorm:"primaryKey;size:20"`
	Username  string `gorm:"index;not null;size:100"`
	Avatar    string `gorm:"size:200"`
	School    string `gorm:"size:50"`
	Company   string `gorm:"size:50"`
	Job       string `gorm:"size:50"`
	Homepage  string `gorm:"size:100"`
	Github    string `gorm:"size:100"`
	Gitee     string `gorm:"size:100"`
	Introduce string `gorm:"size:100"`
}
    func (Profile) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Profile) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Profile) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Profile) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type ProfileUpdate ¶
type User ¶
type User struct {
	gorm.Model
	Uuid     string `gorm:"uniqueIndex;size:20"`
	Email    string `gorm:"uniqueIndex;size:50"`
	Phone    string `gorm:"uniqueIndex;size:20"`
	Wechat   string `gorm:"uniqueIndex;size:100"`
	Qq       string `gorm:"uniqueIndex;size:100"`
	Gitee    int32  `gorm:"uniqueIndex;size:100"`
	Github   int32  `gorm:"uniqueIndex"`
	Password string `gorm:"size:500"`
}
     Click to show internal directories. 
   Click to hide internal directories.