Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
go_sku_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
a77d9f3f
authored
Jan 14, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'dev' of
http://119.23.72.7/q578953158/go_sku_server
into dev
parents
f05fb3d6
2d79a180
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
model/ladder_price_request.go
service/service_ladder_price.go
model/ladder_price_request.go
View file @
a77d9f3f
...
@@ -12,7 +12,7 @@ type LadderPriceRequest struct {
...
@@ -12,7 +12,7 @@ type LadderPriceRequest struct {
GoodsId
string
`json:"goods_id" form:"goods_id" binding:"required" required_errcode:"104004"`
GoodsId
string
`json:"goods_id" form:"goods_id" binding:"required" required_errcode:"104004"`
Num
int64
`json:"num" form:"num" binding:"required" required_errcode:"104005"`
Num
int64
`json:"num" form:"num" binding:"required" required_errcode:"104005"`
Currency
int
`json:"currency" form:"currency" binding:"required" required_errcode:"104006"`
Currency
int
`json:"currency" form:"currency" binding:"required" required_errcode:"104006"`
//币种 1人民币 2美元
Costly
int
`json:"costly" form:"costly" `
//暂时不知道是什么意思
Costly
int
`json:"costly" form:"costly" `
//暂时不知道是什么意思
}
}
...
...
service/service_ladder_price.go
View file @
a77d9f3f
...
@@ -68,7 +68,7 @@ func (LP *LadderPriceService) GetPriceInfoByNum(ladderPriceRequest model.LadderP
...
@@ -68,7 +68,7 @@ func (LP *LadderPriceService) GetPriceInfoByNum(ladderPriceRequest model.LadderP
return
res
,
e
.
NewApiError
(
"json.Unmarshal ladder_price 报错"
+
err1
.
Error
())
return
res
,
e
.
NewApiError
(
"json.Unmarshal ladder_price 报错"
+
err1
.
Error
())
}
}
res
[
"ladder_price"
]
=
ladder
res
[
"ladder_price"
]
=
ladder
res
[
"goods_info"
]
=
goodsInfo
res
[
"goods_info"
]
=
goodsInfo
[
ladderPriceRequest
.
GoodsId
]
res
[
"num"
]
=
num
res
[
"num"
]
=
num
return
res
,
nil
return
res
,
nil
}
}
...
...
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