```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

feat(player): 添加称号重复检查逻辑

防止玩家重复获得相同称号,提升系统稳定性

fix(config): 修复boss配置相关代码问题

- 新增BossController的GetList接口
- 优化import语句顺序
- 修正PetBaseConfig中Desc字段为Remark字段
- 移除Tower配置中的TaskIds冗余字段
- 完善ShopConfig字段注释内容
```
This commit is contained in:
昔念
2026-02-23 12:39:57 +08:00
parent 4fff047c4c
commit 6b316b868c
6 changed files with 30 additions and 3 deletions

View File

@@ -30,3 +30,13 @@ func (s *BossService) Get(id uint32) *model.BossConfig {
return item
}
func (s *BossService) GetList(id uint32) []model.BossConfig {
var ret []model.BossConfig
// 执行 Raw SQL 并扫描返回值
dbm_nocache_noenable(s.Model).
Wheref(`map_id @> ARRAY[?]::integer[]`, id).WhereOrf(`map_id @> ARRAY[?]::integer[]`, 0).Scan(&ret)
return ret
}