Authored by jack-xue

大数据实时计算 增加店铺页4级转化接口

@@ -1086,3 +1086,143 @@ @@ -1086,3 +1086,143 @@
1086 "message": "SUCCESS" 1086 "message": "SUCCESS"
1087 } 1087 }
1088 1088
  1089 +
  1090 +### 5、店铺页KPI指标值
  1091 +
  1092 +#### 请求参数
  1093 +| Param Name | Param Type | Required | Param Value | Desc |
  1094 +| :-- | --: | --: | --: | --: |
  1095 +| shopId | String | true | 选择店铺 | 店铺页ID|
  1096 +
  1097 +
  1098 +#### 请求方法
  1099 + get http://ap2.yohobuy.com/data-analysis-web/queryShopKpi?shopId=1234
  1100 +#### 响应内容
  1101 + {
  1102 + "alg": "SALT_MD5",
  1103 + "code": 200,
  1104 + "data": {
  1105 + "allKpi":{
  1106 + tKpi:{"totalUv":1236,"detailUv":1000,"shopcarUv":500,"orderUv":100,"payUv":50},
  1107 + yKpi:{"totalUv":2236,"detailUv":2000,"shopcarUv":1500,"orderUv":200,"payUv":150}
  1108 + },
  1109 + "iosKpi":{
  1110 + tKpi:{"totalUv":1236,"detailUv":1000,"shopcarUv":500,"orderUv":100,"payUv":50},
  1111 + yKpi:{"totalUv":2236,"detailUv":2000,"shopcarUv":1500,"orderUv":200,"payUv":150}
  1112 + },
  1113 + "androidKpi":{
  1114 + tKpi:{"totalUv":1236,"detailUv":1000,"shopcarUv":500,"orderUv":100,"payUv":50},
  1115 + yKpi:{"totalUv":2236,"detailUv":2000,"shopcarUv":1500,"orderUv":200,"payUv":150}
  1116 + }
  1117 + },
  1118 + "md5": "c3aa9ca20837f614fd184e849e59c86f",
  1119 + "message": "SUCCESS"
  1120 + }
  1121 +
  1122 +### 6、店铺页KPI指标值趋势
  1123 +
  1124 +#### 请求参数
  1125 +| Param Name | Param Type | Required | Param Value | Desc |
  1126 +| :-- | --: | --: | --: | --: |
  1127 +| shopId | String | true | 选择店铺 | 店铺页ID|
  1128 +| appType | String | true | ios/android/all | 客户端维度|
  1129 +| kpiType | String | true | hour/day | 时间维度|
  1130 +
  1131 +
  1132 +#### 请求方法(最近24小时转化率趋势,有序)
  1133 + get http://ap2.yohobuy.com/data-analysis-web/queryShopKpiTrend?shopId=1234&&appType=ios&&kpiType=hour
  1134 +#### 响应内容
  1135 + {
  1136 + "alg": "SALT_MD5",
  1137 + "code": 200,
  1138 + "data": {
  1139 + "appType":"ios",
  1140 + "kpiType":"hour",
  1141 + "shopId":"1234",
  1142 + "trend":[
  1143 + {
  1144 + "time":"9",
  1145 + "level1Cvr":"90.05",
  1146 + "level2Cvr":"80.05",
  1147 + "level3Cvr":"70.05",
  1148 + "level4Cvr":"60.05"
  1149 + },
  1150 + {
  1151 + "time":"10",
  1152 + "level1Cvr":"90.05",
  1153 + "level2Cvr":"80.05",
  1154 + "level3Cvr":"70.05",
  1155 + "level4Cvr":"60.05"
  1156 + },
  1157 + {
  1158 + "time":"11",
  1159 + "level1Cvr":"90.05",
  1160 + "level2Cvr":"80.05",
  1161 + "level3Cvr":"70.05",
  1162 + "level4Cvr":"60.05"
  1163 + },
  1164 + {
  1165 + "time":"12",
  1166 + "level1Cvr":"90.05",
  1167 + "level2Cvr":"80.05",
  1168 + "level3Cvr":"70.05",
  1169 + "level4Cvr":"60.05"
  1170 + },
  1171 + {一共24条}
  1172 + ]
  1173 + },
  1174 + "md5": "c3aa9ca20837f614fd184e849e59c86f",
  1175 + "message": "SUCCESS"
  1176 + }
  1177 +
  1178 +
  1179 +#### 请求方法(最近30天转化率趋势,有序)
  1180 + get http://ap2.yohobuy.com/data-analysis-web/queryShopKpiTrend?shopId=1234&&appType=ios&&kpiType=day
  1181 +#### 响应内容
  1182 + {
  1183 + "alg": "SALT_MD5",
  1184 + "code": 200,
  1185 + "data": {
  1186 + "appType":"ios",
  1187 + "kpiType":"day",
  1188 + "shopId":"1234",
  1189 + "trend":[
  1190 + {
  1191 + "time":"28",
  1192 + "level1Cvr":"90.05",
  1193 + "level2Cvr":"80.05",
  1194 + "level3Cvr":"70.05",
  1195 + "level4Cvr":"60.05"
  1196 + },
  1197 + {
  1198 + "time":"29",
  1199 + "level1Cvr":"90.05",
  1200 + "level2Cvr":"80.05",
  1201 + "level3Cvr":"70.05",
  1202 + "level4Cvr":"60.05"
  1203 + },
  1204 + {
  1205 + "time":"30",
  1206 + "level1Cvr":"90.05",
  1207 + "level2Cvr":"80.05",
  1208 + "level3Cvr":"70.05",
  1209 + "level4Cvr":"60.05"
  1210 + },
  1211 + {
  1212 + "time":"1",
  1213 + "level1Cvr":"90.05",
  1214 + "level2Cvr":"80.05",
  1215 + "level3Cvr":"70.05",
  1216 + "level4Cvr":"60.05"
  1217 + },
  1218 + {一共30条}
  1219 + ]
  1220 + },
  1221 + "md5": "c3aa9ca20837f614fd184e849e59c86f",
  1222 + "message": "SUCCESS"
  1223 + }
  1224 +
  1225 +
  1226 +
  1227 +
  1228 +