From 76ca91c2a9c51ef0c671f24d73dc97bf2501eb78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Mon, 26 Jul 2021 17:14:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8A=BD=E5=8F=96=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- request/param.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 request/param.go diff --git a/request/param.go b/request/param.go new file mode 100644 index 0000000..487796b --- /dev/null +++ b/request/param.go @@ -0,0 +1,15 @@ +// Package request 请求转发参数处理 +// +// Author go_developer@163.com<白茶清欢> +package request + +// ExtractParameterRule抽取参数提取的规则 +// +// Author go_developer@163.com<白茶清欢> +type ExtractParameterRule struct { + RequestParameterName string // 入参参数名称 + ForwardParameterName string // 转发参数名称 + ValueType string // 值的数据类型 + Required bool // 是否必须存在 + DefaultValue interface{} // 默认值 +}