完善数据上报,每日支付任务认证

This commit is contained in:
lianghuanjie
2024-12-20 17:50:24 +08:00
parent a3c4adfa25
commit bbbc750af2
17 changed files with 505 additions and 13 deletions

View File

@@ -2,6 +2,7 @@ package config
import (
"fmt"
"github.com/zeromicro/go-zero/core/stores/cache"
"github.com/zeromicro/go-zero/core/stores/sqlx"
"github.com/zeromicro/go-zero/rest"
"net/url"
@@ -12,11 +13,18 @@ import (
type Config struct {
rest.RestConf
MySql MySqlConf
Cache cache.CacheConf
Auth struct {
AccessSecret string
AccessExpire time.Duration
AccessExpire time.Duration `json:",default=168h"`
}
Earn earn.Config
Earn earn.Config
DailyPay DailyPay
}
type DailyPay struct {
Contract string
Network string `json:",default=mainnet"`
}
// MySqlConf mysql配置