优化
This commit is contained in:
@@ -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 });
|
||||
|
Reference in New Issue
Block a user