feat(push-notifications): 新增更新令牌用户ID功能
添加新的API端点用于更新设备推送令牌绑定的用户ID,包括: - 新增UpdateTokenUserIdDto和UpdateTokenUserIdResponseDto - 在控制器中添加updateTokenUserId端点 - 在服务层实现updateTokenUserId方法 - 在push-token服务中添加底层更新逻辑 - 优化推送测试服务,仅在主进程中执行
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user