This commit is contained in:
aozhiwei 2024-08-16 19:10:23 +08:00
parent 36e3fb32e9
commit dfbef7649a
2 changed files with 16 additions and 0 deletions

View File

@ -24,6 +24,7 @@ func (ea *RechargeApi) RechargeList(c *gin.Context) {
rspObj := struct {
ErrCode int32 `json:"errcode"`
ErrMsg string `json:"errmsg"`
Contribution string `json:"contribution"`
Rows []interface{} `json:"rows"`
}{}
@ -33,6 +34,13 @@ func (ea *RechargeApi) RechargeList(c *gin.Context) {
return
}
if contribution, err := service.Contribution.GetAddressContribution(""); err != nil {
f5.RspErr(c, 2, "server internal error")
return
} else {
rspObj.Contribution = q5.ToString(contribution)
}
mt.Table.Recharge.Traverse(func(tb *mt.Recharge) bool {
tmpmap := map[string]interface{}{}
tmpmap["goods_id"] = tb.GetId()

View File

@ -11,3 +11,11 @@ func (this *contribution) init() {
func (this *contribution) unInit() {
}
func (this *contribution) GetAddressContribution(accountAddress string) (float64, error){
return 0, nil
}
func (this *contribution) GetGlobalContribution() (float64, error){
return 0, nil
}