mirror of https://gitee.com/answerdev/answer.git
update swagger
This commit is contained in:
parent
fb86b861da
commit
87d71bf290
13
docs/docs.go
13
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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -3976,6 +3976,16 @@ paths:
|
|||
name: type
|
||||
required: true
|
||||
type: string
|
||||
- description: inbox_type
|
||||
enum:
|
||||
- all
|
||||
- posts
|
||||
- invites
|
||||
- votes
|
||||
in: query
|
||||
name: inbox_type
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue