1 Star 0 Fork 0

dabolau / umbrella

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
user.go 495 Bytes
Copy Edit Raw Blame History
dabolau authored 2020-12-01 17:19 . 更新程序
package model
import (
"gorm.io/gorm"
)
// User 用户结构体
// https://gorm.io/zh_CN/docs/models.html
type User struct {
gorm.Model // 包含了ID, CreatedAt, UpdatedAt, DeletedAt
Username string `form:"username" json:"username"`
Email string `form:"email" json:"email"`
Phone string `form:"phone" json:"phone"`
Password string `form:"password" json:"password"`
Fullname string `form:"fullname" json:"fullname"`
Rule string `form:"rule" json:"rule"`
}
Go
1
https://gitee.com/dabolau/umbrella.git
git@gitee.com:dabolau/umbrella.git
dabolau
umbrella
umbrella
34b391d33531

Search