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
260a37e3
authored
Jul 02, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
21d37cdf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
17 deletions
cmd/test1.go
model/ly.go
service/mouser_service.go
cmd/test1.go
View file @
260a37e3
...
...
@@ -10,7 +10,7 @@ func main() {
//MouserGetData(MouserService)
dd
:=
service
.
OutLink
(
"LM358"
)
dd
:=
service
.
OutLink
(
"LM358"
,
"-1"
)
print
(
"niin"
)
print
(
dd
)
os
.
Exit
(
1
)
...
...
model/ly.go
View file @
260a37e3
...
...
@@ -2,23 +2,22 @@ package model
//联营请求外链后格式化数据
type
LyClearGoodsList
struct
{
GoodsName
string
`json:"goods_name"`
GoodsNameTemp
string
`json:"goods_name_temp"`
BrandName
string
`json:"brand_name"`
Desc
string
`json:"desc"`
GoodsSn
string
`json:"goods_sn"`
Docurl
string
`json:"docurl"`
Url
string
`json:"url"`
GoodsImg
string
`json:"goods_img"`
Cat
string
`json:"cat"`
RestrictionMessage
string
`json:"RestrictionMessage"`
increment
int
`json:"increment"`
SinglePrice
float64
`json:"single_price"`
Tiered
[]
*
TierItem
GoodsName
string
`json:"goods_name"`
//型号名称
BrandName
string
`json:"brand_name"`
//品牌名称
Desc
string
`json:"desc"`
//描述
GoodsSn
string
`json:"goods_sn"`
//api唯一编码
Docurl
string
`json:"docurl"`
//sku对应供应商的文档路径
Url
string
`json:"url"`
//sku对应供应商的商品详情
GoodsImg
string
`json:"goods_img"`
//sku图片
Cat
string
`json:"cat"`
//分类
RestrictionMessage
string
`json:"RestrictionMessage"`
//额外购买限制内容,如 ‘当前商品不在本地区销售’
increment
int
`json:"increment"`
//最小包装量、倍数
SinglePrice
float64
`json:"single_price"`
//最小单价
Tiered
[]
*
TierItem
//价格梯度数量
}
type
TierItem
struct
{
Purchases
int
PriceUs
float64
PriceCn
float64
Purchases
int
//购买数量
PriceUs
float64
//数量对应的英文价格
PriceCn
float64
//数量对应的中文价格
}
service/mouser_service.go
View file @
260a37e3
This diff could not be displayed because it is too large.
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