request

package
v0.0.0-...-3576a75 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PageRequest

type PageRequest struct {
	Current   int    `json:"current"`   // 当前页号
	PageSize  int    `json:"pageSize"`  // 页的大小
	SortField string `json:"sortField"` // 升序、降序
	SortOrder string `json:"sortOrder"` // 排序字段
}

PageRequest 分页请求

type UserDelete

type UserDelete struct {
	Id int64 `json:"id"`
}

type UserLogin

type UserLogin struct {
	Account  string `json:"account"`
	Password string `json:"password"`
}

UserLogin 用户登录

type UserRegister

type UserRegister struct {
	Account       string `json:"account"`
	Password      string `json:"password"`
	CheckPassword string `json:"checkPassword"`
}

UserRegister 用户注册结

type UserSearch

type UserSearch struct {
	PageRequest
	Text string
}

UserSearch 查找用户

type UserUpdate

type UserUpdate struct {
	Id       int64  `json:"id"`
	Username string `json:"username"`
	Avatar   string `json:"avatar"`
	Email    string `json:"email"`
	Phone    string `json:"phone"`
	Profile  string `json:"profile"`
	Gender   int8   `json:"gender"`
}

UserUpdate 更新用户信息

Jump to

Keyboard shortcuts

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