package config

type App struct {
	ServiceName   string `mapstructure:"SERVICE_NAME"`
	Environment   string `mapstructure:"ENVIRONMENT"`
	Region        string `mapstructure:"REGION"`
	MassShipLimit int    `mapstructure:"MASS_SHIP_LIMIT"`
}

func (c *configImpl) GetAppConfig() App {
	return c.systemConfig.App
}

func (c *configImpl) setDefaultAppConfig() {
	c.viper.SetDefault("SERVICE_NAME", "paid-order")
	c.viper.SetDefault("ENVIRONMENT", "development")
	c.viper.SetDefault("REGION", "th")
	c.viper.SetDefault("MASS_SHIP_LIMIT", 100)
}
