This commit is contained in:
2024-03-15 23:20:20 +08:00
parent 3ce85e2396
commit 351e20f0c0
19 changed files with 311 additions and 72 deletions

View File

@@ -17,7 +17,8 @@ enum URL {
addressCreate = '/ext/addr/create',
addressUpdate = '/ext/addr/update',
addressDelete = '/ext/addr/delete',
dynamicCode = '/member/dynccode'
dynamicCode = '/member/dynccode',
rechargeList = '/ext/recharge/rule_config'
}
export const getUserProfile = () => get<UserState>({ url: URL.profile });
@@ -30,14 +31,13 @@ export const logout = () => post<any>({ url: URL.logout });
export const getAddressList = () => get<any>({ url: URL.addressList });
export const getAddressDetail = (id: string) => get<any>({ url: URL.addressDetail + `?id=${id}` });
export const addressCreate = (data: any) => post<any>({ url: URL.addressCreate, data });
export const addressUpdate = (data: any) => post<any>({ url: URL.addressUpdate, data });
export const addressDelete = (id: string) => post<any>({ url: URL.addressDelete + `?id=${id}` });
export const getDynamicCode = () => post<any>({ url: URL.dynamicCode });
export const getCouponList = (params: {
obj: { memberId: string, status: number },
pageNum: number,
pageSize: number
}) => get<any>({ url: '/couponseUse/pageList' });
export const getRechargeList = () => get<any>({ url: URL.rechargeList });
export const getCouponList = (data: any) => post<any>({ url: '/couponseUse/pageList', data });