feat: rabbitMQ request
This commit is contained in:
parent
a25a912ead
commit
c6cebb0ed2
6 changed files with 125 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue