mirror of
https://github.com/yv1ing/gin-admin.git
synced 2025-10-24 10:12:05 +08:00
完成基本框架搭建及系统用户登录流程
This commit is contained in:
19
internal/model/system/user.go
Normal file
19
internal/model/system/user.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package system
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
// @Author: yv1ing
|
||||
// @Author: me@yvling.cn
|
||||
// @Date: 2025/8/28 15:46
|
||||
// @Desc: 系统用户角色模型
|
||||
|
||||
type User struct {
|
||||
gorm.Model
|
||||
|
||||
IsActive bool `gorm:"default:true"`
|
||||
Username string `gorm:"uniqueIndex;size:255"`
|
||||
Password string
|
||||
Avatar string
|
||||
Email string
|
||||
Phone string
|
||||
}
|
||||
Reference in New Issue
Block a user