mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
feat: create user, read users, batch delete users
This commit is contained in:
1 parent
73e3e4f3a1
commit
387da11f1b
7 files changed
+107
-11
No files matched your search
+1
-1
@@ -2,6 +2,6 @@ package model
|
||||
|
||||
type User struct {
|
||||
Common
|
||||
Username string `json:"username,omitempty"`
|
||||
Username string `json:"username,omitempty" gorm:"uniqueIndex"`
|
||||
Password string `json:"password,omitempty" gorm:"type:char(72)"`
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package model
|
||||
|
||||
type UserForm struct {
|
||||
Username string `json:"username,omitempty"`
|
||||
Password string `json:"password,omitempty" gorm:"type:char(72)"`
|
||||
}
|
||||
Reference in new issue
Block a user