manager

package
v0.0.0-...-997d260 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteReq

type DeleteReq struct {
	g.Meta `path:"/delete" method:"post"`
	Id     uint `json:"id" example:"id"`
}

type GetReq

type GetReq struct {
	g.Meta `path:"/get" method:"post"`
	Id     uint `json:"id" example:"id"`
}

type GetRes

type GetRes struct {
	model.User
}

type RegisterReq

type RegisterReq struct {
	g.Meta   `path:"/register" method:"post"`
	Avatar   string `json:"avatar"`
	Username string `json:"username"`
	Password string `json:"password"`
	NickName string `json:"nickName"`
}

type RegisterRes

type RegisterRes struct {
	Id uint
}

type ResetPasswordReq

type ResetPasswordReq struct {
	g.Meta      `path:"/resetPassword" method:"post"`
	Id          uint   `json:"id" example:"id"`
	NewPassword string `json:"newPassword" example:"新密码"`
}

type UpdateReq

type UpdateReq struct {
	g.Meta   `path:"/update" method:"post"`
	Avatar   string `json:"avatar" example:"用户头像"`
	NickName string `json:"nickName" example:"用户昵称"`
}

type UserController

type UserController struct {
	g.Meta `path:"/user"`
}

func (UserController) Add

func (UserController) Delete

func (UserController) Delete(ctx context.Context, req *DeleteReq) (*res.BlankRes, error)

func (UserController) Get

func (UserController) Get(ctx context.Context, req *GetReq) (res *GetRes, err error)

func (UserController) ResetPassword

func (UserController) ResetPassword(ctx context.Context, req *ResetPasswordReq) (*res.BlankRes, error)

func (UserController) Update

func (UserController) Update(ctx context.Context, req *UpdateReq) (*res.BlankRes, error)

Jump to

Keyboard shortcuts

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