💥 feat(模块): 赠送会员
This commit is contained in:
@ -298,3 +298,32 @@ export async function deleteCityOperator(id: number) {
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
export async function getGiveVipList(
|
||||
params: API.PageParams & Partial<API.GiveVipListItem>,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
const result = await request<API.TableList<API.GiveVipListItem>>(AdminAPI.GIVE_VIP_LIST, {
|
||||
method: 'POST',
|
||||
data: {
|
||||
...transformPageParams(params),
|
||||
...(options || {}),
|
||||
},
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
export async function postGiveVip(options: API.PostGiveVip) {
|
||||
return request<API.GiveVipListItem>(AdminAPI.GIVE_VIP, {
|
||||
method: 'POST',
|
||||
data: {
|
||||
...(options || {}),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
export async function getProductList(productType: API.ProductType) {
|
||||
return request<API.ProductSpecListItem[]>(buildUrl(AdminAPI.PRODUCT_LIST, { productType }), {
|
||||
method: 'GET',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user