Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
holmes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
holmes
Commits
e9cf2b1e
Commit
e9cf2b1e
authored
Mar 09, 2022
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
70576d53
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
364 additions
and
4 deletions
+364
-4
ProductController.java
...mes/controller/mock/keystone/jdbuy/ProductController.java
+11
-4
JdSkuDetailRequest.java
...holmes/entity/mock/keystone/jdbuy/JdSkuDetailRequest.java
+36
-0
JdSkuDetailResponse.java
...olmes/entity/mock/keystone/jdbuy/JdSkuDetailResponse.java
+317
-0
No files found.
src/main/java/cn/qg/holmes/controller/mock/keystone/jdbuy/ProductController.java
View file @
e9cf2b1e
...
@@ -2,10 +2,7 @@ package cn.qg.holmes.controller.mock.keystone.jdbuy;
...
@@ -2,10 +2,7 @@ package cn.qg.holmes.controller.mock.keystone.jdbuy;
import
cn.qg.holmes.bean.KeystoneService
;
import
cn.qg.holmes.bean.KeystoneService
;
import
cn.qg.holmes.entity.mock.keystone.*
;
import
cn.qg.holmes.entity.mock.keystone.*
;
import
cn.qg.holmes.entity.mock.keystone.jdbuy.JdFreightRequest
;
import
cn.qg.holmes.entity.mock.keystone.jdbuy.*
;
import
cn.qg.holmes.entity.mock.keystone.jdbuy.JdSellPriceRequest
;
import
cn.qg.holmes.entity.mock.keystone.jdbuy.JdSkuStateRequest
;
import
cn.qg.holmes.entity.mock.keystone.jdbuy.JdSkuStockRequest
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
...
@@ -30,6 +27,16 @@ public class ProductController {
...
@@ -30,6 +27,16 @@ public class ProductController {
@Autowired
@Autowired
KeystoneService
keystoneService
;
KeystoneService
keystoneService
;
/**
* 4.3 查询商品详情
*/
// @PostMapping("/api/product/getDetail")
public
JdSkuDetailResponse
getProductDetail
(
JdSkuDetailRequest
request
)
{
// 这个接口先不写了,直接用京东的
JdSkuDetailResponse
response
=
new
JdSkuDetailResponse
();
return
response
;
}
/**
/**
* 4.5 查询商品上下架状态
* 4.5 查询商品上下架状态
* @param request
* @param request
...
...
src/main/java/cn/qg/holmes/entity/mock/keystone/jdbuy/JdSkuDetailRequest.java
0 → 100644
View file @
e9cf2b1e
package
cn
.
qg
.
holmes
.
entity
.
mock
.
keystone
.
jdbuy
;
public
class
JdSkuDetailRequest
{
private
String
token
;
/**
* 商品编号,只支持单个查询
*/
private
String
sku
;
/**
* 以下为商品维度扩展字段,当入参输入某个扩展字段后,出参会返回该字段对应的出参。可以根据需要选用。
* nappintroduction //移动端商品详情大字段
* nintroduction //PC端商品详情大字段
* wxintroduction //微信小程序商品详情大字段,仅提供图片地址,需要客户添加显示逻辑
* shouhou //是否支持售后
* contractSkuExt //获取客户侧分类编号,需要京东运营维护京东SKU与客户分类编号的映射
* isFactoryShip //是否厂直商品
* isEnergySaving //是否节能环保商品
* taxCode //京东侧税收分类编码
* LowestBuy //商品最低起购量
* capacity //容量单位转换(例如:油品单位桶转升)
* spuId //京东侧模拟SPU号
* pName //SPU名称
* isJDLogistics // "是否京东配送"
* taxInfo //"商品税率"
* upc69 // "商品69条码"
* ChinaCatalog //中国法分类(仅限图书商品使用)
* contractSkuPoolExt//商品池扩展字段
* productFeatures //图书产品特色
* seoModel// 规格参数
* isSelf // 1 是自营 0 不是
*/
private
String
queryExts
;
}
src/main/java/cn/qg/holmes/entity/mock/keystone/jdbuy/JdSkuDetailResponse.java
0 → 100644
View file @
e9cf2b1e
package
cn
.
qg
.
holmes
.
entity
.
mock
.
keystone
.
jdbuy
;
import
lombok.Data
;
import
org.springframework.beans.BeanUtils
;
/**
* 4.3 查询商品详情
*/
@Data
public
class
JdSkuDetailResponse
extends
JdBaseResponse
{
private
SkuDetail
result
;
public
SkuDetail
convertSkuDetail
()
{
if
(
result
!=
null
)
{
SkuDetail
skuDetail
=
new
SkuDetail
();
BeanUtils
.
copyProperties
(
result
,
skuDetail
);
return
skuDetail
;
}
return
null
;
}
@Data
public
static
class
SkuDetail
{
/**
* 售卖单位
*/
private
String
saleUnit
;
/**
* 重量
*/
private
String
weight
;
/**
* 产地
*/
private
String
productArea
;
/**
* 包装清单
*/
private
String
wareQD
;
/**
* 主图
*/
private
String
imagePath
;
/**
* 规格参数
*/
private
String
param
;
/**
* 状态
*/
private
String
state
;
/**
* 商品编号
*/
private
String
sku
;
/**
* 品牌
*/
private
String
brandName
;
/**
* UPC码 区分实物、图书、音像、三种场景
*/
private
String
upc
;
/**
* 类目id 示例"670;729;4837"
*/
private
String
category
;
/**
* 商品名称
*/
private
String
name
;
/**
* 商品详情页大字段
*/
private
String
introduction
;
private
String
nappintroduction
;
//移动端商品详
private
String
spuId
;
private
String
pName
;
private
String
seoModel
;
//规格参数
private
Integer
isSelf
;
//1 是自营 0 不是
private
String
isFactoryShip
;
//是否厂直
/** -------------------------图书------------------- */
/**
* 品牌
*/
private
String
Brand
;
/**
* 印张
*/
private
String
Sheet
;
/**
*
*/
private
String
relatedProducts
;
/**
* ISBN
*/
private
String
ISBN
;
/**
* 编者
*/
private
String
Editer
;
/**
* 印次
*/
private
String
PrintNo
;
/**
* 作者
*/
private
String
Author
;
/**
* 套装数量
*/
private
String
PackNum
;
/**
*
*/
private
String
contentDesc
;
/**
* 品牌
*/
private
String
PrintTime
;
/**
* 类型(例book)
*/
private
String
skuType
;
/**
* 用纸
*/
private
String
Papers
;
/**
* 包装(装帧)
*/
private
String
Package
;
/**
* 校对
*/
private
String
Proofreader
;
/**
*
*/
private
String
editerDesc
;
/**
*
*/
private
String
bookAbstract
;
/**
*
*/
private
String
catalogue
;
/**
* 出版时间
*/
private
String
PublishTime
;
/**
* 页数
*/
private
String
Pages
;
private
String
authorDesc
;
/**
* 图片
*/
private
String
image
;
/**
* 译者
*/
private
String
Transfer
;
/**
*
*/
private
String
appintroduce
;
/**
* 绘者
*/
private
String
Drawer
;
/**
* 图书语言
*/
private
String
Language
;
/**
* 版次
*/
private
String
BatchNo
;
private
String
comments
;
/** -------------------------音像------------------- */
/**
* 出版社
*/
private
String
Press
;
/**
* 外文名
*/
private
String
Foreignname
;
/**
* 格式
*/
private
String
Format
;
/**
* 演奏者
*/
private
String
Performer
;
/**
* 碟数
*/
private
String
Soundtrack
;
/**
* 演员 区分实物、图书、音像、三种场景
*/
private
String
Actor
;
/**
* 地区
*/
private
String
Dregion
;
/**
* 解说者
*/
private
String
Voiceover
;
/**
* 导演
*/
private
String
Director
;
/**
*
*/
private
String
box_Contents
;
/**
* 字幕语言
*/
private
String
Language_Subtitled
;
/**
* 介质
*/
private
String
Media
;
/**
* 屏幕比例
*/
private
String
Screen_Ratio
;
/**
* 集数
*/
private
String
Episode
;
/**
* 文像进字
*/
private
String
Mvd_Wxjz
;
/**
* 发行公司
*/
private
String
Publishing_Company
;
private
String
ISRC
;
/**
* 演唱者
*/
private
String
Singer
;
/**
* 发音语言
*/
private
String
Language_Pronunciation
;
/**
* 出品公司
*/
private
String
Production_Company
;
/**
* 音频格式
*/
private
String
Audio_Encoding_Chinese
;
/**
* 作词
*/
private
String
Authors
;
/**
* 又名
*/
private
String
Aka
;
/**
* 区码
*/
private
String
Region
;
/**
* 版权提供
*/
private
String
Copyright
;
/**
* 作曲
*/
private
String
Compose
;
/**
* 编剧
*/
private
String
Screenwriter
;
/**
* 配音语言
*/
private
String
Language_Dubbed
;
private
String
manual
;
/**
* 片长
*/
private
String
Length
;
private
String
material_Description
;
/**
* 上映日期
*/
private
String
ReleaseDate
;
}
}
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