organization

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRequest

type CreateRequest struct {
	Name    string `json:"name" validate:"required"`
	Email   string `json:"email" validate:"required,email"`
	Pass    string `json:"pass" validate:"required"`
	Confirm string `json:"confirm" validate:"eqfield=Pass"`
	Manager bool   `json:"manager"`
}

type UpdateRequest

type UpdateRequest struct {
	Name    string `json:"name" validate:"required"`
	Email   string `json:"email" validate:"required,email"`
	Manager bool   `json:"manager"`
}

type UserController

type UserController struct {
	Service services.UserService
}

func (*UserController) DeleteBy

func (instance *UserController) DeleteBy(id string) mvc.Response

删除用户

func (*UserController) Get

func (instance *UserController) Get(ctx iris.Context) mvc.Response

获取用户列表

func (*UserController) Post

func (instance *UserController) Post(ctx iris.Context) mvc.Response

创建用户

func (*UserController) PutBy

func (instance *UserController) PutBy(id string, ctx iris.Context) mvc.Response

修改用户信息

Jump to

Keyboard shortcuts

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