fix tag style
This commit is contained in:
+15
-2
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user