feat:完善信息

This commit is contained in:
henry
2021-10-11 16:30:53 +08:00
parent 0dd46c0c9d
commit 7830ab0c86
15 changed files with 408 additions and 101 deletions

View File

@ -11,10 +11,13 @@ type IDForm struct {
}
type IDStringForm struct {
ID string `json:"id" form:"id" binding:"required"`
ID string `json:"id" form:"id"`
}
func (this *IDStringForm) Convert() uint64 {
if this.ID == "" {
return 0
}
return uint64(utils.HASHIDDecode(this.ID))
}