45 lines
698 B
Plaintext
45 lines
698 B
Plaintext
路由: /api/v1/worker/add_count_info # 添加一条统计数据接口
|
|
|
|
参数: # 无
|
|
{}
|
|
|
|
|
|
返回值1:
|
|
{
|
|
"code": 200,
|
|
"msg": "ok",
|
|
"data": null
|
|
}
|
|
|
|
返回值2:
|
|
{
|
|
"code": -10,
|
|
"msg": "本月数据已添加",
|
|
"data": null
|
|
}
|
|
|
|
|
|
|
|
路由: /api/v1/worker/find_count_info # 查询统计数据接口
|
|
|
|
参数: # 无
|
|
{}
|
|
|
|
|
|
返回值:
|
|
{
|
|
"code": 200,
|
|
"msg": "ok",
|
|
"data": [
|
|
{
|
|
"2017": 1, # 入职年份对应人数
|
|
"2021": 3, # 入职年份对应人数
|
|
"count_id": "2022-07" # 统计日期 年月
|
|
},
|
|
{
|
|
"2017": 1,
|
|
"2021": 3,
|
|
"count_id": "2022-06"
|
|
}
|
|
]
|
|
} |