Authored by lijian

积分活动,频道类型查询

  1 +# 积分倍增活动管理
  2 +---------------------
  3 +
  4 +## 新增或是修改积分倍增活动
  5 +
  6 +> 接口名:`/activity/saveActivity`
  7 +### 入参
  8 +
  9 +-------------------------
  10 +|属性名称|类型|例子|说明|
  11 +|--------|----|----|----|
  12 +|id|int|12|活动主键id:修改时非空 |
  13 +|num|int|2|积分倍增数|
  14 +|title|string|积分倍增活动|活动名称|
  15 +|startTime|int|1373022533|活动起始时间|
  16 +|endTime|int|1373022533|活动终止时间|
  17 +|type|int|1|活动类型 1 积分倍增类型|
  18 +---------------------
  19 +
  20 +
  21 +### 返回
  22 +
  23 +``` json
  24 +新增请求样例:
  25 +{
  26 + "title": "积分翻倍",
  27 + "num": 3,
  28 + "startTime": 1373022533,
  29 + "endTime": 1473022533,
  30 + "type": 1
  31 +}
  32 +修改请求样例:
  33 +{
  34 + "status": 1,
  35 + "id": 12
  36 +}
  37 +正常返回:
  38 +{
  39 + "code": 200,
  40 + "data": [],
  41 + "md5": "d751713988987e9331980363e24189ce",
  42 + "message": "修改保存活动信息成功"
  43 +}
  44 +异常返回:
  45 +{
  46 + "code": 405,
  47 + "data": [],
  48 + "md5": "d751713988987e9331980363e24189ce",
  49 + "message": "修改保存活动信息失败"
  50 +}
  51 +```
  52 +## 查询倍增积分活动列表
  53 +> 接口名:`/activity/queryActivityList`
  54 +
  55 +-------------------------
  56 +|属性名称|类型|例子|说明|
  57 +|--------|----|----|----|
  58 +|page|int|2|第几页|
  59 +|size|int|10|每页条数|
  60 +|type|int|1|活动类型 1 积分倍增类型 必传|
  61 +
  62 +---------------------
  63 +
  64 +### 返回
  65 +
  66 +``` json
  67 +请求样例:
  68 +{
  69 + "page": 1,
  70 + "size": 10,
  71 +"type":1
  72 +}
  73 +正常返回:
  74 +{
  75 + "code": 200,
  76 + "data": {
  77 + "list": [
  78 + {
  79 + "addUid": 100,
  80 + "addUserName": "系统",
  81 + "createTime": 1456196740,
  82 + "delFlag": 0,
  83 + "endTime": 1473022533,
  84 + "id": 13,
  85 + "num": 2,
  86 + "startTime": 1373022533,
  87 + "title": "积分翻倍2",
  88 + "type": 1,
  89 + "updateTime": 1456196740,
  90 + "updateUid": 0,
  91 + "updateUserName": ""
  92 + },
  93 + {
  94 + "addUid": 100,
  95 + "addUserName": "系统",
  96 + "createTime": 1456195488,
  97 + "delFlag": 0,
  98 + "endTime": 1456196074,
  99 + "id": 12,
  100 + "num": 3,
  101 + "startTime": 1373022533,
  102 + "title": "积分翻倍",
  103 + "type": 1,
  104 + "updateTime": 1456196074,
  105 + "updateUid": 100,
  106 + "updateUserName": "系统"
  107 + }
  108 + ],
  109 + "page": 1,
  110 + "size": 2,
  111 + "total": 3,
  112 + "totalPage": 2
  113 + },
  114 + "md5": "afdfada2bde8a50b80b0043e00f6ed1c",
  115 + "message": "查询活动信息成功"
  116 +}
  117 +异常返回:
  118 +{
  119 + "code": 405,
  120 + "data": [],
  121 + "md5": "d751713988987e9331980363e24189ce",
  122 + "message": "查询活动信息失败"
  123 +}
  124 +
  125 +```
@@ -759,7 +759,87 @@ @@ -759,7 +759,87 @@
759 返回: 759 返回:
760 同默认搜索词 760 同默认搜索词
761 ``` 761 ```
  762 +## 查询频道列表
  763 +> 接口名: `/salesCategory/queryChannelList`
762 764
  765 +### 入参
  766 +
  767 +-------------------------
  768 +|属性名称|类型|例子|说明|
  769 +|--------|----|----|----|
  770 +|page|int|2|第几页|
  771 +|size|int|50|每页条数|
  772 +|parentId|int|0| 0是最上层父id 默认为0 |
  773 +
  774 +---------------------------
  775 +
  776 +### 返回
  777 +
  778 +```json
  779 +请求
  780 +{
  781 +}
  782 +返回:
  783 +{
  784 + "code": 200,
  785 + "data": [
  786 + {
  787 + "categoryCode": "1,0,0,0",
  788 + "categoryId": 1,
  789 + "categoryName": "男生",
  790 + "createTime": 1441117726,
  791 + "icon": "",
  792 + "levelNumber": 1,
  793 + "orderBy": 0,
  794 + "parentId": 0,
  795 + "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",
  796 + "relationUrl": "",
  797 + "state": 1
  798 + },
  799 + {
  800 + "categoryCode": "2,0,0,0",
  801 + "categoryId": 2,
  802 + "categoryName": "女生",
  803 + "createTime": 1441117737,
  804 + "icon": "",
  805 + "levelNumber": 1,
  806 + "orderBy": 0,
  807 + "parentId": 0,
  808 + "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",
  809 + "relationUrl": "",
  810 + "state": 1
  811 + },
  812 + {
  813 + "categoryCode": "3,0,0,0",
  814 + "categoryId": 3,
  815 + "categoryName": "潮童",
  816 + "createTime": 1441117746,
  817 + "icon": "",
  818 + "levelNumber": 1,
  819 + "orderBy": 0,
  820 + "parentId": 0,
  821 + "relationParameter": "407,405,403,397,374,389,385,377,381,378,379,383,393,395,376,375,373,431,433,449",
  822 + "relationUrl": "",
  823 + "state": 1
  824 + },
  825 + {
  826 + "categoryCode": "4,0,0,0",
  827 + "categoryId": 4,
  828 + "categoryName": "创意家居",
  829 + "createTime": 1441117756,
  830 + "icon": "",
  831 + "levelNumber": 1,
  832 + "orderBy": 0,
  833 + "parentId": 0,
  834 + "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",
  835 + "relationUrl": "",
  836 + "state": 1
  837 + }
  838 + ],
  839 + "md5": "c9e7bedc3718040c3274fd40ea1140f2",
  840 + "message": "查询频道分类列表列表"
  841 +}
  842 +```
763 843
764 844
765 845