fix tag style

This commit is contained in:
Timi
2026-08-13 20:49:50 +08:00
parent 6ebd83edbc
commit 4f8b992350
6 changed files with 140 additions and 17 deletions
+15 -2
View File
@@ -4,8 +4,21 @@ import { getCurrentStoreId, withCurrentStoreId, withCurrentStorePage } from "@/u
const BASE_URI = "/gao/customer";
async function list(page: Page<Customer>): Promise<PageResult<Customer>> {
return await axios.post(`${BASE_URI}/list`, withCurrentStorePage(page));
export type CustomerPage = Page<Customer> & {
keyword?: string;
storeId?: string;
tagIdList?: string[];
};
async function list(page: CustomerPage): Promise<PageResult<Customer>> {
const req = withCurrentStorePage(page);
return await axios.post(`${BASE_URI}/list`, {
index: req.index,
size: req.size,
keyword: page.keyword || page.likesExample?.code || page.likesExample?.name || page.likesExample?.telephone,
storeId: page.storeId || req.equalsExample?.storeId,
tagIdList: page.tagIdList || []
});
}
async function detail(id: string): Promise<Customer> {