@vtj / renderer / MockCallbackOptions
Interface: MockCallbackOptions
Properties
body
body:
string
|FormData
发送数据 playload
Defined in
packages/renderer/types/provider/apis.d.ts:21
data?
optional
data:any
发送数据, body 转 json
Defined in
packages/renderer/types/provider/apis.d.ts:33
params?
optional
params:Record
<string
,any
>
url 查询参数,/api/332?name=abc =>
Defined in
packages/renderer/types/provider/apis.d.ts:29
query?
optional
query:Record
<string
,any
>
url路径参数,/api/:id =>
Defined in
packages/renderer/types/provider/apis.d.ts:25
type
type:
string
请求方法类型
Defined in
packages/renderer/types/provider/apis.d.ts:17
url
url:
string
请求url
Defined in
packages/renderer/types/provider/apis.d.ts:13