完善域名服务器多对多关联与共享路径预检,补齐回归源码及进度文档

支持同项目内域名与服务器双向复用,局部修改和清空不影响其他域名;在绑定保存、服务器编辑和部署前拒绝已知共享路径冲突。

新增仓储、接口、工作流与页面回归源码,同步任务状态和第三版接口交接。按要求先开发后统一测试,本批未运行测试、构建或部署,保留在途任务与主机别名等待办。
This commit is contained in:
xuans committed 2026-09-28 21:51:05 +08:00
1 parent f38e290b22
commit e2200534d3
25 files changed
+740 -41

No files matched your search

+7
View File
@@ -768,6 +768,10 @@ func (s *Server) updateServer(c *gin.Context) {
}
if err := s.servers.UpdateServer(c.Request.Context(), item); err != nil {
cleanup()
if errors.Is(err, deployment.ErrSharedPathConflict) {
s.writeError(c, http.StatusConflict, deployment.ErrSharedPathConflict.Error(), nil)
return
}
s.writeError(c, serverErrorStatus(err), "更新服务器失败", err)
return
}
@@ -974,6 +978,9 @@ func serverFromRequest(request serverRequest) deployment.Server {
}
func serverErrorStatus(err error) int {
if errors.Is(err, deployment.ErrSharedPathConflict) {
return http.StatusConflict
}
if repository.IsConflict(err) {
return http.StatusConflict
}