mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
52 lines
933 B
JavaScript
52 lines
933 B
JavaScript
|
import {
|
||
|
FETCH_ADD_INTERFACE_INPUT,
|
||
|
FETCH_ADD_INTERFACE_TAG_VALUE,
|
||
|
FETCH_ADD_INTERFACE_HEADER_VALUE,
|
||
|
ADD_INTERFACE_SEQ_HEADER,
|
||
|
DELETE_INTERFACE_SEQ_HEADER,
|
||
|
ADD_INTERFACE_REQ_PARAMS
|
||
|
} from '../constants/action-types.js'
|
||
|
|
||
|
export function pushInputValue (value) {
|
||
|
return {
|
||
|
type: FETCH_ADD_INTERFACE_INPUT,
|
||
|
payload: value
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function reqTagValue (value) {
|
||
|
return {
|
||
|
type: FETCH_ADD_INTERFACE_TAG_VALUE,
|
||
|
payload: value
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function reqHeaderValue (value) {
|
||
|
return {
|
||
|
type: FETCH_ADD_INTERFACE_HEADER_VALUE,
|
||
|
payload: value
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function addReqHeader (value) {
|
||
|
return {
|
||
|
type: ADD_INTERFACE_SEQ_HEADER,
|
||
|
payload: value
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function deleteReqHeader (value) {
|
||
|
return {
|
||
|
type: DELETE_INTERFACE_SEQ_HEADER,
|
||
|
payload: value
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function addReqParams (value) {
|
||
|
return {
|
||
|
type: ADD_INTERFACE_REQ_PARAMS,
|
||
|
payload: value
|
||
|
};
|
||
|
}
|
||
|
|