init:搭建了整个项目的框架,初步写好了用户系统

This commit is contained in:
Leon
2025-12-04 17:09:04 +08:00
commit 81926ce8a2
15 changed files with 646 additions and 0 deletions

7
internal/model/user.go Normal file
View 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:"-"`
}