From 0ddbf564f6e2a33c4f73141423ad0905da4278d0 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 19 四月 2024 16:36:33 +0800
Subject: [PATCH] 增加查询字段接口,保存字典接口
---
config/system.go | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/config/system.go b/config/system.go
index 6f35d0a..42ec690 100644
--- a/config/system.go
+++ b/config/system.go
@@ -1,14 +1,12 @@
package config
type System struct {
- Env string `mapstructure:"env" json:"env" yaml:"env"` // 鐜鍊�
- DbType string `mapstructure:"db-type" json:"db-type" yaml:"db-type"` // 鏁版嵁搴撶被鍨�:mysql(榛樿)|sqlite|sqlserver|postgresql
- OssType string `mapstructure:"oss-type" json:"oss-type" yaml:"oss-type"` // Oss绫诲瀷
- RouterPrefix string `mapstructure:"router-prefix" json:"router-prefix" yaml:"router-prefix"`
- Addr int `mapstructure:"addr" json:"addr" yaml:"addr"` // 绔彛鍊�
- LimitCountIP int `mapstructure:"iplimit-count" json:"iplimit-count" yaml:"iplimit-count"`
- LimitTimeIP int `mapstructure:"iplimit-time" json:"iplimit-time" yaml:"iplimit-time"`
- UseMultipoint bool `mapstructure:"use-multipoint" json:"use-multipoint" yaml:"use-multipoint"` // 澶氱偣鐧诲綍鎷︽埅
- UseRedis bool `mapstructure:"use-redis" json:"use-redis" yaml:"use-redis"` // 浣跨敤redis
- GrpcUrl string `mapstructure:"grpc-url" json:"grpc-url" yaml:"grpc-url"` // grpc鏈嶅姟鍦板潃
+ Env string `mapstructure:"env" json:"env" yaml:"env"` // 鐜鍊�
+ DbType string `mapstructure:"db-type" json:"db-type" yaml:"db-type"` // 鏁版嵁搴撶被鍨�:mysql(榛樿)|sqlite|sqlserver|postgresql
+ RouterPrefix string `mapstructure:"router-prefix" json:"router-prefix" yaml:"router-prefix"`
+ Addr int `mapstructure:"addr" json:"addr" yaml:"addr"` // 绔彛鍊�
+ GrpcPort string `mapstructure:"grpc-port" json:"grpc-port" yaml:"grpc-port"` // 瀵瑰鎻愪緵鏈嶅姟grpc绔彛
+ GrpcUrl string `mapstructure:"grpc-url" json:"grpc-url" yaml:"grpc-url"` // aps grpc鏈嶅姟鍦板潃
+ GrpcAdminUrl string `mapstructure:"grpc-admin-url" json:"grpc-admin-url" yaml:"grpc-admin-url"` // admin grpc鏈嶅姟鍦板潃
+ GrpcWmsUrl string `mapstructure:"grpc-wms-url" json:"grpc-wms-url" yaml:"grpc-wms-url"` // wms grpc鏈嶅姟鍦板潃
}
--
Gitblit v1.8.0