refactor: reorganize packages into a domain-based layered structure
This commit is contained in:
7
internal/account/entity.go
Normal file
7
internal/account/entity.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package account
|
||||
|
||||
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