feat(api): 用户前缀查找并入 displayName——成员添加可按姓名搜人(方案 A)

线上根因:V1.1 账号=手机号,运营按姓名搜索恒空(accountPrefix 仅匹配
account)。扩展为 account OR displayName 前缀(括号分组保资格过滤不被
短路),大小写敏感/激活过滤/account 升序语义不变;与管理列表 query 模式
对齐。契约描述同步。附 members-categories e2e 冷启动超时对齐 120s。

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-29 15:20:09 +08:00
parent 8c47a88c79
commit b0a3515bf2
5 changed files with 55 additions and 9 deletions
@@ -14,6 +14,10 @@ import { randomBytes } from 'node:crypto';
import { type INestApplication } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import request from 'supertest';
// 冷 infra(Docker 重启后)下 beforeAll 引导可超 jest 缺省 5s——对齐
// 同目录其它 e2e 的 120s(2026-09-29 两次冷启动误报教训)。
jest.setTimeout(120_000);
import { PrismaClient } from '@photo/db-cn';
import { ErrorCodes } from '@photo/contracts';
import { AppCnModule } from '../src/app-cn.module';