feat: 数据分析
This commit is contained in:
+256
@@ -1487,6 +1487,262 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/radio/analytics/business-conversion": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"数据分析"
|
||||
],
|
||||
"summary": "获取商业转化分析 (Funnel \u0026 LTV)",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "开始日期",
|
||||
"name": "startDate",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "结束日期",
|
||||
"name": "endDate",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/response.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/radio/analytics/content-quality": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"数据分析"
|
||||
],
|
||||
"summary": "获取内容质量分析(完播率等)",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "频道ID",
|
||||
"name": "channelId",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/response.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/radio/analytics/listening-trend": {
|
||||
"get": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"数据分析"
|
||||
],
|
||||
"summary": "获取收听趋势(折线图)",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "开始日期 2026-01-01",
|
||||
"name": "startDate",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "结束日期 2026-03-10",
|
||||
"name": "endDate",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "频道ID(可选筛选)",
|
||||
"name": "channelId",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/response.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/radio/analytics/preference": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"数据分析"
|
||||
],
|
||||
"summary": "获取品类偏好分析",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/response.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/radio/analytics/renewal-trend": {
|
||||
"get": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"数据分析"
|
||||
],
|
||||
"summary": "获取续费趋势(折线图)",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "开始日期",
|
||||
"name": "startDate",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "结束日期",
|
||||
"name": "endDate",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "频道ID",
|
||||
"name": "channelId",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/response.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/radio/analytics/subscriber-stats": {
|
||||
"get": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"数据分析"
|
||||
],
|
||||
"summary": "获取订阅用户统计(折线图 + 概览)",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "开始日期",
|
||||
"name": "startDate",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "结束日期",
|
||||
"name": "endDate",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "频道ID",
|
||||
"name": "channelId",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/response.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/radio/analytics/subscription-trend": {
|
||||
"get": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"数据分析"
|
||||
],
|
||||
"summary": "获取订阅趋势(折线图)",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "开始日期",
|
||||
"name": "startDate",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "结束日期",
|
||||
"name": "endDate",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "频道ID",
|
||||
"name": "channelId",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/response.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/radio/analytics/user-stickiness": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"数据分析"
|
||||
],
|
||||
"summary": "获取用户留存分析 (Cohort)",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "开始日期",
|
||||
"name": "startDate",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "结束日期",
|
||||
"name": "endDate",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/response.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/radio/category/delete": {
|
||||
"post": {
|
||||
"produces": [
|
||||
|
||||
Reference in New Issue
Block a user