Commit 58be2aa9 by mushishixian

修改配置

parent e45de2b3
......@@ -25,4 +25,5 @@ cmd/cmd
/cmd/dong/logs/*.log
server/server
/sh
/conf
/conf/config.ini
/conf/config_production.ini
......@@ -14,6 +14,7 @@ base = http://192.168.2.232:40001
goods = http://192.168.2.232:60004
upload = http://api.liexin.com/oss/upload
api_port = 60010
mode = debug
[oss]
upload_key = fh6y5t4rr351d2c3bryi
......
......@@ -2,7 +2,7 @@
user_name = BomUserIc
password = mLssyDxmsymBomy
host = 172.18.137.21
database = lie_bom
database = liexin_bom
table_prefix = lie_
type = mysql
......@@ -10,14 +10,13 @@ type = mysql
url = "amqp://BomUxRbt:PLotqpzsozJwot@172.18.137.23:5672/"
[api]
base = http://192.168.2.232:40001
goods = http://192.168.2.232:60004
upload = http://api.liexin.com/oss/upload
api_port = 60010
mode = release
[oss]
upload_key = fh6y5t4rr351d2c3bryi
[es]
url = http://172.18.137.29:9211
urls = http://172.18.137.29:9211,172.18.137.30:9211
goods_index_name = future,rochester,tme,verical,element14,digikey,chip1stop,aipco,arrow,alliedelec,avnet,mouser,peigenesis,powell,rs,buerklin
\ No newline at end of file
......@@ -44,6 +44,7 @@ type Api struct {
Goods string `ini:"goods"`
Upload string `ini:"upload"`
ApiPort string `ini:"api_port"`
Mode string `ini:"mode"`
}
type Oss struct {
......
......@@ -8,6 +8,7 @@ import (
)
func InitRouter() *gin.Engine {
gin.SetMode(configs.ApiSetting.Mode)
router := gin.Default()
router.POST("/bom/export", Export)
router.POST("/bom_matching/refresh", RefreshBomMatchingGoods)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment