Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_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
1e89eccb
authored
Jul 28, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
test
parent
3b8428c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
controller/quote_controller.go
routes/router.go
search_server.bash
controller/quote_controller.go
View file @
1e89eccb
...
@@ -150,3 +150,7 @@ func GetData(keyword, supplierName string) (res interface{}) {
...
@@ -150,3 +150,7 @@ func GetData(keyword, supplierName string) (res interface{}) {
res
,
_
=
quoteService
.
GetData
(
keyword
,
supplierName
)
res
,
_
=
quoteService
.
GetData
(
keyword
,
supplierName
)
return
return
}
}
func
QuoteTest
(
c
*
gin
.
Context
)
{
c
.
String
(
200
,
"测试"
)
}
routes/router.go
View file @
1e89eccb
...
@@ -27,6 +27,7 @@ func InitRouter() *gin.Engine {
...
@@ -27,6 +27,7 @@ func InitRouter() *gin.Engine {
r
.
POST
(
"/search/bom/recommend"
,
controller
.
Recommend
)
r
.
POST
(
"/search/bom/recommend"
,
controller
.
Recommend
)
//快手平台相关
//快手平台相关
r
.
GET
(
"/search/quote/test"
,
controller
.
QuoteTest
)
r
.
GET
(
"/search/quote"
,
controller
.
QuoteIndex
)
r
.
GET
(
"/search/quote"
,
controller
.
QuoteIndex
)
r
.
POST
(
"/search/quote"
,
controller
.
QuoteIndex
)
r
.
POST
(
"/search/quote"
,
controller
.
QuoteIndex
)
r
.
GET
(
"/search/quote/getDataPur"
,
controller
.
GetDataPur
)
r
.
GET
(
"/search/quote/getDataPur"
,
controller
.
GetDataPur
)
...
...
search_server.bash
View file @
1e89eccb
#!/bin/bash
#!/bin/bash
cd
/data
2
/gocode/search_server
cd
/data/gocode/search_server
git pull origin dev
git pull origin dev
cp /data
2/gocode/search_server/config_prod.ini.demo /data2/gocode/search_server
/config.ini
cp /data
/gocode/search_server/conf/prod/config.ini.prod /data/gocode/search_server/conf
/config.ini
cp /data
2/gocode/search_server/database_prod.ini.demo /data2/gocode/search_server
/database.ini
cp /data
/gocode/search_server/conf/prod/database.ini.prod /data/gocode/search_server/conf
/database.ini
cp /data
2/gocode/search_server/message_prod.ini.demo /data2/gocode/search_server
/message.ini
cp /data
/gocode/search_server/conf/prod/message.ini.prod /data/gocode/search_server/conf
/message.ini
cp /data
2/gocode/search_server/rabmq_key_prod.ini.demo /data2/gocode/search_server
/rabmq_key.ini
cp /data
/gocode/search_server/conf/prod/rabmq_key.ini.prod /data/gocode/search_server/conf
/rabmq_key.ini
cp /data
2/gocode/search_server/redis_config_prod.ini.demo /data2/gocode/search_server
/redis_config.ini
cp /data
/gocode/search_server/conf/prod/redis_config.ini.prod /data/gocode/search_server/conf
/redis_config.ini
cp /data
2/gocode/search_server/redis_key_prod.ini.demo /data2/gocode/search_server
/redis_key.ini
cp /data
/gocode/search_server/conf/prod/redis_key.ini.prod /data/gocode/search_server/conf
/redis_key.ini
cp /data
2/gocode/search_server/search_prod.ini.demo /data2/gocode/search_server
/search.ini
cp /data
/gocode/search_server/conf/prod/search.ini.prod /data/gocode/search_server/conf
/search.ini
go build
-o
./cmd/search_http_server ./cmd/search_http_server.go
go build
-o
./cmd/search_http_server ./cmd/search_http_server.go
supervisorctl restart search_server
supervisorctl restart search_server
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