feat(core): 新增逻辑删除字段并过滤已删除AI角色
- KeyboardAiCompanion实体增加deleted字段 - 查询时自动排除deleted=1的记录 - 同步更新likedCompanions、chattedCompanions等接口 - prod环境追加App Store订阅校验配置
This commit is contained in:
@@ -150,4 +150,8 @@ public class KeyboardAiCompanion {
|
|||||||
@TableField(value = "voice_id")
|
@TableField(value = "voice_id")
|
||||||
@Schema(description="角色音频Id")
|
@Schema(description="角色音频Id")
|
||||||
private String voiceId;
|
private String voiceId;
|
||||||
|
|
||||||
|
@TableField(value = "deleted")
|
||||||
|
@Schema(description = "是否删除")
|
||||||
|
private Byte deleted;
|
||||||
}
|
}
|
||||||
@@ -94,6 +94,7 @@ public class KeyboardAiCompanionServiceImpl extends ServiceImpl<KeyboardAiCompan
|
|||||||
LambdaQueryWrapper<KeyboardAiCompanion> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<KeyboardAiCompanion> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
queryWrapper.eq(KeyboardAiCompanion::getStatus, 1)
|
queryWrapper.eq(KeyboardAiCompanion::getStatus, 1)
|
||||||
.eq(KeyboardAiCompanion::getVisibility, 1)
|
.eq(KeyboardAiCompanion::getVisibility, 1)
|
||||||
|
.eq(KeyboardAiCompanion::getDeleted,0)
|
||||||
.orderByDesc(KeyboardAiCompanion::getSortOrder)
|
.orderByDesc(KeyboardAiCompanion::getSortOrder)
|
||||||
.orderByDesc(KeyboardAiCompanion::getPopularityScore);
|
.orderByDesc(KeyboardAiCompanion::getPopularityScore);
|
||||||
IPage<KeyboardAiCompanion> entityPage = this.page(page, queryWrapper);
|
IPage<KeyboardAiCompanion> entityPage = this.page(page, queryWrapper);
|
||||||
|
|||||||
@@ -36,3 +36,22 @@ user:
|
|||||||
register:
|
register:
|
||||||
# 新用户注册时的免费试用额度
|
# 新用户注册时的免费试用额度
|
||||||
free-trial-quota: 5
|
free-trial-quota: 5
|
||||||
|
|
||||||
|
apple:
|
||||||
|
appstore:
|
||||||
|
issuer-id: "178b442e-b7be-4526-bd13-ab293d019df0"
|
||||||
|
key-id: "Y7TF7BV74G"
|
||||||
|
bundle-id: "com.loveKey.nyx"
|
||||||
|
# app 在 App Store 中的 Apple ID(可在开发者后台查看)
|
||||||
|
app-apple-id: 1234567890
|
||||||
|
|
||||||
|
# p8 私钥文件路径,建议放在 resources 目录
|
||||||
|
private-key-path: "classpath:SubscriptionKey_Y7TF7BV74G.p8"
|
||||||
|
|
||||||
|
# SANDBOX ? PRODUCTION
|
||||||
|
environment: "PRODUCTION"
|
||||||
|
|
||||||
|
# 用于验证服务器通知的 Apple PKI 根证书
|
||||||
|
root-certificates:
|
||||||
|
- "classpath:AppleRootCA-G2.cer"
|
||||||
|
- "classpath:AppleRootCA-G3.cer"
|
||||||
Reference in New Issue
Block a user