用户赞助模块补丁
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{
|
newSponsorDO := do.SponsorDO{
|
||||||
Name: getUserDO.UserName,
|
Name: getUserDO.UserName,
|
||||||
UserId: getUserDO.Id,
|
UserId: getUserDO.Id,
|
||||||
Url: entity.Url,
|
Url: entity.Url,
|
||||||
Type: entity.Type,
|
Type: entity.Type,
|
||||||
Money: entity.Money,
|
Money: entity.Money,
|
||||||
CreatedAt: time.Time{},
|
StatementOfAccount: entity.StatementOfAccount,
|
||||||
Check: check,
|
CreatedAt: time.Time{},
|
||||||
|
Check: check,
|
||||||
}
|
}
|
||||||
if sponsorDAO.AddSponsor(newSponsorDO) {
|
if sponsorDAO.AddSponsor(newSponsorDO) {
|
||||||
//TODO:发送邮件
|
//TODO:发送邮件
|
||||||
|
@ -3,12 +3,13 @@ package do
|
|||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
type SponsorDO struct {
|
type SponsorDO struct {
|
||||||
Id *uint64 `json:"id"`
|
Id *uint64 `json:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
UserId *uint64 `json:"user_id"`
|
UserId *uint64 `json:"user_id"`
|
||||||
Url *string `json:"url"`
|
Url *string `json:"url"`
|
||||||
Type uint8 `json:"type"`
|
Type uint8 `json:"type"`
|
||||||
Money uint64 `json:"money"`
|
Money uint64 `json:"money"`
|
||||||
CreatedAt time.Time `json:"created_at"`
|
StatementOfAccount *string `json:"statement_of_account"`
|
||||||
Check bool `json:"check"`
|
CreatedAt time.Time `json:"created_at"`
|
||||||
|
Check bool `json:"check"`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user