feat(openai): 新增数据统计相关接口

This commit is contained in:
Fu Diwei
2021-10-08 16:45:58 +08:00
parent ec10df05e6
commit d2ee3c6d92
9 changed files with 248 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
{
"start_date": "2021-08-11",
"end_date": "2021-08-18"
}

View File

@@ -0,0 +1,21 @@
{
"code": 0,
"msg": "请求成功",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5142",
"q_a_count": [
{
"date": "2021-08-11",
"count": 911
},
{
"date": "2021-08-12",
"count": 1316
}
],
"user_count": [
{
"date": "2021-08-11",
"count": 267
}
]
}

View File

@@ -0,0 +1,14 @@
{
"code": 0,
"msg": "请求成功",
"request_id": "255i0ug8-l9q4-3801-44ft-w7csjn9e5140",
"hit_rate": 0.94,
"q_a_count": 985,
"user_count": 280,
"hot_query_list": [ "我想看新闻", "好听的歌", "我想知道今天天气" ],
"miss_rate": 0.06000000000000005,
"new_news_count": 2021,
"new_news_user_count": 605,
"user_growth_rate": 0.16,
"hit_growth_rate": 0.02
}