feat(api): prepare for svc implemention

This commit is contained in:
neo-f
2023-03-23 15:44:57 +08:00
parent a56f0b8150
commit 005a13d8a5
8 changed files with 277 additions and 101 deletions

View File

@@ -14,10 +14,9 @@ import (
)
type Config struct {
IsLocal bool
Debug bool `mapstructure:"debug"`
HTTPPort int `mapstructure:"http_port" validate:"required"`
PrometheusPort int `mapstructure:"prometheus_port" validate:"required"`
IsLocal bool
Debug bool `mapstructure:"debug"`
HTTPPort int `mapstructure:"http_port" validate:"required"`
Databases struct {
OSS string `mapstructure:"oss" validate:"required"`