参数数据位置支持 : STATIC / CUSTOM_CONFIG

This commit is contained in:
白茶清欢 2024-10-15 11:50:56 +08:00
parent d8400fb206
commit b6f4a65127

View File

@ -8,11 +8,13 @@
package consts
const (
RequestDataLocationHeader = "HEADER" // header
RequestDataLocationCookie = "COOKIE" // cookie
RequestDataLocationBody = "BODY" // body
RequestDataLocationQuery = "QUERY" // query
RequestDataLocationUriPath = "URI_PATH" // uri路由一部分
RequestDataLocationHeader = "HEADER" // header
RequestDataLocationCookie = "COOKIE" // cookie
RequestDataLocationBody = "BODY" // body
RequestDataLocationQuery = "QUERY" // query
RequestDataLocationUriPath = "URI_PATH" // uri路由一部分
RequestDataLocationStatic = "STATIC" // 静态配置的参数
RequestDataLocationCustomConfig = "CUSTOM_CONFIG" // 针对接口的一些自定义配置规则
)
const (
@ -34,6 +36,8 @@ var (
{Value: RequestDataLocationBody, Description: "请求body"},
{Value: RequestDataLocationQuery, Description: "请求query"},
{Value: RequestDataLocationUriPath, Description: "请求uri_path"},
{Value: RequestDataLocationStatic, Description: "静态参数配置"},
{Value: RequestDataLocationCustomConfig, Description: "自定义接口处理规则"},
}
ResponseDataLocationList = []DataLocationDesc{
{Value: ResponseDataLocationHeader, Description: "响应header"},