refactor: json tag完善

This commit is contained in:
meilin.huang
2023-06-11 19:59:35 +08:00
parent e483db1b97
commit b93984bf6f
14 changed files with 335 additions and 303 deletions

View File

@@ -1,7 +1,7 @@
package form
type AccountCreateForm struct {
Id uint64
Id uint64 `json:"id"`
Name string `json:"name" binding:"required"`
Username string `json:"username" binding:"required,min=4,max=16"`
Password string `json:"password"`