feat:完善项目信息
This commit is contained in:
@ -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"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user