Documentation ¶
Index ¶
- func Delete(log *slog.Logger, d Deleter) func(w http.ResponseWriter, r *http.Request)
- func Get(log *slog.Logger, g Getter) func(w http.ResponseWriter, r *http.Request)
- func Post(log *slog.Logger, c Creater) func(w http.ResponseWriter, r *http.Request)
- func Update(log *slog.Logger, u Updater) func(w http.ResponseWriter, r *http.Request)
- type Creater
- type DeleteResp
- type Deleter
- type GetResp
- type Getter
- type PostResp
- type Provider
- type UpdateResp
- type Updater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
Delete @Summary Delete User @Tags user @Security ApiKeyAuth @Description Delete User from system @Accept json @Produce json @Param input body Request true "user id" @Success 200 {object} Response @Router /api/v1/user [delete]
func Get ¶
Get @Summary Get User @Tags user @Security ApiKeyAuth @Description Get User from system @Accept json @Produce json @Param input body Request true "user id" @Success 200 {object} Response @Router /api/v1/user/{id} [get]
func Post ¶
Post @Summary Post User @Tags user @Security ApiKeyAuth @Description Create user at system @Accept json @Produce json @Param input body Request true "user info" @Success 200 {object} Response @Router /api/v1/user [post]