fix(export): 撤销 addProperty 多余的 DataType 守卫(任务1 brief 外)
Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
1 parent
b6ab1ffde6
commit
c6cd9981f3
1 file changed
-4
@@ -359,10 +359,6 @@ func (a *app) addProperty(c *gin.Context) {
|
||||
c.JSON(400, gin.H{"error": "属性 api_name 不符合 IRI 本地名字符集: " + in.APIName})
|
||||
return
|
||||
}
|
||||
if in.DataType == "" {
|
||||
c.JSON(400, gin.H{"error": "api_name 与 display_name 必填"})
|
||||
return
|
||||
}
|
||||
if in.DataType == "" {
|
||||
in.DataType = "string"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user