用户赞助模块补丁
This commit is contained in:
parent
18b5d94a4d
commit
930876a93f
@ -56,13 +56,14 @@ func (*SponsorServiceImpl) AddSponsor(req *ghttp.Request, entity entity.SponsorA
|
||||
}
|
||||
// 数据处理
|
||||
newSponsorDO := do.SponsorDO{
|
||||
Name: getUserDO.UserName,
|
||||
UserId: getUserDO.Id,
|
||||
Url: entity.Url,
|
||||
Type: entity.Type,
|
||||
Money: entity.Money,
|
||||
CreatedAt: time.Time{},
|
||||
Check: check,
|
||||
Name: getUserDO.UserName,
|
||||
UserId: getUserDO.Id,
|
||||
Url: entity.Url,
|
||||
Type: entity.Type,
|
||||
Money: entity.Money,
|
||||
StatementOfAccount: entity.StatementOfAccount,
|
||||
CreatedAt: time.Time{},
|
||||
Check: check,
|
||||
}
|
||||
if sponsorDAO.AddSponsor(newSponsorDO) {
|
||||
//TODO:发送邮件
|
||||
|
@ -3,12 +3,13 @@ package do
|
||||
import "time"
|
||||
|
||||
type SponsorDO struct {
|
||||
Id *uint64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
UserId *uint64 `json:"user_id"`
|
||||
Url *string `json:"url"`
|
||||
Type uint8 `json:"type"`
|
||||
Money uint64 `json:"money"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
Check bool `json:"check"`
|
||||
Id *uint64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
UserId *uint64 `json:"user_id"`
|
||||
Url *string `json:"url"`
|
||||
Type uint8 `json:"type"`
|
||||
Money uint64 `json:"money"`
|
||||
StatementOfAccount *string `json:"statement_of_account"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
Check bool `json:"check"`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user