fix: struct tag (#932)

* fix: struct tag

* fix: struct tag

* fix: strings conversion

* do not write anything after redirection

* fix table

* fix select
This commit is contained in:
UUBulb
2024-12-31 23:09:58 +08:00
committed by GitHub
parent 553f8e58d4
commit 3216ad43fa
5 changed files with 16 additions and 12 deletions

View File

@@ -10,5 +10,5 @@ type ProfileForm struct {
OriginalPassword string `json:"original_password,omitempty"`
NewUsername string `json:"new_username,omitempty"`
NewPassword string `json:"new_password,omitempty"`
RejectPassword bool `json:"reject_password,omitempty"`
RejectPassword bool `json:"reject_password,omitempty" validate:"optional"`
}