A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
update swagger
aichy12687d71bf290e8
diff --git a/docs/docs.go b/docs/docs.goindex 4a90dfff..2c3d72ea 100644--- a/docs/docs.go+++ b/docs/docs.go@@ -2841,6 +2841,19 @@ const docTemplate = `{"name": "type","in": "query","required": true+ },+ {+ "enum": [+ "all",+ "posts",+ "invites",+ "votes"+ ],+ "type": "string",+ "description": "inbox_type",+ "name": "inbox_type",+ "in": "query",+ "required": true}],"responses": {diff --git a/docs/swagger.json b/docs/swagger.jsonindex dac3816e..a9cb60df 100644--- a/docs/swagger.json+++ b/docs/swagger.json@@ -2829,6 +2829,19 @@"name": "type","in": "query","required": true+ },+ {+ "enum": [+ "all",+ "posts",+ "invites",+ "votes"+ ],+ "type": "string",+ "description": "inbox_type",+ "name": "inbox_type",+ "in": "query",+ "required": true}],"responses": {diff --git a/docs/swagger.yaml b/docs/swagger.yamlindex 7abf1b22..7216dfd2 100644--- a/docs/swagger.yaml+++ b/docs/swagger.yaml@@ -3976,6 +3976,16 @@ paths:name: typerequired: truetype: string+ - description: inbox_type+ enum:+ - all+ - posts+ - invites+ - votes+ in: query+ name: inbox_type+ required: true+ type: stringproduces:- application/jsonresponses:diff --git a/internal/controller/notification_controller.go b/internal/controller/notification_controller.goindex f5b88238..7206fead 100644--- a/internal/controller/notification_controller.go+++ b/internal/controller/notification_controller.go@@ -143,6 +143,7 @@ func (nc *NotificationController) ClearIDUnRead(ctx *gin.Context) {// @Param page query int false "page size"// @Param page_size query int false "page size"// @Param type query string true "type" Enums(inbox,achievement)+// @Param inbox_type query string true "inbox_type" Enums(all,posts,invites,votes)// @Success 200 {object} handler.RespBody// @Router /answer/api/v1/notification/page [get]func (nc *NotificationController) GetList(ctx *gin.Context) {