Files
notes/work/移动杭研/开发记录/7.13.0/需求文档.md
T
2026-03-01 01:43:46 +08:00

68 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
现在需要给前端提供一个批量删除接口,在我的 DomainBatchDeletionController
接口规范
```
批量删除接
接口
POST /domain/batch-deletion/delete
{
"domainIds": [
34490,
34496
],
"operate": "DELETE"
}
响应
{
"data": {
"successDeletedDomains": [
"DevReq1748424822A.komect.com"
],
"failedDeletedDomains": [
"xcftestf.052025030501.com"
]
},
"success": true
}
```
通过这个接口可以直接删除点播域名和直播域名。
历史已经存在点播批量删除接口逻辑:
```
com.cmcc.cdn.platform.selfservice.controller.ConfigManageController#batchDelete
```
直播删除接口逻辑:
```
com.cmcc.cdn.platform.selfservice.controller.live.LiveOrderController#batchDelete
```
我现在需要汇总为一个新街口,自动区分直播和点播,然后下发删除。
直播点播区分方法:
```
ProductsEnums.isLiveStreamProduct
```
查询 products 的方法,需要写在 private SelfServiceDomainConfigDao selfServiceDomainConfigDao; 中,注意注意查询效率,尽可能只查 id 和对应的 product,然后用 ProductsEnums.isLiveStreamProduct 分类。
有一个问题是,如何把两个下发柔和起来。但保持和之前一样的下发逻辑。最终任务记录一批的形式记录在 batchDeleteDomainRecordDao 中。包括之前相当于两个接口直播打包,点播打包。新街口可以打包在一起吗?
现在这样删除实现有点问题,能否给我把现有的
点播删除
com.cmcc.cdn.platform.selfservice.service.impl.ConfigManageServiceImpl#batchDeleteDomain
直播删除
com.cmcc.cdn.platform.selfservice.service.live.impl.LiveConfigServiceImpl#batchDeleteDomain
融合在这个方法。不然直接调用异常域名和任务记录不太对。