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

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

View File

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