From 118158424b7cd152a2752468533af212854c3207 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Mon, 6 May 2024 15:55:43 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E8=80=83?= =?UTF-8?q?=E8=99=91=E5=88=B0=E5=89=8D=E7=AB=AF=E4=BC=A0=E5=85=A5=E7=9A=84?= =?UTF-8?q?json=E9=85=8D=E7=BD=AE=E4=B8=8D=E7=A1=AE=E5=AE=9A=EF=BC=8C?= =?UTF-8?q?=E5=85=88=E4=B8=8D=E8=BD=AC=E5=8C=96config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yudao/module/ai/convert/AiChatModalConvert.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/convert/AiChatModalConvert.java b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/convert/AiChatModalConvert.java index cb3f644c0..c8b7f0405 100644 --- a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/convert/AiChatModalConvert.java +++ b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/convert/AiChatModalConvert.java @@ -4,12 +4,14 @@ import cn.iocoder.yudao.module.ai.dal.dataobject.AiChatModalDO; import cn.iocoder.yudao.module.ai.vo.AiChatModalAddReq; import cn.iocoder.yudao.module.ai.vo.AiChatModalListRes; import org.mapstruct.Mapper; +import org.mapstruct.Mapping; +import org.mapstruct.Mappings; import org.mapstruct.factory.Mappers; import java.util.List; /** - * 聊天 对话 convert + * 聊天 modal * * @author fansili * @time 2024/4/18 16:39 @@ -29,10 +31,13 @@ public interface AiChatModalConvert { List convertAiChatModalListRes(List list); /** - * 转换 - AiChatModalDO + * 转换 - AiChatModalDO * * @param req * @return */ + @Mappings({ + @Mapping(target = "config", ignore = true) + }) AiChatModalDO convertAiChatModalDO(AiChatModalAddReq req); }