# Functions
@Summary Create a new user @Description Create a new user with the provided information @Tags user @Accept json @Produce json @Param user body request.User true "User information" @Success 201 {object} interface{} @Failure 400 {object} response.restResponseError "Invalid request body or validation errors" @Failure 500 {object} response.restResponseError "Internal server error" @Router / [post] @Security BearerAuth.
@Summary List all users @Description Get a list of users with pagination @Tags user @Accept json @Produce json @Param page query int false "Page number" @Param size query int false "Size per page" @Param sortBy query string false "Sort by field" @Param sortOrder query string false "Sort order (asc or desc)" @Success 200 {object} response.RestResponsePagination[model.User] "Paginated list of users" @Failure 400 {object} response.restResponseError "Invalid query parameters" @Failure 500 {object} response.restResponseError "Internal server error" @Router / [get] @Security BearerAuth.
@Summary Find a user by ID @Description Get user details by ID @Tags user @Accept json @Produce json @Param id path int true "User ID" @Success 200 {object} model.User @Failure 400 {object} response.restResponseError "Invalid ID" @Failure 404 {object} response.restResponseError "Internal Error" @Router /{id} [get] @Security BearerAuth.
@Summary Login user @Description Login a user and return a JWT token @Tags user @Accept json @Produce json @Param user body request.LoginUser true "Username and password" @Success 201 {object} interface{} @Failure 400 {object} response.restResponseError "Invalid request body or validation errors" @Failure 500 {object} response.restResponseError "Internal server error" @Router /login [post] @Security BearerAuth.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author