v3.5.8和v3.5.9版本更新
CI / verify (pull_request) Waiting to run

This commit is contained in:
2026-08-25 09:20:32 +08:00
parent 7304c7a8e1
commit 5935024ea8
101 changed files with 7640 additions and 5364 deletions
@@ -188,6 +188,18 @@ export class AdminUsersService {
});
}
async updateUser(id: bigint, dto: { nickname: string }) {
const user = await this.prisma.user.findUnique({ where: { id }, select: { id: true } });
if (!user) throw new NotFoundException('用户不存在');
const nickname = dto.nickname.trim() || null;
const updated = await this.prisma.user.update({
where: { id },
data: { nickname },
select: { id: true, userNo: true, nickname: true },
});
return serializeBigInt(updated);
}
async previewBatchDelete(ids: bigint[]) {
const uniqueIds = [...new Set(ids)];
if (!uniqueIds.length) {