nft质押任务逻辑

This commit is contained in:
lianghuanjie
2024-12-27 18:06:13 +08:00
parent a22f73df20
commit 31a674080d
39 changed files with 1532 additions and 99 deletions

View File

@@ -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 {