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
f36d1233
authored
Oct 28, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
bd0570dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
routes/router.go
routes/router.go
View file @
f36d1233
...
...
@@ -20,10 +20,21 @@ func InitRouter() *gin.Engine {
})
//联营参数选择搜索
r
.
POST
(
"optimum/attr"
,
controller
.
OptimumAttr
)
r
.
GET
(
"optimum/attr"
,
controller
.
OptimumAttr
)
r
.
POST
(
"optimum/goods"
,
controller
.
OptimumGoods
)
r
.
GET
(
"optimum/goods"
,
controller
.
OptimumGoods
)
//联营参数选择搜索
v2
:=
r
.
Group
(
"/v2/optimum/"
)
{
v2
.
POST
(
"attr"
,
controller
.
OptimumAttr
)
v2
.
GET
(
"attr"
,
controller
.
OptimumAttr
)
v2
.
POST
(
"goods"
,
controller
.
OptimumGoods
)
v2
.
GET
(
"goods"
,
controller
.
OptimumGoods
)
}
v3
:=
r
.
Group
(
"/optimum/"
)
{
v3
.
POST
(
"attr"
,
controller
.
OptimumAttr
)
v3
.
GET
(
"attr"
,
controller
.
OptimumAttr
)
v3
.
POST
(
"goods"
,
controller
.
OptimumGoods
)
v3
.
GET
(
"goods"
,
controller
.
OptimumGoods
)
}
//路由
r
.
POST
(
"search/ZiYing/zyh"
,
controller
.
Zyh
)
...
...
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