Authored by lijian

拍摄要求

# 拍摄要求管理
---------------------
## 查询拍摄要求(api接口)
> 接口名:`shootRequire/queryShootRequireForApi`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|status|int|1| 1 可用 0不可用 可不传 |
---------------------
### 返回
``` json
请求样例:
{
"status": "1"
}
正常返回:
{
"code": 200,
"data": [
{
"id": 29,
"name": "黑白",
"status": 1,
"type": 5,
"typeName": "滤镜效果"
},
{
"id": 30,
"name": "运动",
"status": 1,
"type": 6,
"typeName": "摄影场景"
},
{
"id": 31,
"name": "职场",
"status": 1,
"type": 6,
"typeName": "摄影场景"
},
{
"id": 32,
"name": "特殊合作款",
"status": 1,
"type": 1,
"typeName": "拍摄类型"
},
{
"id": 54,
"name": "ssss",
"status": 1,
"type": 43
}
],
"md5": "742abb1d79cc60504af21f1c76ec49ce",
"message": "拍摄要求API接口列表"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": ""
}
```
## 查询拍摄要求接口列表 (前台页面调用)
> 接口名:`shootRequire/queryShootRequireList`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|status|int|1| 1 可用 0不可用 可不传 |
---------------------
### 返回
``` json
请求样例:
{
"status": "1"
}
正常返回:
{
"code": 200,
"data": [
{
"createTime": 1451271144,
"founder": 2802,
"founderName": "",
"id": 29,
"name": "黑白",
"status": 1,
"type": 5,
"updateTime": 0,
"updateUid": 0,
"updateUserName": ""
},
{
"createTime": 1451271261,
"founder": 2802,
"founderName": "",
"id": 39,
"name": "项链",
"status": 1,
"type": 4,
"updateTime": 0,
"updateUid": 0,
"updateUserName": ""
},
{
"createTime": 1451468144,
"founder": 2802,
"founderName": "",
"id": 44,
"name": "货品上架",
"status": 1,
"type": 1,
"updateTime": 0,
"updateUid": 0,
"updateUserName": ""
}
],
"md5": "bb81e28bd21330994cc6cb47eea39af0",
"message": "拍摄要求列表"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": ""
}
```
## 新增,修改 拍摄要求
> 接口名:`shootRequire/saveShootRequire`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|status|int|1| 1 可用 0不可用 |
|id|int|21|主键id 修改必传 新增不传|
|name|string|1|名称|
|type|int|1|'1 拍摄类型 2 拍摄风格 3 模特类型 4道具类型 5滤镜效果 6摄影场景'|
---------------------
### 返回
``` json
请求样例: 修改
{
"id":22,
"name":"2w3234",
"status":1,
"type":2
}
请求样例: 新增
{
"name":"2w3234",
"status":1,
"type":2
}
返回
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "新增拍摄要求信息成功"
}
```
... ...