add point rule sort
This commit is contained in:
@@ -78,6 +78,10 @@ async function ruleUpdate(rule: PointRule): Promise<void> {
|
||||
await axios.post(`${BASE_URI}/rule/update`, withCurrentStoreId(rule));
|
||||
}
|
||||
|
||||
async function ruleSort(idList: string[]): Promise<void> {
|
||||
await axios.post(`${BASE_URI}/rule/sort`, idList);
|
||||
}
|
||||
|
||||
async function ruleRemove(id: string): Promise<void> {
|
||||
await axios.post(`${BASE_URI}/rule/delete`, undefined, {
|
||||
params: { id }
|
||||
@@ -92,5 +96,6 @@ export default {
|
||||
ruleDetail,
|
||||
ruleCreate,
|
||||
ruleUpdate,
|
||||
ruleSort,
|
||||
ruleRemove
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user