2017-07-19 15:12:10 +08:00
|
|
|
import {
|
|
|
|
FETCH_ADD_INTERFACE_INPUT,
|
|
|
|
FETCH_ADD_INTERFACE_TAG_VALUE,
|
|
|
|
FETCH_ADD_INTERFACE_HEADER_VALUE,
|
|
|
|
ADD_INTERFACE_SEQ_HEADER,
|
|
|
|
DELETE_INTERFACE_SEQ_HEADER,
|
2017-07-20 14:48:29 +08:00
|
|
|
GET_INTERFACE_REQ_PARAMS,
|
|
|
|
GET_INTERFACE_RES_PARAMS,
|
|
|
|
SAVE_INTERFACE_FORMS
|
|
|
|
// ADD_INTERFACE_RES_PARAMS,
|
|
|
|
// DELETE_INTERFACE_RES_PARAMS
|
2017-07-19 15:12:10 +08:00
|
|
|
} 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
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-07-20 14:48:29 +08:00
|
|
|
export function getReqParams (value) {
|
2017-07-19 15:12:10 +08:00
|
|
|
return {
|
2017-07-20 14:48:29 +08:00
|
|
|
type: GET_INTERFACE_REQ_PARAMS,
|
2017-07-19 15:12:10 +08:00
|
|
|
payload: value
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-07-20 14:48:29 +08:00
|
|
|
export function getResParams (value) {
|
2017-07-19 19:29:18 +08:00
|
|
|
return {
|
2017-07-20 14:48:29 +08:00
|
|
|
type: GET_INTERFACE_RES_PARAMS,
|
2017-07-19 19:29:18 +08:00
|
|
|
payload: value
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-07-20 14:48:29 +08:00
|
|
|
export function saveForms (value) {
|
2017-07-19 19:29:18 +08:00
|
|
|
return {
|
2017-07-20 14:48:29 +08:00
|
|
|
type: SAVE_INTERFACE_FORMS,
|
2017-07-19 19:29:18 +08:00
|
|
|
payload: value
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-07-20 14:48:29 +08:00
|
|
|
// export function deleteReqParams (value) {
|
|
|
|
// return {
|
|
|
|
// type: DELETE_INTERFACE_REQ_PARAMS,
|
|
|
|
// payload: value
|
|
|
|
// };
|
|
|
|
// }
|
|
|
|
|
|
|
|
// export function addResParams (value) {
|
|
|
|
// return {
|
|
|
|
// type: ADD_INTERFACE_RES_PARAMS,
|
|
|
|
// payload: value
|
|
|
|
// };
|
|
|
|
// }
|
|
|
|
|
|
|
|
// export function deleteResParams (value) {
|
|
|
|
// return {
|
|
|
|
// type: DELETE_INTERFACE_RES_PARAMS,
|
|
|
|
// payload: value
|
|
|
|
// };
|
|
|
|
// }
|
2017-07-19 19:29:18 +08:00
|
|
|
|