33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
import { Service } from '@/Service/Service';
|
|
/*****地址信息*****/
|
|
class vpAddressService {
|
|
private static GetUserAddressListPath : string = '/Address/GetUserAddressList';
|
|
/*****获取用户地址列表*****/
|
|
static GetUserAddressList() {
|
|
var result = Service.Request(this.GetUserAddressListPath, 'GET', {});
|
|
return result;
|
|
}
|
|
|
|
private static GetUserAddressInfoPath : string = '/Address/GetUserAddressInfo';
|
|
/*****获取用户地址详情*****/
|
|
static GetUserAddressInfo(addressId:string) {
|
|
var result = Service.Request(this.GetUserAddressInfoPath, 'GET', {addressId});
|
|
return result;
|
|
}
|
|
|
|
private static UpdateAddressPath : string = '/Address/UpdateAddress';
|
|
/*****修改/添加用户收货地址*****/
|
|
static UpdateAddress(data:any) {
|
|
var result = Service.Request(this.UpdateAddressPath, 'POST', data);
|
|
return result;
|
|
}
|
|
|
|
private static DelUserAddressPath : string = '/Address/DelUserAddress';
|
|
/*****删除用户收货地址*****/
|
|
static DelUserAddress(addressId:string) {
|
|
var result = Service.Request(this.DelUserAddressPath, 'POST', {addressId});
|
|
return result;
|
|
}
|
|
|
|
}
|
|
export { Service, vpAddressService }; |