init:搭建了整个项目的框架,初步写好了用户系统
This commit is contained in:
7
internal/model/user.go
Normal file
7
internal/model/user.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package model
|
||||
|
||||
type User struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
Username string `gorm:"unique" json:"username"`
|
||||
Password string `json:"-"`
|
||||
}
|
||||
Reference in New Issue
Block a user