Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
bom_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
58be2aa9
authored
Jun 01, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改配置
parent
e45de2b3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
7 deletions
.gitignore
conf/config.ini
conf/config_production.ini
configs/config.go
server/http/main.go
.gitignore
View file @
58be2aa9
...
...
@@ -25,4 +25,5 @@ cmd/cmd
/cmd/dong/logs/*.log
server/server
/sh
/conf
/conf/config.ini
/conf/config_production.ini
conf/config.ini
View file @
58be2aa9
...
...
@@ -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
...
...
conf/config_production.ini
View file @
58be2aa9
...
...
@@ -2,7 +2,7 @@
user_name
=
BomUserIc
password
=
mLssyDxmsymBomy
host
=
172.18.137.21
database
=
lie_bom
database
=
lie
xin
_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
configs/config.go
View file @
58be2aa9
...
...
@@ -41,9 +41,10 @@ type RabbitMQ struct {
}
type
Api
struct
{
Goods
string
`ini:"goods"`
Upload
string
`ini:"upload"`
Goods
string
`ini:"goods"`
Upload
string
`ini:"upload"`
ApiPort
string
`ini:"api_port"`
Mode
string
`ini:"mode"`
}
type
Oss
struct
{
...
...
server/http/main.go
View file @
58be2aa9
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment