mirror of
https://github.com/knadh/listmonk.git
synced 2025-09-16 19:34:51 +08:00
Add new search
param to paginated API response structure.
This commit is contained in:
parent
29591c188a
commit
75aad8ec88
2 changed files with 2 additions and 0 deletions
|
@ -110,6 +110,7 @@ func (a *App) QuerySubscribers(c echo.Context) error {
|
|||
|
||||
out := models.PageResults{
|
||||
Query: query,
|
||||
Search: searchStr,
|
||||
Results: res,
|
||||
Total: total,
|
||||
Page: pg.Page,
|
||||
|
|
|
@ -123,6 +123,7 @@ var regTplFuncs = []regTplFunc{
|
|||
type PageResults struct {
|
||||
Results any `json:"results"`
|
||||
|
||||
Search string `json:"search"`
|
||||
Query string `json:"query"`
|
||||
Total int `json:"total"`
|
||||
PerPage int `json:"per_page"`
|
||||
|
|
Loading…
Add table
Reference in a new issue