1
This commit is contained in:
parent
36e3fb32e9
commit
dfbef7649a
@ -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()
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user