feat(push-notifications): 新增更新令牌用户ID功能

添加新的API端点用于更新设备推送令牌绑定的用户ID,包括:
- 新增UpdateTokenUserIdDto和UpdateTokenUserIdResponseDto
- 在控制器中添加updateTokenUserId端点
- 在服务层实现updateTokenUserId方法
- 在push-token服务中添加底层更新逻辑
- 优化推送测试服务,仅在主进程中执行
This commit is contained in:
richarjiang
2025-11-03 17:08:56 +08:00
parent 200484ce39
commit fa9b28a98f
6 changed files with 113 additions and 8 deletions

View File

@@ -90,4 +90,18 @@ export class UnregisterTokenResponseDto {
data: {
success: boolean;
};
}
export class UpdateTokenUserIdResponseDto {
@ApiProperty({ description: '响应代码' })
code: ResponseCode;
@ApiProperty({ description: '响应消息' })
message: string;
@ApiProperty({ description: '更新结果' })
data: {
success: boolean;
tokenId: string;
};
}