v1

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeAvatarReq

type ChangeAvatarReq struct {
	g.Meta `path:"/change/avatar" role:"user,admin" tags:"user" method:"post" summary:"用户更改头像接口"`
	File   *ghttp.UploadFile `json:"file" type:"file"`
}

用户更改头像接口请求参数

type ChangeAvatarRes

type ChangeAvatarRes struct {
	g.Meta `mime:"application/json" example:"json"`
}

用户更改头像接口响应参数

type ChangeEmailReq

type ChangeEmailReq struct {
	g.Meta `path:"/change/email" role:"user,admin" tags:"user" method:"post" summary:"用户修改邮箱接口"`
	model.UserChangeEmailReq
}

用户修改邮箱接口请求参数

type ChangeEmailRes

type ChangeEmailRes struct {
	g.Meta `mime:"application/json" example:"json"`
}

用户修改邮箱接口响应参数

type ChangePasswordReq

type ChangePasswordReq struct {
	g.Meta `path:"/change/password" role:"user,admin" tags:"user" method:"post" summary:"用户修改密码接口"`
	model.UserChangePasswordReq
}

用户修改密码接口请求参数

type ChangePasswordRes

type ChangePasswordRes struct {
	g.Meta `mime:"application/json" example:"json"`
}

用户修改密码接口响应参数

type InfoReq

type InfoReq struct {
	g.Meta `path:"/info" role:"user,admin" tags:"user" method:"get" summary:"用户信息接口"`
}

用户信息接口请求参数

type InfoRes

type InfoRes struct {
	g.Meta `mime:"application/json" example:"json"`
	*model.UserInfoRes
}

用户信息接口响应参数

type UpdateInfoReq

type UpdateInfoReq struct {
	g.Meta `path:"/update/info" role:"user,admin" tags:"user" method:"post" summary:"用户更新信息接口"`
	model.UserUpdateInfoReq
}

用户更新信息接口请求参数

type UpdateInfoRes

type UpdateInfoRes struct {
	g.Meta `mime:"application/json" example:"json"`
}

用户更新信息接口响应参数

Jump to

Keyboard shortcuts

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