云盘参数构建书本对象和计算价格
# WeChatDocumentService
---
## 云盘参数转换为book_info对象接口
### BASIC
**Path:** hucai.wechat.common.constructbookinfo
**Method:** POST
### REQUEST
**Headers:**
| name | value | required | desc |
| ------------ | ------------ | ------------ | ------------ |
| Content-Type | application/json | YES | |
**RequestBody**
| name | type | desc |
| ------------ | ------------ | ------------ |
| documentParamsDtoList | array | 云盘文档参数列表集。<br>每个元素为一本书的所有云盘参数选项。封装为list是由于购物车中会有多本书。 |
|   |─ | object | |
|     |─documentBookItem | array | 当前书本的所有云盘参数项。对象同sku首页配置参数接口返回的schemeConfiItemList |
|       |─ | object | |
|         |─id | integer | |
|         |─bookName | string | |
|         |─bookId | integer | |
|         |─schemeId | integer | |
|         |─confItemId | integer | |
|         |─forBindType | integer | |
|         |─itemId | integer | |
|         |─keyName | string | |
|         |─available | integer | |
|         |─remark | string | |
|         |─version | integer | |
|         |─createBy | integer | |
|         |─lastUpdateBy | integer | |
|         |─val | string | |
|         |─partType | string | |
|         |─itemName | string | |
|         |─valScope | string | |
|         |─textScope | string | |
|         |─code | string | |
|         |─classify | integer | |
|         |─htmlType | string | |
|         |─printValScope | string | |
|         |─condition | string | |
|         |─showOrder | integer | |
|         |─documentOrderConversionLog | object | |
|           |─id | integer | |
|           |─queueId | integer | |
|           |─remark | string | |
|           |─version | integer | |
|           |─createTime | string | |
|           |─lastUpdateTime | string | |
|           |─objName | string | |
|           |─attr | string | |
|           |─attrValue | string | |
|           |─objId | string | |
|           |─docItemId | integer | |
|         |─valueMapping | string | |
|         |─action | string | |
|         |─applyScope | integer | |
|         |─bookItemItemId | integer | |
|         |─minNum | integer | |
|         |─printTextScope | string | |
|         |─sequence | integer | |
|         |─toDocMapping | integer | |
|     |─numberBuying | integer | 该本书的购买数量 |
|     |─priceInfo | object | 书本价格相关信息 |
|       |─blankPcount | integer | 白页数 |
|       |─discountPrice | number | 图书价格。目前跟bookPrice冗余了。单位元 |
|       |─bookPrice | number | 图书价格。单位元 |
|       |─bookPriceForFen | integer | 图书价格.单位分 |
|       |─discount | string | 会员折扣率 |
**Request Demo:**
```json
{
"documentParamsDtoList": [
{
"documentBookItem": [
{
"id": 0,
"bookName": "",
"bookId": 0,
"schemeId": 0,
"confItemId": 0,
"forBindType": 0,
"itemId": 0,
"keyName": "",
"available": 0,
"remark": "",
"version": 0,
"createBy": 0,
"lastUpdateBy": 0,
"val": "",
"partType": "",
"itemName": "",
"valScope": "",
"textScope": "",
"code": "",
"classify": 0,
"htmlType": "",
"printValScope": "",
"condition": "",
"showOrder": 0,
"documentOrderConversionLog": {
"id": 0,
"queueId": 0,
"remark": "",
"version": 0,
"createTime": "",
"lastUpdateTime": "",
"objName": "",
"attr": "",
"attrValue": "",
"objId": "",
"docItemId": 0
},
"valueMapping": "",
"action": "",
"applyScope": 0,
"bookItemItemId": 0,
"minNum": 0,
"printTextScope": "",
"sequence": 0,
"toDocMapping": 0
}
],
"numberBuying": 0,
"priceInfo": {
"blankPcount": 0,
"discountPrice": 0.0,
"bookPrice": 0.0,
"bookPriceForFen": 0,
"discount": ""
}
}
]
}
```
### RESPONSE
**Header:**
| name | value | required | desc |
| ------------ | ------------ | ------------ | ------------ |
| content-type | application/json;charset=UTF-8 | NO | |
**Body:**
| name | type | desc |
| ------------ | ------------ | ------------ |
| code | integer | |
| message | string | |
| result | object | |
|   |─documentParamsDtoList | array | 云盘文档参数列表集。<br>每个元素为一本书的所有云盘参数选项。封装为list是由于购物车中会有多本书。 |
|     |─ | object | |
|       |─documentBookItem | array | 当前书本的所有云盘参数项。对象同sku首页配置参数接口返回的schemeConfiItemList |
|         |─ | object | |
|           |─id | integer | |
|           |─bookName | string | |
|           |─bookId | integer | |
|           |─schemeId | integer | |
|           |─confItemId | integer | |
|           |─forBindType | integer | |
|           |─itemId | integer | |
|           |─keyName | string | |
|           |─available | integer | |
|           |─remark | string | |
|           |─version | integer | |
|           |─createBy | integer | |
|           |─lastUpdateBy | integer | |
|           |─val | string | |
|           |─partType | string | |
|           |─itemName | string | |
|           |─valScope | string | |
|           |─textScope | string | |
|           |─code | string | |
|           |─classify | integer | |
|           |─htmlType | string | |
|           |─printValScope | string | |
|           |─condition | string | |
|           |─showOrder | integer | |
|           |─documentOrderConversionLog | object | |
|             |─id | integer | |
|             |─queueId | integer | |
|             |─remark | string | |
|             |─version | integer | |
|             |─createTime | string | |
|             |─lastUpdateTime | string | |
|             |─objName | string | |
|             |─attr | string | |
|             |─attrValue | string | |
|             |─objId | string | |
|             |─docItemId | integer | |
|           |─valueMapping | string | |
|           |─action | string | |
|           |─applyScope | integer | |
|           |─bookItemItemId | integer | |
|           |─minNum | integer | |
|           |─printTextScope | string | |
|           |─sequence | integer | |
|           |─toDocMapping | integer | |
|       |─bookInfoVo | object | 后端将云盘参数转换为book_info对象。前端不需要传值,这是用于返回给前端的。 |
|         |─id | integer | |
|         |─serialBookName | string | defaultVal:NULL,<br>comments: |
|         |─serialBook | integer | defaultVal:NULL<br>comments:0 否 1是 |
|         |─ccmBookId | integer | defaultVal:NULL<br>comments:图权ID |
|         |─name | string | defaultVal:NULL<br>comments:图书书名 |
|         |─isbn | string | defaultVal:NULL<br>comments:图书ISBN |
|         |─edition | string | defaultVal:NULL<br>comments:版次 |
|         |─fixedPrice | number | defaultVal:NULL<br>comments:图书定价 |
|         |─certificateCode | string | defaultVal:NULL<br>comments:凭证编号 |
|         |─issueNumber | string | defaultVal:NULL<br>comments:发行号 |
|         |─productCode | integer | defaultVal:NULL<br>comments:产品编码 |
|         |─bookType | integer | defaultVal:NULL<br>comments:胶装 精装 骑马钉 蝴蝶装 虎彩装 |
|         |─printFactory | integer | defaultVal:NULL<br>comments:默认值,实际由订单决定 |
|         |─status | integer | defaultVal:NULL<br>comments:1 基本信息未完备(草稿)\r\n 2 工艺信息未完备(草稿)\r\n 3 文件信息未完备(草稿)\r\n 4 已完备 |
|         |─remark | string | defaultVal:NULL,<br>comments:<br>OPS订单书目备注,包包数都是为系统计算 |
|         |─finishSize | string | 成品尺寸 |
|         |─pCount | integer | 页数 |
|         |─sampleCount | integer | 样书册数 |
|         |─bookTaskId | integer | |
|         |─deleteBook | integer | 0 不可以删除 1 可以删除 |
|         |─serialBookCode | string | 套书编号<br>套书编号 |
|         |─bindingType | integer | 装订方式<br>1 无线胶装<br>2 锁线胶装<br>3 方脊精装<br>4 圆脊精装<br>5 软精装<br>6 裸背精装<br>7 假精装<br>8 骑马钉<br>9 蝴蝶装<br>10 虎彩装 |
|         |─openSize | string | 开本尺寸<br>20190220添加开本尺寸字段,后台计算价格用到 |
|         |─orderId | integer | |
|         |─bookId | integer | |
|         |─itemNo | integer | |
|         |─copyItemNo | integer | |
|         |─totalNumber | integer | |
|         |─bookStatus | integer | 书目状态 |
|         |─bookSignTime | string | 书目收货时间<br>。用来判断二次售后 20190222新增 |
|         |─bookPrice | integer | 原价 |
|         |─discountPrice | integer | 实付价 |
|         |─bookPriceFront | number | |
|         |─discountPriceFront | number | |
|         |─exchangeType | integer | 换货类型<br> 20190327新增 |
|         |─bookPartsInfoList | array | |
|           |─ | object | |
|             |─bookId | integer | defaultVal:NULL<br>comments:图书ID |
|             |─name | string | defaultVal:NULL<br>comments:部件名 |
|             |─pCount | integer | defaultVal:NULL<br>comments:单双面/P数 |
|             |─flap | boolean | defaultVal:NULL<br>comments:勒口 |
|             |─flapSize | integer | defaultVal:NULL<br>comments:勒口尺寸 |
|             |─color | integer | defaultVal:NULL<br>comments:颜色 |
|             |─materialWeight | string | defaultVal:NULL<br>comments:材料/克重 |
|             |─description | string | defaultVal:NULL<br>comments:纸张描述 |
|             |─addSample | boolean | defaultVal:NULL<br>comments:是否追样 |
|             |─relateTechnics | string | defaultVal:NULL<br>comments:多个用分号 ; 隔开,多级用 / 隔开值为相关工艺字典表中的ID. |
|             |─relateTechnicsNames | string | defaultVal:NULL<br>comments:多个用分号 ; 隔开,多级用 / 隔开值为相关工艺字典表中的name |
|             |─relateNameList | array | 用来前端传后台的工艺字符串 |
|               |─ | string | |
|             |─printSide | integer | defaultVal:NULL<br>comments:1 光面印刷 2 糙面印刷 3 印刷面统一 |
|             |─linesType | integer | defaultVal:NULL<br>comments:1 横纹 2 竖纹 3 纹路统一 |
|             |─girdlePosition | string | defaultVal:NULL<br>comments:1 齐底 2 居中 --腰封\r\n 1 文前 2 文中 3 文后 --拉页 |
|             |─jacketSpineType | integer | defaultVal:NULL<br>comments:护封脊型 |
|             |─pasteType | integer | defaultVal:NULL<br>comments:粘贴方式 |
|             |─foldingType | integer | defaultVal:NULL<br>comments:折页方式 |
|             |─foldingTypeDesc | string | defaultVal:NULL,<br>comments: |
|             |─greyBoard | number | defaultVal:NULL<br>comments:灰板mm |
|             |─headBand | string | defaultVal:NULL<br>comments:白色 |
|             |─silkRibbon | string | defaultVal:NULL<br>comments:红丝带 |
|             |─printingMachine | string | defaultVal:NULL<br>comments:印刷机 |
|             |─widthHeight | string | defaultVal:NULL,<br>comments:宽高尺寸 |
|             |─colorfulPosition | string | 彩插位置 |
|             |─faceType | integer | 单双面 1、单面 2、双面 |
|             |─relateTechnicsList | array | 用来返回给前端的工艺 |
|               |─ | object | |
|                 |─type | integer | defaultVal:NULL<br>comments:1 部件相关工艺\r\n 2 图书相关工艺\r\n 3 模板部件相关工艺\r\n 4 模板图书相关工艺 |
|                 |─name | string | defaultVal:NULL<br>comments:多级使用‘/’ 隔开 |
|                 |─log | object | |
|                 |─id | integer | |
|             |─originPcount | integer | 文件P数<br>文件P数 |
|         |─picUrl | string | 图片路径 |
|         |─insideColor | integer | 内文颜色<br>1 黑白<br>2 彩色<br>3 双色 |
|         |─turnType | boolean | 翻页方式<br>defaultVal:NULL<br>comments:0-左翻 1-右翻 |
|         |─positiveFlag | boolean | 正反面标记<br>defaultVal:NULL<br>comments:1 正面 or 0 反面 |
|         |─packageInfo | object | 包装信息 |
|           |─orderId | integer | defaultVal:NULL<br>comments:订单ID |
|           |─bookId | integer | defaultVal:NULL<br>comments:图书ID |
|           |─plasticPackage | integer | defaultVal:NULL<br>comments:塑封方式 |
|           |─mating | integer | defaultVal:NULL<br>comments:是否配套 |
|           |─autoCalculate | boolean | defaultVal:NULL<br>comments:自动计算<br>OPS订单包包数都是默认自动计算 |
|           |─packageNumber | integer | defaultVal:NULL<br>comments:包包数量 |
|           |─tagContent | string | defaultVal:NULL<br>comments:标签 |
|           |─tagType | integer | defaultVal:NULL<br>comments:贴签方式 |
|           |─log | object | |
|           |─id | integer | |
|         |─flapSize | integer | 勒口尺寸 |
|         |─spineThickness | number | 书脊尺寸 |
|         |─coverExpandSize | string | 封面展开尺寸 |
|         |─logisticsPrice | integer | 运费 |
|         |─logisticsPriceFront | number | |
|         |─coverAndInsideName | string | 存封面、内页等文件名。‘;’号隔开 |
|         |─exclusiveDiscountStatusName | string | 独家折扣用户状态 |
|         |─exclusiveDiscountRate | integer | |
|         |─imageProductDetailId | integer | 影像产品规格明细ID |
|         |─designJson | string | |
|         |─blankPcount | integer | 白页数 |
|         |─printEntrustBook | string | |
|         |─coverThumbPath | string | 缩略图地址 |
|       |─numberBuying | integer | 该本书的购买数量 |
|       |─priceInfo | object | 书本价格相关信息 |
|         |─blankPcount | integer | 白页数 |
|         |─discountPrice | number | 图书价格。目前跟bookPrice冗余了。单位元 |
|         |─bookPrice | number | 图书价格。单位元 |
|         |─bookPriceForFen | integer | 图书价格.单位分 |
|         |─discount | string | 会员折扣率 |
**Response Demo:**
```json
文档字符限制,没有json了。
```