首页面板和预警
mongo
表名:home_page_new_info_log
字段 类型 备注
type int 消息类型
content string 消息内容
create_time Date 消息插入时间
modify_time Date 消息修改时间
station_id string 站点id
group_id string group id
station
/home_page/data_analyse/lasted_orders_count 昨天、今天的订单数据统计
Method: GET
请求
不变
响应
code M
msg M null
data M list[{
yesterday{
order_num M int 今日下单数
place_order_money M str 今日下单金额
customer_price M str 今日客单价
new_customer_num M str 今日新增商户数
order_customer_num M str 今日下单商户
abnormal_count M str 今日异常订单数
abnormal_price M str 今日异常订单金额
},
"today": {
order_num M int 昨日下单数
place_order_money M float 昨日下单金额
customer_price M float 昨日客单价
new_customer_num M float 昨日新增商户数
order_customer_num M float 昨日下单商户
abnormal_count M float 昨日异常订单数
abnormal_price M float 昨日日异常订单金额
}
}
}]
/data_center/profit/daily
Method: GET
请求
start_time M date 开始时间
end_time M date 结束时间
响应
code M
msg M null
data M list[{
date M date 日期
order_price M float 下单金额
outstock_price M float 出库额
account_price M float 销售额(含运费)
account_price_exclude_freight M float 销售额(不含运费)
}]
/data_center/order/static
Method: GET
请求
start_time M date 开始时间
end_time M date 结束时间
响应
code M
msg M null
data M list[{
order_price_top_list M list[{
shop_id M str 店铺ID
shop_name M str 店铺名
order_price M float 下单金额
}]
order_count_top_list M list[{
shop_id M str 店铺ID
shop_name M str 店铺名
order_count M int 下单数量
}]
}]
/data_center/sku/static
Method: GET
请求
start_time M date 开始时间
end_time M date 结束时间
响应
code M
msg M null
data M list[{
category_2_statics_list M list[{ 10个
account_price M float 销售额
account_price_proportion M float 销售额占比率
category1_id M str 一级分类ID
category1_name M str 一级分类名
category2_id M str 二级分类ID
category2_name M str 二级分类名
}]
category_1_statics_list M list[{ 10个
account_price M float 销售额
account_price_proportion M float 销售额占比率
category1_id M str 一级分类ID
category1_name M str 一级分类名
}]
}]
/home_page/data_analyse/ready_bills_count 待处理单据
Method: GET
请求
不变
响应
不变
后台重写统计逻辑
/home_page/warn_info/list 新接口
Method: GET
请求
无
响应
code M
msg M null
data M list[{
type M int 预警类型 1:库存
content M str 内容
}]
/home_page/new_info/list 新接口
Method: GET
请求
q_type M int 消息类型 1:商户注册;2.新品需求
start_time M date 开始时间
end_time M date 结束时间
page_obj O string 起始页(不包含),默认第0页
reverse O bool 是否反向查询。1:是,0:不是。默认为否。
limit O int 返回条数,默认10。传0表示返回所有数据。
响应
code M
msg M null
data M list[{
date_time M datetime 时间
type M int 消息类型 1:商户注册;2.新品需求
content M str 消息内容
}]
pagination M dict
more M bool
page_obj M string 起始页(不包含),默认第0页
bshop
/product/new_merchandise/create 新品需求
Method: GET
请求
不变
响应
不变
插入首页的新品需求消息
Method: GET
请求
不变
响应
不变
插入首页的新商户注册消息
/register 添加报价单
Method: GET
请求
不变
响应
不变
插入首页的新商户注册消息
ma
/custommanage/edit 修改报价单
Method: GET
请求
不变
响应
不变
插入首页的新商户注册消息