fix:授权趋势查询接口swag文档缺少请求字段更新

This commit is contained in:
wood911010 committed 2025-09-23 16:10:50 +08:00
1 parent 795458f6d8
commit e9ffbc4827
4 files changed
+17

No files matched your search

+6
View File
@@ -1481,6 +1481,12 @@ const docTemplate = `{
"description": "结束日期(YYYY-MM-DD格式,当type为custom时必填)",
"name": "end_date",
"in": "query"
},
{
"type": "string",
"description": "时区(如:Asia/Shanghai,UTC等,默认使用服务器本地时区)",
"name": "timezone",
"in": "query"
}
],
"responses": {
+6
View File
@@ -1478,6 +1478,12 @@
"description": "结束日期(YYYY-MM-DD格式,当type为custom时必填)",
"name": "end_date",
"in": "query"
},
{
"type": "string",
"description": "时区(如:Asia/Shanghai,UTC等,默认使用服务器本地时区)",
"name": "timezone",
"in": "query"
}
],
"responses": {
+4
View File
@@ -1861,6 +1861,10 @@ paths:
in: query
name: end_date
type: string
- description: 时区(如:Asia/Shanghai,UTC等,默认使用服务器本地时区)
in: query
name: timezone
type: string
produces:
- application/json
responses:
@@ -33,6 +33,7 @@ func NewDashboardHandler(dashboardService service.DashboardService) *DashboardHa
// @Param type query string true "时间类型" Enums(week,month,custom)
// @Param start_date query string false "开始日期(YYYY-MM-DD格式,当type为custom时必填)"
// @Param end_date query string false "结束日期(YYYY-MM-DD格式,当type为custom时必填)"
// @Param timezone query string false "时区(如:Asia/Shanghai,UTC等,默认使用服务器本地时区)"
// @Success 200 {object} models.APIResponse{data=models.DashboardAuthorizationTrendResponse} "授权趋势数据"
// @Failure 400 {object} models.ErrorResponse "请求参数错误"
// @Failure 401 {object} models.ErrorResponse "未认证"