|
|
|
@ -155,6 +155,7 @@ type UserWalletApply struct {
|
|
|
|
|
Nickname string `json:"nickname,omitempty" gorm:"-"`
|
|
|
|
|
Mobile string `json:"mobile,omitempty" gorm:"-"`
|
|
|
|
|
Reason string `json:"reason"`
|
|
|
|
|
IsCompany bool `json:"is_company" gorm:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o UserWalletApply) TableName() string {
|
|
|
|
@ -166,5 +167,6 @@ func (o *UserWalletApply) AfterFind(db *gorm.DB) error {
|
|
|
|
|
o.Nickname = o.User.Nickname
|
|
|
|
|
o.Mobile = o.User.Nickname
|
|
|
|
|
}
|
|
|
|
|
o.IsCompany = o.CompanyID != 0
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|