mirror of
https://github.com/chillzhuang/SpringBlade.git
synced 2024-11-15 23:19:29 +08:00
38 lines
836 B
Plaintext
38 lines
836 B
Plaintext
|
#set($upperEntityPath=$table.entityPath.toUpperCase())
|
||
|
export const $!{upperEntityPath}_NAMESPACE = '$!{table.entityPath}';
|
||
|
|
||
|
export function $!{upperEntityPath}_LIST(payload) {
|
||
|
return {
|
||
|
type: `${$!{upperEntityPath}_NAMESPACE}/fetchList`,
|
||
|
payload,
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function $!{upperEntityPath}_DETAIL(id) {
|
||
|
return {
|
||
|
type: `${$!{upperEntityPath}_NAMESPACE}/fetchDetail`,
|
||
|
payload: { id },
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function $!{upperEntityPath}_CLEAR_DETAIL() {
|
||
|
return {
|
||
|
type: `${$!{upperEntityPath}_NAMESPACE}/clearDetail`,
|
||
|
payload: {},
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function $!{upperEntityPath}_SUBMIT(payload) {
|
||
|
return {
|
||
|
type: `${$!{upperEntityPath}_NAMESPACE}/submit`,
|
||
|
payload,
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function $!{upperEntityPath}_REMOVE(payload) {
|
||
|
return {
|
||
|
type: `${$!{upperEntityPath}_NAMESPACE}/remove`,
|
||
|
payload,
|
||
|
};
|
||
|
}
|