用户赞助模块补丁

This commit is contained in:
筱锋xiao_lfeng 2024-01-06 20:52:37 +08:00
parent 18b5d94a4d
commit 930876a93f
No known key found for this signature in database
GPG Key ID: F693AA12AABBFA87
2 changed files with 17 additions and 15 deletions

View File

@ -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发送邮件

View File

@ -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"`
}