feat(rdp): 新增 RDP 远程桌面/SMB/账单同步能力 + 清理编译产物

主要变更:
- RDP 远程桌面:新增 backend/pkg/rdp(RDP 引擎 + credssp/display/rle/trace)、
  backend/controller/rdp*(连接/凭证/文件/会话/实时)、frontend RDP 组件与 API
- Windows SMB 文件传输:backend/pkg/winsmb
- 云账单同步:backend/pkg/billingsync + billing_sync/aliyun_billing,前端账单详情
- Agent CLI Kubernetes 工具:kubernetes_action/get、pod_execute/logs
- 服务器导入助手:server_import_helpers、ImportCredentialSettings
- 国际化与组件重构(cloud/deploy/monitor/server/system 等多模块)
- 清理编译产物二进制:移除 backend/server、backend/agent/bin/aiops-agent-*
- .gitignore:新增 backend/agent/ 与 .cache/(避免 334MB go-build 缓存误入库)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
LoganandClaude committed 2026-07-04 01:50:36 +08:00
1 parent 777d9e4e71
commit 76ec9387f0
202 files changed
+16555 -2543

No files matched your search

+5 -5
View File
@@ -220,8 +220,8 @@ aiops/
```bash
cd backend
CGO_ENABLED=1 go build -o aiops-server .
./aiops-server
CGO_ENABLED=1 go build -o aiops .
./aiops
# 或
go run .
```
@@ -320,7 +320,7 @@ npm run lint # ESLint 检查
```bash
cd backend
go vet ./...
go build -o aiops-server .
go build -o aiops .
```
---
@@ -361,7 +361,7 @@ go build -o aiops-server .
3. **新增 handler 不直接绑 model**,使用独立 request struct。
4. **GORM 指针字段必须解引用**后再使用(`*field`)。
5. **Update handler 禁止复用 CreateRequest**,使用 `map[string]interface{}` 接收。
6. **编译参数**:`unset http_proxy https_proxy && export GOPROXY=https://goproxy.cn,direct && GOTOOLCHAIN=local CGO_ENABLED=1 go build -o aiops-server .`
6. **编译参数**:`unset http_proxy https_proxy && export GOPROXY=https://goproxy.cn,direct && GOTOOLCHAIN=local CGO_ENABLED=1 go build -o aiops .`
7. **GORM `First()` 连续查询会带上次 ID**,请用 `Take()` 代替。
8. 文件名使用 `snake_case.go`;类型/方法 `PascalCase`;变量 `camelCase`。
@@ -510,7 +510,7 @@ WebSocket 无法设置自定义 header → 后端 `JWTAuth` 支持 `?token=` que
修改代码后,按以下顺序验证:
1. `cd backend && go build -o aiops-server .`(零错误)
1. `cd backend && go build -o aiops .`(零错误)
2. `cd frontend && npx tsc --noEmit`(零错误)
3. `./run.sh docker up` 或 `./run.sh dev` 启动完整环境
4. `python3 tests/integration_test.py --host localhost --port 8080` 通过