feat:完善项目信息

This commit is contained in:
henry
2022-01-10 17:43:43 +08:00
parent 4b5acca5c3
commit 6712feec35
19 changed files with 1169 additions and 38 deletions

View File

@ -21,6 +21,17 @@ func (this *IDStringForm) Convert() uint64 {
return uint64(utils.HASHIDDecode(this.ID))
}
type TenantIDStringForm struct {
TenantID string `json:"tenant_id" form:"tenant_id"`
}
func (this *TenantIDStringForm) Convert() uint64 {
if this.TenantID == "" {
return 0
}
return uint64(utils.HASHIDDecode(this.TenantID))
}
type UIDForm struct {
UID string `json:"uid" form:"uid" binding:"required"`
}