nft质押任务逻辑
This commit is contained in:
@@ -3,6 +3,7 @@ package config
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/zeromicro/go-zero/core/stores/cache"
|
||||
"github.com/zeromicro/go-zero/core/stores/redis"
|
||||
"github.com/zeromicro/go-zero/core/stores/sqlx"
|
||||
"github.com/zeromicro/go-zero/rest"
|
||||
"net/url"
|
||||
@@ -13,15 +14,22 @@ import (
|
||||
type Config struct {
|
||||
rest.RestConf
|
||||
MySql MySqlConf
|
||||
Redis redis.RedisConf
|
||||
Cache cache.CacheConf
|
||||
Auth struct {
|
||||
AccessSecret string
|
||||
AccessExpire time.Duration `json:",default=168h"`
|
||||
}
|
||||
Earn earn.Config
|
||||
DailyPay DailyPay
|
||||
EarnCorn Cron `json:",optional"`
|
||||
PledgeCron Cron `json:",optional"`
|
||||
Earn earn.Config
|
||||
EarnCorn struct {
|
||||
Spec string
|
||||
RunOnStart bool `json:",optional"`
|
||||
} `json:",optional"`
|
||||
NftTaskCron struct {
|
||||
HolderSpec string
|
||||
SettleSpec string
|
||||
HolderCheckRunOnStart bool `json:",optional"`
|
||||
} `json:",optional"`
|
||||
}
|
||||
|
||||
type Cron struct {
|
||||
|
||||
Reference in New Issue
Block a user