参数数据位置支持 : STATIC / CUSTOM_CONFIG
This commit is contained in:
parent
d8400fb206
commit
b6f4a65127
14
request.go
14
request.go
@ -8,11 +8,13 @@
|
|||||||
package consts
|
package consts
|
||||||
|
|
||||||
const (
|
const (
|
||||||
RequestDataLocationHeader = "HEADER" // header
|
RequestDataLocationHeader = "HEADER" // header
|
||||||
RequestDataLocationCookie = "COOKIE" // cookie
|
RequestDataLocationCookie = "COOKIE" // cookie
|
||||||
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"},
|
||||||
|
Loading…
Reference in New Issue
Block a user