mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
feat: 新增系统全局配置&修改账号密码
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package form
|
||||
|
||||
type AccountCreateForm struct {
|
||||
Id uint64
|
||||
Username *string `json:"username" binding:"required,min=4,max=16"`
|
||||
Password *string `json:"password"`
|
||||
}
|
||||
|
||||
type AccountUpdateForm struct {
|
||||
|
||||
9
server/internal/sys/api/form/config.go
Normal file
9
server/internal/sys/api/form/config.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package form
|
||||
|
||||
type ConfigForm struct {
|
||||
Id int
|
||||
Name string `binding:"required"`
|
||||
Key string `binding:"required"`
|
||||
Value string
|
||||
Remark string `json:"remark"`
|
||||
}
|
||||
@@ -4,6 +4,6 @@ package form
|
||||
type LoginForm struct {
|
||||
Username string `json:"username" binding:"required"`
|
||||
Password string `binding:"required"`
|
||||
Captcha string `binding:"required"`
|
||||
Cid string `binding:"required"`
|
||||
Captcha string
|
||||
Cid string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user