第一次上传
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
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 };
|
||||
Reference in New Issue
Block a user