29 lines
522 B
Go
29 lines
522 B
Go
package models
|
|
|
|
type LoginInfo struct {
|
|
Account string
|
|
Pwd string
|
|
}
|
|
|
|
type AddInfo struct {
|
|
Account string `json:"account" binding:"required"`
|
|
Name string `json:"name" binding:"required"`
|
|
Mobile string `json:"mobile" binding:"required"`
|
|
Email string `json:"email" binding:"required"`
|
|
Sex int `json:"sex"`
|
|
Pwd string `json:"pwd" binding:"required"`
|
|
}
|
|
|
|
type UserInfo struct {
|
|
Account string
|
|
Name string
|
|
Mobile string
|
|
Email string
|
|
Sex int
|
|
}
|
|
|
|
type User struct {
|
|
Id uint
|
|
UserInfo
|
|
}
|