feat: 网盘设置加「默认账号」列, 同类型最多2个主账号

- 数据库 migration: cloud_configs 加 is_primary 字段
- 后端: togglePrimary API (PUT /admin/cloud-configs/:id/primary)
- 后端: getAndValidateCredential 优先选 is_primary 账号
- 前端: CloudConfig.vue 转存启用后加「默认账号」开关列
- 前端: api/index.ts 加 setPrimary 方法
This commit is contained in:
2026-05-15 06:39:08 +08:00
parent abd0cb26f5
commit 58caaae37a
6 changed files with 95 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "cloudsearch-backend",
"version": "0.0.2",
"version": "0.0.3",
"private": true,
"scripts": {
"dev": "tsx watch src/main.ts",