Sort messages by creation time
This commit is contained in:
parent
78d47c4035
commit
4ac7e29909
4 changed files with 37 additions and 6 deletions
|
|
@ -19,12 +19,6 @@ import (
|
|||
|
||||
var decoder = schema.NewDecoder()
|
||||
|
||||
type queryParams struct {
|
||||
Limit *int `schema:"limit"`
|
||||
Sort *string `schema:"sort"`
|
||||
Type *string `schema:"type"`
|
||||
}
|
||||
|
||||
type handlerFunctionGet[T any] func(context.Context, *http.Request, *models.Organization, *models.User, queryParams) (*T, *nhttp.ErrorWithStatus)
|
||||
type wrappedHandler func(http.ResponseWriter, *http.Request)
|
||||
type contentAuthenticated[T any] struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue