init: radio init commit

This commit is contained in:
Blizzard
2026-02-28 15:56:26 +08:00
parent fc585fa4df
commit d79beb4663
63 changed files with 2540 additions and 6399 deletions
+2 -3
View File
@@ -13,7 +13,6 @@ type Config struct {
RocketMQConfig RocketMQConfig `mapstructure:"rocket-mq" json:"rocket-mq" yaml:"rocket-mq"`
TencentCOS TencentCOS `mapstructure:"tencent-cos" json:"tencent-cos" yaml:"tencent-cos"`
MiniProgram MiniProgram `mapstructure:"mini-program" json:"mini-program" yaml:"mini-program"` //小程序
ServiceAccount ServiceAccount `mapstructure:"service-account" json:"service-account" yaml:"service-account"` //服务号
WechatPay WechatPay `mapstructure:"wechat-pay" json:"wechat-pay" yaml:"wechat-pay"` //微信支付
MiniProgram MiniProgram `mapstructure:"mini-program" json:"mini-program" yaml:"mini-program"` //小程序
WechatPay WechatPay `mapstructure:"wechat-pay" json:"wechat-pay" yaml:"wechat-pay"` //微信支付
}
-22
View File
@@ -1,22 +0,0 @@
package config
// ActionType 定义养护行为类型
type ActionType string
const (
ActionWater ActionType = "WATER" // 浇水
ActionFertilize ActionType = "FERTILIZE" // 施肥
ActionPrune ActionType = "PRUNE" // 修剪
ActionPhoto ActionType = "PHOTO" // 拍照
ActionLogin ActionType = "LOGIN" // 每日签到
)
// BadgeTier 定义徽章的稀有度
type BadgeTier int
const (
TierBronze BadgeTier = 1 // 铜
TierSilver BadgeTier = 2 // 银
TierGold BadgeTier = 3 // 金
TierDiamond BadgeTier = 4 // 钻石
)
-6
View File
@@ -1,6 +0,0 @@
package config
type ServiceAccount struct {
AppId string `mapstructure:"app-id" json:"app-id" yaml:"app-id"`
AppSecret string `mapstructure:"app-secret" json:"app-secret" yaml:"app-secret"`
}