feat: rabbitMQ request
This commit is contained in:
parent
a25a912ead
commit
c6cebb0ed2
6 changed files with 125 additions and 1 deletions
|
|
@ -16,6 +16,11 @@ paths:
|
|||
schema:
|
||||
type: boolean
|
||||
default: true
|
||||
- name: ext_search
|
||||
in: query
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- name: word
|
||||
in: query
|
||||
schema:
|
||||
|
|
|
|||
|
|
@ -178,6 +178,7 @@ type GetTitlesParams struct {
|
|||
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
|
||||
Sort *TitleSort `form:"sort,omitempty" json:"sort,omitempty"`
|
||||
SortForward *bool `form:"sort_forward,omitempty" json:"sort_forward,omitempty"`
|
||||
ExtSearch *bool `form:"ext_search,omitempty" json:"ext_search,omitempty"`
|
||||
Word *string `form:"word,omitempty" json:"word,omitempty"`
|
||||
|
||||
// Status List of title statuses to filter
|
||||
|
|
@ -337,6 +338,14 @@ func (siw *ServerInterfaceWrapper) GetTitles(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
// ------------- Optional query parameter "ext_search" -------------
|
||||
|
||||
err = runtime.BindQueryParameter("form", true, false, "ext_search", c.Request.URL.Query(), ¶ms.ExtSearch)
|
||||
if err != nil {
|
||||
siw.ErrorHandler(c, fmt.Errorf("Invalid format for parameter ext_search: %w", err), http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
// ------------- Optional query parameter "word" -------------
|
||||
|
||||
err = runtime.BindQueryParameter("form", true, false, "word", c.Request.URL.Query(), ¶ms.Word)
|
||||
|
|
|
|||
|
|
@ -8,6 +8,11 @@ get:
|
|||
schema:
|
||||
type: boolean
|
||||
default: true
|
||||
- in: query
|
||||
name: ext_search
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- in: query
|
||||
name: word
|
||||
schema:
|
||||
|
|
@ -21,7 +26,6 @@ get:
|
|||
description: List of title statuses to filter
|
||||
style: form
|
||||
explode: false
|
||||
|
||||
- in: query
|
||||
name: rating
|
||||
schema:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue