|
|
@ -231,3 +231,40 @@ export function delMetadataFiles(id) { |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
export function postMetadataRestapis(data) { |
|
|
|
return dispatch => basicAction({ |
|
|
|
type: 'post', |
|
|
|
data: data, |
|
|
|
dispatch: dispatch, |
|
|
|
actionType: 'POST_METADATA_RESTAPIS', |
|
|
|
url: ApiTable.postMetadataRestapis, |
|
|
|
msg: { option: '新建元数据' }, |
|
|
|
reducer: {} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
export function putMetadataRestapis(id, data) { |
|
|
|
return dispatch => basicAction({ |
|
|
|
type: 'put', |
|
|
|
data: data, |
|
|
|
dispatch, |
|
|
|
actionType: 'PUT_METADATA_RESTAPIS', |
|
|
|
url: ApiTable.putMetadataRestapis.replace('{id}', id), |
|
|
|
msg: { |
|
|
|
option: '修改元数据', |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
export function delMetadataRestapis(id) { |
|
|
|
return dispatch => basicAction({ |
|
|
|
type: 'del', |
|
|
|
dispatch, |
|
|
|
actionType: 'DELETE_METADATA_RESTAPIS', |
|
|
|
url: ApiTable.delMetadataRestapis.replace('{id}', id), |
|
|
|
msg: { |
|
|
|
option: '删除元数据', |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|