Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler() *Handler
func (*Handler) CreateUser ¶
func (h *Handler) CreateUser() iris.Handler
Create User @Tags users @Summary Create user @Description Create user @Accept json @Produce json @Param request body docs.UserCreate true "request" @Success 200 {object} v1User.User @Security ApiKeyAuth @Router /users [post]
func (*Handler) DeleteUser ¶
func (h *Handler) DeleteUser() iris.Handler
Delete User @Tags users @Summary Delete user by name @Description Delete user by name @Accept json @Produce json @Param name path string true "用户名称" @Success 200 {object} v1User.User @Security ApiKeyAuth @Router /users/{name} [delete]
func (*Handler) GetUser ¶
func (h *Handler) GetUser() iris.Handler
Get User @Tags users @Summary Get user by name @Description Get user by name @Accept json @Produce json @Param name path string true "用户名称" @Success 200 {object} v1User.User @Security ApiKeyAuth @Router /users/{name} [get]
func (*Handler) GetUsers ¶
func (h *Handler) GetUsers() iris.Handler
List User @Tags users @Summary List all users @Description List all users @Accept json @Produce json @Success 200 {object} []v1User.User @Security ApiKeyAuth @Router /users [get]
func (*Handler) SearchUsers ¶
func (h *Handler) SearchUsers() iris.Handler
Search User @Tags users @Summary Search users @Description Search users by Condition @Accept json @Produce json @Success 200 {object} api.Page @Security ApiKeyAuth @Router /users/search [post]
func (*Handler) UpdateUser ¶
func (h *Handler) UpdateUser() iris.Handler
Update User @Tags users @Summary Update user by name @Description Update user by name @Accept json @Produce json @Param name path string true "用户名称" @Success 200 {object} v1User.User @Security ApiKeyAuth @Router /users/{name} [put]