demodto

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 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 User

type User struct {
	CreatedAt string `json:"created_at"`
	Id        int64  `json:"id"`
	Name      string `json:"name"`
	Phone     string `json:"phone"`
	Status    int    `json:"status"`
	UpdatedAt string `json:"updated_at"`
	Username  string `json:"username"`
	Avatar    string `json:"avatar"`
}

type UserAddReq

type UserAddReq struct {
	Phone    string `json:"phone" form:"phone"`
	Username string `json:"username" form:"username" validate:"required"`
	Avatar   string `json:"avatar" form:"avatar"`
	Name     string `json:"name" validate:"required" form:"name"`
}

type UserAddResp

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

type UserDeleteReq

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

type UserDetailReq

type UserDetailReq struct {
	Id int64 `json:"id" validate:"required"`
}

type UserListReq

type UserListReq struct {
	Q        string `json:"q"`
	PageSize int    `json:"page_size"`
	PageNum  int    `json:"page_num"`
}

type UserListResp

type UserListResp struct {
	List  []*User `json:"list"`
	Total int64   `json:"total"`
}

type UserUpdateReq

type UserUpdateReq struct {
	Status   int    `json:"status"`
	Username string `json:"username"`
	Avatar   string `json:"avatar"`
	Id       int64  `json:"id"`
	Name     string `json:"name"`
	Phone    string `json:"phone"`
}

Jump to

Keyboard shortcuts

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