Skip to content

Commit 1b767f5

Browse files
committed
Update.
1 parent 18696c9 commit 1b767f5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

cmd/dashboard/controller/member_api.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -608,16 +608,16 @@ func (ma *memberAPI) searchDDNS(c *gin.Context) {
608608
}
609609

610610
type serverForm struct {
611-
ID uint64
612-
Name string `binding:"required"`
613-
DisplayIndex int
614-
Secret string
615-
Tag string
616-
Note string
617-
PublicNote string
618-
HideForGuest string
619-
EnableDDNS string
620-
DDNSProfilesRaw string
611+
ID uint64 `form:"id" json:"id"`
612+
Name string `form:"name" json:"name" binding:"required"`
613+
DisplayIndex int `form:"DisplayIndex" json:"display_index"`
614+
Secret string `form:"secret" json:"secret"`
615+
Tag string `form:"Tag" json:"tag"`
616+
Note string `form:"Note" json:"note"`
617+
PublicNote string `form:"PublicNote" json:"public_note"`
618+
HideForGuest string `form:"HideForGuest" json:"hide_for_guest"`
619+
EnableDDNS string `form:"EnableDDNS" json:"enable_ddns"`
620+
DDNSProfilesRaw string `form:"DDNSProfilesRaw" json:"ddns_profiles_raw"`
621621
}
622622

623623
func (ma *memberAPI) addOrEditServer(c *gin.Context) {

0 commit comments

Comments
 (0)