init
This commit is contained in:
21
service/api/internal/config/config.go
Normal file
21
service/api/internal/config/config.go
Normal file
@ -0,0 +1,21 @@
|
||||
package config
|
||||
|
||||
import "github.com/zeromicro/go-zero/rest"
|
||||
|
||||
type Config struct {
|
||||
rest.RestConf
|
||||
|
||||
Auth struct {
|
||||
AccessSecret string
|
||||
AccessExpire int64
|
||||
}
|
||||
|
||||
Mysql struct {
|
||||
DataSource string
|
||||
}
|
||||
|
||||
Redis struct {
|
||||
Host string
|
||||
Type string
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user