update permission and product
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { axios } from "timi-web-api";
|
||||
import type { Page, PageResult } from "timi-web-api";
|
||||
import type { EventItem } from "@/types/EventItem";
|
||||
import type { Store, StoreBusinessDay } from "@/types/Store";
|
||||
|
||||
const STORE_BASE_URI = "/gao/store";
|
||||
@@ -16,12 +15,6 @@ async function detail(id: string): Promise<Store> {
|
||||
});
|
||||
}
|
||||
|
||||
async function directProductSaleEventList(storeId: string): Promise<EventItem[]> {
|
||||
return await axios.post(`${STORE_BASE_URI}/direct-product-sale-event/list`, undefined, {
|
||||
params: { storeId }
|
||||
});
|
||||
}
|
||||
|
||||
async function loginStore(): Promise<Store | undefined> {
|
||||
return await axios.post(`${STORE_BASE_URI}/user`);
|
||||
}
|
||||
@@ -87,7 +80,6 @@ async function removeBusinessDay(id: string): Promise<void> {
|
||||
export default {
|
||||
list,
|
||||
detail,
|
||||
directProductSaleEventList,
|
||||
loginStore,
|
||||
create,
|
||||
update,
|
||||
|
||||
Reference in New Issue
Block a user