Files
QCN_rider/.svn/pristine/e3/e3825b19b25446f9d29711900b8e8f0c94913c30.svn-base
2026-02-12 12:19:20 +08:00

44 lines
1.5 KiB
Plaintext

import { Service } from '@/Service/Service';
/*****首页接口*****/
class CNRiderDataService {
private static GetPubRiderInfoPath : string = '/Rider/GetRiderInfo';
/*****个人信息*****/
static GetRiderInfo() {
var result = Service.Request(this.GetPubRiderInfoPath, "GET", {});
return result;
}
private static CompleteRiderPath : string = '/Rider/CompleteRider';
/*****完善信息接口*****/
static CompleteRider(nick:string,headImg:string,idenNumber:string,sex:string,age:number,identityA:string,identityB:string,province:string,city:string,region:string,lat:number,lon:number) {
var result = Service.Request(this.CompleteRiderPath, "POST", {nick,headImg,idenNumber,sex,age,identityA,identityB,province,city,region,lat,lon});
return result;
}
private static GetAddressInfoPath : string = '/User/GetAddressInfo';
/*****根据经纬度获取地址信息*****/
static GetAddressInfo(lat:number,lon:number) {
var result = Service.Request(this.GetAddressInfoPath, "GET", {lat,lon});
return result;
}
private static GetRiderAccInfoPath : string = '/Rider/GetRiderAccInfo';
/*****获取账户信息*****/
static GetRiderAccInfo() {
var result = Service.Request(this.GetRiderAccInfoPath, "GET", {});
return result;
}
private static UpdateRiderUnitPath : string = '/Rider/UpdateRiderUnit';
/*****修改基础信息*****/
static UpdateRiderUnit(headImg:string,sex:string,age:number) {
var result = Service.Request(this.UpdateRiderUnitPath, "POST", {headImg,sex,age});
return result;
}
}
export {
Service,
CNRiderDataService
}