fix(catalog): 打通共享授权扫描与统一来源清单显示
build / build (push) Successful in 1m18s

This commit is contained in:
姚章浩
2026-10-26 18:36:11 +08:00
parent c8f05ee46f
commit e744114ff4
10 changed files with 276 additions and 50 deletions
+2 -2
View File
@@ -290,8 +290,8 @@ func registerSpaceThroughDWS(w http.ResponseWriter, r *http.Request, config Conf
})
switch {
case errors.Is(err, postgresstore.ErrDingtalkSpaceNameTaken):
writeJSON(w, http.StatusOK, map[string]any{"data": map[string]string{"name": name, "already_present": "true"}})
return true, true
writeJSON(w, http.StatusConflict, map[string]string{"error": "space_name_conflict", "hint": "已有同名来源,但空间标识不一致;请核对已有来源,不能按名称判定添加成功。"})
return true, false
case errors.Is(err, postgresstore.ErrDingtalkSpaceIdentityConflict):
writeJSON(w, http.StatusConflict, map[string]string{
"error": "space_identity_conflict",