v1

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetUserInfoReq

type GetUserInfoReq struct {
	g.Meta `path:"/user/getInfo" method:"get" tags:"个人信息" summary:"获取个人信息"`
}

type GetUserInfoRes

type GetUserInfoRes struct {
	g.Meta          `mime:"application/json"`
	*model.UserInfo `json:"userInfo"`
}

type PutPasswordReq

type PutPasswordReq struct {
	g.Meta `path:"/user/password" method:"put" tags:"个人信息" summary:"修改密码"`
	OldPwd string `v:"required|length:6,20#user.profile.valid.OldPwdRequired|user.profile.valid.OldPwdLength" json:"oldPwd"`
	NewPwd string `` /* 148-byte string literal not displayed */
}

type PutPasswordRes

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

type PutProfileReq

type PutProfileReq struct {
	g.Meta   `path:"/user/profile" method:"put" tags:"个人信息" summary:"修改个人信息"`
	Nickname string `v:"required|length:2,12#user.profile.valid.NicknameRequired|user.profile.valid.NicknameLength" json:"nickname"`
	Sex      int    `v:"required#user.profile.valid.SexRequired" json:"sex"`
}

type PutProfileRes

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

Jump to

Keyboard shortcuts

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