|
|
@@ -56,19 +56,19 @@ func CheckFieldLastUpdateUserID(entity Entity) error {
|
|
|
}
|
|
|
|
|
|
func CheckFieldIDResult(checkResult check.Result) error {
|
|
|
- return checkIDTypeResult(checkResult, FieldID, "ID")
|
|
|
+ return checkIDTypeResult(checkResult, FieldID, FieldID)
|
|
|
}
|
|
|
|
|
|
func CheckFieldTenantIDResult(checkResult check.Result) error {
|
|
|
- return checkIDTypeResult(checkResult, FieldTenantID, "租户ID")
|
|
|
+ return checkIDTypeResult(checkResult, FieldTenantID, FieldTenantID)
|
|
|
}
|
|
|
|
|
|
func CheckFieldCreateUserIDResult(checkResult check.Result) error {
|
|
|
- return checkIDTypeResult(checkResult, FieldCreateUserID, "创建用户ID")
|
|
|
+ return checkIDTypeResult(checkResult, FieldCreateUserID, FieldCreateUserID)
|
|
|
}
|
|
|
|
|
|
func CheckFieldLastUpdateUserIDResult(checkResult check.Result) error {
|
|
|
- return checkIDTypeResult(checkResult, FieldLastUpdateUserID, "最近更新用户ID")
|
|
|
+ return checkIDTypeResult(checkResult, FieldLastUpdateUserID, FieldLastUpdateUserID)
|
|
|
}
|
|
|
|
|
|
func checkIDTypeField(entity Entity, fieldName string, fieldCNName string) error {
|