Discover Packages
github.com/defsky/bookstore
user-api
model
package
Version:
v0.0.0-...-fdc4385
Opens a new window with list of versions in this module.
Published: Sep 6, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type User struct {
ID int `json:"id" example:"20"`
Name string `json:"name" example:"zhangsan"`
Email string `json:"email" example:"def@qq.com"`
Password string `json:"password" example:"secret"`
}
User is data model for user
Validate check param validation
type UserList struct {
PageIndex int `json:"pageIndex"`
PageSize int `json:"pageSize"`
TotalPages int `json:"totalPages"`
Data []*User `json:"data"`
}
UserList is a list of user info
Source Files
¶
Click to show internal directories.
Click to hide internal directories.