1
0
mirror of https://github.com/chillzhuang/Sword synced 2024-11-14 14:39:20 +08:00
Sword/src/actions/log.js

44 lines
763 B
JavaScript
Raw Normal View History

export const LOG_NAMESPACE = 'log';
export function LOG_USUAL_LIST(payload) {
return {
type: `${LOG_NAMESPACE}/fetchUsualList`,
payload,
};
}
export function LOG_USUAL_DETAIL(id) {
return {
type: `${LOG_NAMESPACE}/fetchUsualDetail`,
payload: { id },
};
}
export function LOG_API_LIST(payload) {
return {
type: `${LOG_NAMESPACE}/fetchApiList`,
payload,
};
}
export function LOG_API_DETAIL(id) {
return {
type: `${LOG_NAMESPACE}/fetchApiDetail`,
payload: { id },
};
}
export function LOG_ERROR_LIST(payload) {
return {
type: `${LOG_NAMESPACE}/fetchErrorList`,
payload,
};
}
export function LOG_ERROR_DETAIL(id) {
return {
type: `${LOG_NAMESPACE}/fetchErrorDetail`,
payload: { id },
};
}