🎉 完成基本的演示和样例
This commit is contained in:
17
internal/opt/config.go
Normal file
17
internal/opt/config.go
Normal file
@ -0,0 +1,17 @@
|
||||
package opt
|
||||
|
||||
type svc struct {
|
||||
Address string `json:"address"`
|
||||
Prefix string `json:"prefix"`
|
||||
Cache string `json:"cache"`
|
||||
DB string `json:"db"`
|
||||
}
|
||||
|
||||
type config struct {
|
||||
Debug bool `json:"debug"`
|
||||
Svc svc `json:"svc"`
|
||||
}
|
||||
|
||||
var (
|
||||
Cfg = config{}
|
||||
)
|
6
internal/opt/var.go
Normal file
6
internal/opt/var.go
Normal file
@ -0,0 +1,6 @@
|
||||
package opt
|
||||
|
||||
const (
|
||||
// 记得替换这个
|
||||
JwtTokenSecret = "2(v6UW3pBf1Miz^bY9u4rAUyv&dj8Kdz"
|
||||
)
|
Reference in New Issue
Block a user