Authored by liqingzhong

Merge branch 'develop' of http://git.dev.yoho.cn/platform/yohobuy-doc into develop

## 1.数据库(yhb_operations)
### 1.1 帮助分类(yhb_operations.help_category)
#### sql 脚本
```sql
CREATE TABLE `help_category` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`category_name` varchar(50) DEFAULT NULL,
`parent_id` smallint(5) unsigned NOT NULL DEFAULT '0',
`platform` varchar(50) NOT NULL COMMENT 'iphone ios手机\n android 安卓手机 \n ipad ios平板 \n androidpad 安卓平板 \n h5 手机网站 \n web pc网站',
`create_time` int(10) unsigned NOT NULL DEFAULT '0',
`update_time` int(10) unsigned NOT NULL DEFAULT '0',
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1、正常 2、已删除',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=utf8;
```
#### 说明:增加标识字段status 1 表示正常记录 2 表示已删除记录
\ No newline at end of file
... ...
## 1.数据库(yhb_operations)
### 1.1 帮助内容(yhb_operations.help_content)
#### sql 脚本
```sql
CREATE TABLE `help_content` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) DEFAULT NULL,
`category_id` smallint(5) unsigned NOT NULL DEFAULT '0',
`content` text,
`platform` varchar(50) DEFAULT NULL,
`create_time` int(10) unsigned NOT NULL DEFAULT '0',
`update_time` int(10) unsigned NOT NULL DEFAULT '0',
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1、正常 2、已删除',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8;
```
#### 说明:增加标识字段status 1 表示正常记录 2 表示已删除记录
\ No newline at end of file
... ...
# 查询热销搜索词
> 接口名: `/searchWords/queryHotSearchTerms`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|page|number|1|当前页|默认1|
|size|number|20|条数|默认10|
---------------------
### 返回 (只关注content字段)
``` json
{
"code": 200,
"data": {
"list": [
{
"channelIds": "1,2",
"content": "hhhgg",
"creatorUid": 0,
"creatorUsrname": "wxtest1",
"id": 123,
"modifyUid": 0,
"modifyUsrname": "wxtest1",
"status": 2,
"type": 1,
"url": "hhh"
},
{
"channelIds": "1,2,3,4",
"content": "aaaa",
"creatorUid": 0,
"creatorUsrname": "wxtest1",
"id": 122,
"status": 2,
"type": 1,
"url": "aaaaa"
}
],
"page": 1,
"size": 2,
"total": 18,
"totalPage": 9
},
"md5": "3ead7bfd94211a4352e0edfb9d5afbf8",
"message": "查询搜索词列表"
}
```
\ No newline at end of file
... ...
... ... @@ -450,8 +450,9 @@
> 接口名: '/product/batchUpdateProductPrice'
### 入参 例子:[{"product_skn": 50000060, "sales_price" :211.22, "vip_discount_type":1, "founder":9278, "return_coin":88, "vip_price":99},
{"product_skn": 50000063, "sales_price" :211.22, "vip_discount_type":1, "founder":9278, "return_coin":88, "vip_price":99}]
### 入参 例子:
{"data" : [{"product_skn": 50000060, "sales_price" :211.22, "vip_discount_type":1, "founder":9278, "return_coin":88, "vip_price":99},
{"product_skn": 50000063, "sales_price" :211.22, "vip_discount_type":1, "founder":9278, "return_coin":88, "vip_price":99}]}
-------------------------
|属性名称|类型|例子|说明|
... ...
... ... @@ -6,7 +6,7 @@ CREATE TABLE `shops_admin` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`shops_id` int(11) unsigned NOT NULL,
`admin_pid` int(11) unsigned NOT NULL,
`identity` tinyint(3) unsigned DEFAULT '1' COMMENT '1、店长 2、供应商 3、店员',
`identity` tinyint(3) unsigned DEFAULT '1' COMMENT '1、品牌公司 2、品牌经销商3、品牌代运营商4、有货品牌经理 5、有货店铺运营6、有货商品运营7、有货平台运营',
`create_time` int(10) unsigned NOT NULL DEFAULT '0',
`update_time` int(10) unsigned NOT NULL DEFAULT '0',
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1、正常 2、已删除',
... ...
... ... @@ -231,3 +231,124 @@
|platform |是 |string |APP |平台名称 |
|templateName|是 |string |BASE |模板名称 |
|resources |是 |json | |资源 |
## 查询店铺装修待审核信息
> POST `/ShopsDecoratorRest/findAuditShopsDecorator`
### 入参
```json
{
"shopsId":21,
"brandId":0,
"checkStatus":200,
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|shopsId |是 |int |21 |店铺编号 |
|brandId |是 |int |0 |品牌编号 |
|checkStatus |否 |int |200 |店铺装修审核状态 |
### 返回
```json
{
"code": 200,
"data":
{
"list":
[
{
"brands":
[
{
"brandDomain": "qianjun",
"brandName": "钱军1",
"brandNameCn": "",
"brandNameEn": "qianjun",
"id": 1470,
"status": 1
}
],
"checkStatus": 200,
"createTime": 1445909754,
"id": 1,
"shopsId": 21,
"shopsName": "jnby by JNBY",
"status": 0,
"updateTime": 1456128116
},
{
"brands":
[
{
"brandDomain": "qianjun",
"brandName": "钱军1",
"brandNameCn": "",
"brandNameEn": "qianjun",
"id": 1470,
"status": 1
}
],
"checkStatus": 100,
"createTime": 1445909754,
"id": 2,
"shopsId": 21,
"shopsName": "jnby by JNBY",
"status": 0,
"updateTime": 1456128116
},
{
"brands":
[
{
"brandDomain": "qianjun",
"brandName": "钱军1",
"brandNameCn": "",
"brandNameEn": "qianjun",
"id": 1470,
"status": 1
}
],
"checkStatus": 200,
"createTime": 1445909754,
"id": 3,
"shopsId": 21,
"shopsName": "jnby by JNBY",
"status": 0,
"updateTime": 1456128116
}
],
"page": 1,
"size": 10,
"total": 3,
"totalPage": 1
},
"message": "操作成功"
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|id |是 |int |3 |店铺装修编号 |
|shopsId |是 |int |21 |shopsId |
|shopsName |是 |string |jnby by JNBY |店铺名称 |
|status |是 |int |0 |店铺装修状态 |
|checkStatus |是 |int |200 |店铺装修审核状态 |
|createTime |是 |int |1445909754 |店铺装修创建时间 |
|updateTime |是 |int |1456128116 |店铺装修更新时间 |
|brands |否 |json | |品牌信息 |
|id |否 |int |517 |品牌编号 |
|brandName |否 |string |T.U.K |品牌名称 |
|brandNameCn |否 |string | |品牌中文名称 |
|brandNameEn |否 |string |T.U.K |品牌英文名称 |
|status |否 |int |1 |品牌开启状态 |
|brandDomain |否 |string |T.U.K |品牌主域名 |
\ No newline at end of file
... ...