From 3347200b722223932def5cd218247ecfc2892984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <1@72wo.cn> Date: Thu, 1 Jan 2026 01:34:36 +0800 Subject: [PATCH] =?UTF-8?q?```=20feat(config):=20=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E7=89=B9=E6=95=88=E6=9C=8D=E5=8A=A1=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加UniqueKey字段配置索引唯一性校验 - 配置PageQueryOp支持关键词搜索功能 - 设置关键词搜索字段为desc描述字段 ``` --- modules/config/service/effect.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/config/service/effect.go b/modules/config/service/effect.go index 5324b089..742f3e7e 100644 --- a/modules/config/service/effect.go +++ b/modules/config/service/effect.go @@ -27,9 +27,11 @@ func NewEffectService() *EffectService { return &EffectService{ &cool.Service{ - Model: model.NewPlayerPetSpecialEffect(), + Model: model.NewPlayerPetSpecialEffect(), + UniqueKey: map[string]string{"idx_se_idx": "索引不能重复"}, + PageQueryOp: &cool.QueryOp{ + KeyWordField: []string{"desc"}, + }, }, } } - -