feat: enhance superadmin dashboard overview
This commit is contained in:
@@ -167,6 +167,29 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/super/v1/contents/statistics": {
|
||||
"get": {
|
||||
"description": "Content statistics",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Content"
|
||||
],
|
||||
"summary": "Content statistics",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.SuperContentStatisticsResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/super/v1/contents/{id}/review": {
|
||||
"post": {
|
||||
"description": "Review content",
|
||||
@@ -6374,6 +6397,22 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.SuperContentStatisticsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"total_count": {
|
||||
"description": "TotalCount 内容总量。",
|
||||
"type": "integer"
|
||||
},
|
||||
"trend": {
|
||||
"description": "Trend 按天新增内容趋势。",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/dto.SuperContentTrendItem"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.SuperContentTenantLite": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -6391,6 +6430,19 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.SuperContentTrendItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"created_count": {
|
||||
"description": "CreatedCount 当日新增内容数量。",
|
||||
"type": "integer"
|
||||
},
|
||||
"date": {
|
||||
"description": "Date 日期(YYYY-MM-DD)。",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.SuperCouponGrantItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user