Authored by lijian

积分活动,频道类型查询

# 积分倍增活动管理
---------------------
## 新增或是修改积分倍增活动
> 接口名:`/activity/saveActivity`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|12|活动主键id:修改时非空 |
|num|int|2|积分倍增数|
|title|string|积分倍增活动|活动名称|
|startTime|int|1373022533|活动起始时间|
|endTime|int|1373022533|活动终止时间|
|type|int|1|活动类型 1 积分倍增类型|
---------------------
### 返回
``` json
新增请求样例:
{
"title": "积分翻倍",
"num": 3,
"startTime": 1373022533,
"endTime": 1473022533,
"type": 1
}
修改请求样例:
{
"status": 1,
"id": 12
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "修改保存活动信息成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "修改保存活动信息失败"
}
```
## 查询倍增积分活动列表
> 接口名:`/activity/queryActivityList`
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|10|每页条数|
|type|int|1|活动类型 1 积分倍增类型 必传|
---------------------
### 返回
``` json
请求样例:
{
"page": 1,
"size": 10,
"type":1
}
正常返回:
{
"code": 200,
"data": {
"list": [
{
"addUid": 100,
"addUserName": "系统",
"createTime": 1456196740,
"delFlag": 0,
"endTime": 1473022533,
"id": 13,
"num": 2,
"startTime": 1373022533,
"title": "积分翻倍2",
"type": 1,
"updateTime": 1456196740,
"updateUid": 0,
"updateUserName": ""
},
{
"addUid": 100,
"addUserName": "系统",
"createTime": 1456195488,
"delFlag": 0,
"endTime": 1456196074,
"id": 12,
"num": 3,
"startTime": 1373022533,
"title": "积分翻倍",
"type": 1,
"updateTime": 1456196074,
"updateUid": 100,
"updateUserName": "系统"
}
],
"page": 1,
"size": 2,
"total": 3,
"totalPage": 2
},
"md5": "afdfada2bde8a50b80b0043e00f6ed1c",
"message": "查询活动信息成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "查询活动信息失败"
}
```
\ No newline at end of file
... ...
... ... @@ -759,7 +759,87 @@
返回:
同默认搜索词
```
## 查询频道列表
> 接口名: `/salesCategory/queryChannelList`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|50|每页条数|
|parentId|int|0| 0是最上层父id 默认为0 |
---------------------------
### 返回
```json
请求
{
}
返回:
{
"code": 200,
"data": [
{
"categoryCode": "1,0,0,0",
"categoryId": 1,
"categoryName": "男生",
"createTime": 1441117726,
"icon": "",
"levelNumber": 1,
"orderBy": 0,
"parentId": 0,
"relationParameter": "114,293,116,117,115,119,124,122,131,129,346,133,348,147,149,148,151,231,152,153,196,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,186,235,163,224,322,323,324,325,326,327,328,329,330,331,72,74,75,76,142,77,78,79,80,199,213,217,218,234,303,305,306,307,334,162,316,164,317,295,321,311,357,359,320,195,197,413,130,258,173,227,125,118,121,123,263,260,264,261,352",
"relationUrl": "",
"state": 1
},
{
"categoryCode": "2,0,0,0",
"categoryId": 2,
"categoryName": "女生",
"createTime": 1441117737,
"icon": "",
"levelNumber": 1,
"orderBy": 0,
"parentId": 0,
"relationParameter": "227,173,125,258,121,123,119,124,118,348,122,115,117,346,114,293,131,133,186,235,163,224,322,323,324,325,326,327,328,329,330,331,72,74,75,76,142,77,78,79,80,199,213,217,218,234,303,305,306,307,334,162,316,320,164,317,295,321,147,149,148,151,231,311,364,357,359,116,129,134,135,413,152,153,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,195,196,197,263",
"relationUrl": "",
"state": 1
},
{
"categoryCode": "3,0,0,0",
"categoryId": 3,
"categoryName": "潮童",
"createTime": 1441117746,
"icon": "",
"levelNumber": 1,
"orderBy": 0,
"parentId": 0,
"relationParameter": "407,405,403,397,374,389,385,377,381,378,379,383,393,395,376,375,373,431,433,449",
"relationUrl": "",
"state": 1
},
{
"categoryCode": "4,0,0,0",
"categoryId": 4,
"categoryName": "创意家居",
"createTime": 1441117756,
"icon": "",
"levelNumber": 1,
"orderBy": 0,
"parentId": 0,
"relationParameter": "285,113,171,185,200,211,212,216,313,398,267,268,269,270,271,272,273,274,275,276,277,332,333,353,281,282,283,284,292,304,110,111,112,184,260,261,262,263,264,265,352,355,302,343,344,399",
"relationUrl": "",
"state": 1
}
],
"md5": "c9e7bedc3718040c3274fd40ea1140f2",
"message": "查询频道分类列表列表"
}
```
... ...