🎨 优化迎新逻辑,引入资源概念
This commit is contained in:
@@ -5,8 +5,9 @@ var Conf Config
|
||||
// Config
|
||||
// @description: 配置
|
||||
type Config struct {
|
||||
Task task `json:"task" yaml:"task"` // 定时任务配置
|
||||
MySQL mysql `json:"mysql" yaml:"mysql"` // MySQL 配置
|
||||
Wechat wechat `json:"wechat" yaml:"wechat"` // 微信助手
|
||||
Ai ai `json:"ai" yaml:"ai"` // AI配置
|
||||
Task task `json:"task" yaml:"task"` // 定时任务配置
|
||||
MySQL mysql `json:"mysql" yaml:"mysql"` // MySQL 配置
|
||||
Wechat wechat `json:"wechat" yaml:"wechat"` // 微信助手
|
||||
Ai ai `json:"ai" yaml:"ai"` // AI配置
|
||||
Resource map[string]resourceItem `json:"resource" yaml:"resource"` // 资源配置
|
||||
}
|
||||
|
||||
8
config/resource.go
Normal file
8
config/resource.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package config
|
||||
|
||||
// resourceItem
|
||||
// @description: 资源项
|
||||
type resourceItem struct {
|
||||
Type string `json:"type" yaml:"type"` // 类型
|
||||
Path string `json:"path" yaml:"path"` // 路径
|
||||
}
|
||||
Reference in New Issue
Block a user