feat(core): 新增逻辑删除字段并过滤已删除AI角色

- KeyboardAiCompanion实体增加deleted字段
- 查询时自动排除deleted=1的记录
- 同步更新likedCompanions、chattedCompanions等接口
- prod环境追加App Store订阅校验配置
This commit is contained in:
2026-03-10 13:27:55 +08:00
parent 4519343139
commit 8baeacae3b
3 changed files with 24 additions and 0 deletions

View File

@@ -150,4 +150,8 @@ public class KeyboardAiCompanion {
@TableField(value = "voice_id")
@Schema(description="角色音频Id")
private String voiceId;
@TableField(value = "deleted")
@Schema(description = "是否删除")
private Byte deleted;
}

View File

@@ -94,6 +94,7 @@ public class KeyboardAiCompanionServiceImpl extends ServiceImpl<KeyboardAiCompan
LambdaQueryWrapper<KeyboardAiCompanion> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(KeyboardAiCompanion::getStatus, 1)
.eq(KeyboardAiCompanion::getVisibility, 1)
.eq(KeyboardAiCompanion::getDeleted,0)
.orderByDesc(KeyboardAiCompanion::getSortOrder)
.orderByDesc(KeyboardAiCompanion::getPopularityScore);
IPage<KeyboardAiCompanion> entityPage = this.page(page, queryWrapper);