From 0ad7304eca254b0b5eecd6717c255c43aa3456f7 Mon Sep 17 00:00:00 2001 From: black1552 Date: Wed, 4 Feb 2026 14:59:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(valid):=20=E6=B7=BB=E5=8A=A0=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E9=AA=8C=E8=AF=81=E5=B9=B6=E8=BF=94=E5=9B=9Emap?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增ValidAndMap函数用于验证参数并返回map类型 - 修改ValidAndStruct函数优化对象绑定逻辑 - 添加gconv包导入支持map转换功能 - 更新IDE缓存配置添加新的验证类型映射 --- .idea/GOHCache.xml | 38 +++++++++++++++++++++++++++++++++++++- valid/valid.go | 21 +++++++++++++++++---- 2 files changed, 54 insertions(+), 5 deletions(-) diff --git a/.idea/GOHCache.xml b/.idea/GOHCache.xml index c5e93b7..142c763 100644 --- a/.idea/GOHCache.xml +++ b/.idea/GOHCache.xml @@ -87,6 +87,20 @@ + + + + + + + + + + + + @@ -326,7 +340,7 @@ - @@ -352,6 +366,26 @@ + + + + + + + + + + + + +