feat jenkins cicd

This commit is contained in:
2025-12-31 23:34:44 +08:00
parent 670140e7d3
commit 01621ec237
32 changed files with 505 additions and 92 deletions

View File

@@ -2,17 +2,24 @@ package config
import "common/config"
const path = "./config"
const KeyUserAccessToken = "user:access:%v"
const KeyUserRefreshToken = "user:refresh:%v"
const (
path = "./config"
KeyUserAccessToken = "user:access:%v"
KeyUserRefreshToken = "user:refresh:%v"
)
// PublicPaths 不需要鉴权的接口,硬编码注册
var PublicPaths = []string{
"/user/info",
}
type Config struct {
App *config.AppConfig `yaml:"app"`
Log *config.LogConfig `yaml:"log"`
Monitor *config.MonitorConfig `yaml:"monitor"`
DB *config.DBConfig `yaml:"db"`
Serve *config.ServeConfig `yaml:"serve"`
Auth *struct {
App *config.AppConfig `yaml:"app"`
Log *config.LogConfig `yaml:"log"`
Metric *config.MetricConfig `yaml:"metric"`
DB *config.DBConfig `yaml:"db"`
Serve *config.ServeConfig `yaml:"serve"`
Auth *struct {
Secret string `yaml:"secret"`
Expire int64 `yaml:"expire"`
}