产品收入
接口地址:/admin/product_income GET
产品收入 -- zhoufei
旧版:统计系统中每一个产品产品组的新订购,续费的收入;
选择产品分组时,将返回产品组名(name);
选择产品名称时,将返回具体的产品名称(name)新版:按产品组所包含产品显示
接口参数
| 参数名字 | 类型 | 是否必须 | 默认值 | 其他 | 说明 |
|---|---|---|---|---|---|
| year | number | 非必填 | 本年数字,如2020 | - | 年份值 |
| month | number | 非必填 | 本月数组,如8月:8 | - | 月份值 |
| search_type | 字符串 | 非必填 | product_group | - | 搜素类型:product_group(产品组)_product_name(产品名) |
| limit | 整型 | 非必填 | 10 | - | 条数 |
| page | 整型 | 非必填 | 1 | - | 页数 |
返回结果
{
"status":200/201/203/204/400/401/406,
"msg":提示信息,
"data":{
"data":[{//统计数据列表
"id":"产品组id/产品id",
"name":"产品组名/产品名",
"total_amount":"总金额",
"new_order_amount":"新订购收入",
"new_order_num":"新订购数量",
"renew_order_amount":"续费收入",
"renew_order_num":"续费数量",
}]
}
}提示:此文档是由系统自动生成,如发现错误或疑问请告知开发人员及时修改