20190630新增 - coupons-management/doc GitHub Wiki
**path: statistic/siteStatistic **
method: POST
**param: **
{"siteId":1}
参数说明:siteId 站点ID
返回json:
{"codeCouponNum":23,"couponNum":35,"dealCouponNum":12,"siteId":0,"storeNum":6,"validCouponNum":35}
path: statistic/storeStatistic
method: POST
**param: **
{"beginTime":1561462892919,"endTime":1561894892919,"range":3,"siteId":1,"spiderId":0}
**参数说明:siteId 如果是网站那边必传, spiderId 爬虫ID, range 时间跨度 1=日,2=周,3=月 **
返回json:
[{"date":"2019-06-25~2019-07-25","num1":0,"num2":1,"num3":3,"num4":3}]
path: showSite/getStoreTempalte
method: GET
**param: **
返回json:
{
"code": 0,
"data": {
"adAddress": null,
"adviseSort": null,
"couponCount": null,
"createTime": null,
"createUser": null,
"des": "{{coupon_count}}\u00A0active\u00A0{{store_name}}\u00A0coupons,\u00A0promo codes\u00A0&\u00A0free shipping W/ {{month}}. Hot Discount code?{{best_coupon_name}}",
"headerDes": null,
"hotSort": null,
"id": null,
"isManual": null,
"keywords": "{{store_name}}, {{store_site}}, {{store_name}} promos, coupon code, discounts, deals",
"logo": null,
"mark": null,
"outId": null,
"showName": "{{store_name}} promo code & deals",
"storeCount": null,
"storeDes": "The last update time of {{store_name}} coupons is {{last_update_date}}, and there are {{coupon_count}} discounts in all. The best offers are : {{best_coupon_name}}. All the promo codes of {{store_name}} are verified officially, so they are safe to use. You can trust COUPONPA.com. It will give you the best discounts and save more money for you by choosing us and using {{store_name}} coupon code.",
"storeId": null,
"title": "{{store_name}} Promos {{month}} : {{best_off}} OFF coupon code & discounts",
"typeId": 0,
"updateTime": null,
"updateUser": null,
"visitCount": null
},
"message": "请求成功",
"success": true
}