mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
activity: basic query support
only supports queries of fields actually in Activity. The web UI only directly queries two of these, ID and Time (mistakenly referneced as date in the web ui previously). Later commits will come up with creative ways of dealing with all the other query types.
This commit is contained in:
@@ -936,14 +936,14 @@ func (app *appContext) GetUsers(gc *gin.Context) {
|
||||
|
||||
// @Summary Get a paginated, searchable list of Jellyfin users.
|
||||
// @Produce json
|
||||
// @Param getUsersReqDTO body getUsersReqDTO true "search / pagination parameters"
|
||||
// @Param ServerSearchReqDTO body ServerSearchReqDTO true "search / pagination parameters"
|
||||
// @Success 200 {object} getUsersDTO
|
||||
// @Failure 500 {object} stringResponse
|
||||
// @Router /users [post]
|
||||
// @Security Bearer
|
||||
// @tags Users
|
||||
func (app *appContext) SearchUsers(gc *gin.Context) {
|
||||
req := getUsersReqDTO{}
|
||||
req := ServerSearchReqDTO{}
|
||||
gc.BindJSON(&req)
|
||||
if req.SortByField == "" {
|
||||
req.SortByField = USER_DEFAULT_SORT_FIELD
|
||||
|
||||
Reference in New Issue
Block a user