26 lines
562 B
JavaScript
26 lines
562 B
JavaScript
|
|
import { declareRequest } from "@cqsjjb/jjb-dva-runtime";
|
||
|
|
|
||
|
|
export const postList = declareRequest(
|
||
|
|
"postLoading",
|
||
|
|
"Post > @/basic-info/post/list",
|
||
|
|
);
|
||
|
|
|
||
|
|
export const postAdd = declareRequest(
|
||
|
|
"postLoading",
|
||
|
|
"Post > @/basic-info/post/save",
|
||
|
|
);
|
||
|
|
|
||
|
|
export const postEdit = declareRequest(
|
||
|
|
"postLoading",
|
||
|
|
"Put > @/basic-info/post/edit",
|
||
|
|
);
|
||
|
|
export const postDetails = declareRequest(
|
||
|
|
"postLoading",
|
||
|
|
"Get > /basic-info/post/getInfoById?id={id}",
|
||
|
|
);
|
||
|
|
|
||
|
|
export const postRemove = declareRequest(
|
||
|
|
"postLoading",
|
||
|
|
"Put > @/basic-info/post/remove?id={id}",
|
||
|
|
);
|