feat(valid): 添加自定义参数绑定功能

- 实现CustomBind函数支持GET、POST、PUT、PATCH请求方法的参数绑定
- 添加bindFromJSON和bindFromParams函数处理JSON和表单数据解析
- 实现setFieldValue函数支持多种数据类型的字段值设置
- 添加CustomBindToMap和CustomBindStructAndMap辅助函数
- 提供GetQueryParam、GetPostParam和GetPathParam参数获取工具函数
- 在.ginignore文件中添加构建产物和临时文件忽略规则
This commit is contained in:
2026-02-25 15:45:52 +08:00
parent 7304f59b61
commit 65aea30aa4
2 changed files with 244 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
.buildpath
.hgignore.swp
.project
.orig
.swp
.idea/
.settings/
.vscode/
bin/
**/.DS_Store
gf
main
main.exe
output/
manifest/output/
temp/
temp.yaml
bin
**/config/config.yaml