user

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(parent iris.Party)

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]

type User

type User struct {
	v1User.User
	Roles       []string `json:"roles"`
	OldPassword string   `json:"oldPassword"`
	Password    string   `json:"password"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL