first commit
This commit is contained in:
36
src/Service/Nvp/NvpAddressService.ts
Normal file
36
src/Service/Nvp/NvpAddressService.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import { Service } from '@/Service/Service';
|
||||
/*****登录接口*****/
|
||||
class NvpAddressService {
|
||||
private static GetAddressListPath: string = '/Address/GetAddressList';
|
||||
/*****收货地址*****/
|
||||
static GetAddressList(page: number) {
|
||||
var result = Service.Request(this.GetAddressListPath, "GET", { page });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static DelUserAddressPath: string = '/Address/DelUserAddress';
|
||||
/*****删除地址*****/
|
||||
static DelUserAddress(uaId: string) {
|
||||
var result = Service.Request(this.DelUserAddressPath, "POST", { uaId });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static AddUserAddressPath: string = '/Address/AddUserAddress';
|
||||
/*****添加地址*****/
|
||||
static AddUserAddress(uaId: string, name: string, phone: string, province: string, city: string, county: string, address: string, isDefault: number) {
|
||||
var result = Service.Request(this.AddUserAddressPath, "POST", { uaId, name, phone, province, city, county, address, isDefault });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static UpdateUserAddressPath: string = '/Address/UpdateUserAddress';
|
||||
/*****修改默认地址*****/
|
||||
static UpdateUserAddress(uaId: string) {
|
||||
var result = Service.Request(this.UpdateUserAddressPath, "POST", { uaId });
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
export {
|
||||
Service,
|
||||
NvpAddressService
|
||||
}
|
||||
43
src/Service/Nvp/NvpAgentService.ts
Normal file
43
src/Service/Nvp/NvpAgentService.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
import { Service } from '@/Service/Service';
|
||||
/*****代理端接口*****/
|
||||
class NvpAgentService {
|
||||
private static LoginPath: string = '/Agent/Login';
|
||||
/*****登录接口*****/
|
||||
static Login(name: string, pwd: string) {
|
||||
var result = Service.Request(this.LoginPath, "POST", { name, pwd });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetAgentAccInfoPath: string = '/Agent/GetAgentAccInfo';
|
||||
/*****账户接口*****/
|
||||
static GetAgentAccInfo() {
|
||||
var result = Service.Request(this.GetAgentAccInfoPath, "GET", "");
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetAgentAccLogPath: string = '/Agent/GetAgentAccLog';
|
||||
/*****账户记录*****/
|
||||
static GetAgentAccLog(code: string, page: number) {
|
||||
var result = Service.Request(this.GetAgentAccLogPath, "GET", { code, page });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetAgentMerchPath: string = '/Agent/GetAgentMerch';
|
||||
/*****获取代理开通商家*****/
|
||||
static GetAgentMerch(type: number, page: number) {
|
||||
var result = Service.Request(this.GetAgentMerchPath, "GET", { type, page });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetAgentHomePath: string = '/Agent/GetAgentHome';
|
||||
/*****代理主页*****/
|
||||
static GetAgentHome() {
|
||||
var result = Service.Request(this.GetAgentHomePath, "GET", { });
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
export {
|
||||
Service,
|
||||
NvpAgentService
|
||||
}
|
||||
156
src/Service/Nvp/NvpApplyService.ts
Normal file
156
src/Service/Nvp/NvpApplyService.ts
Normal file
@@ -0,0 +1,156 @@
|
||||
import { Service } from '@/Service/Service';
|
||||
/*****用户接口*****/
|
||||
class NvpApplyService {
|
||||
// private static WithDrawPath: string = '/With/WithDraw';
|
||||
// /*****佣金提现*****/
|
||||
// static WithDraw(money: number, name: string, account: string) {
|
||||
// var result = Service.Request(this.WithDrawPath, "POST", { money, name, account });
|
||||
// return result;
|
||||
// }
|
||||
|
||||
private static GetSiteMccCodeListPath: string = '/Apply/GetSiteMccCodeList';
|
||||
/*****获取mcc列表*****/
|
||||
static GetSiteMccCodeList(mercType:string, mchType: string) {
|
||||
var result = Service.Request(this.GetSiteMccCodeListPath, "GET", {mercType, mchType });
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private static GetBankTypeListPath: string = '/Apply/GetBankTypeList';
|
||||
/*****获取银行列表*****/
|
||||
static GetBankTypeList(name:string) {
|
||||
var result = Service.Request(this.GetBankTypeListPath, "GET", {name});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static GetAreaListPath: string = '/Apply/GetAreaList';
|
||||
/*****获取银行地区列表*****/
|
||||
static GetAreaList(areaCode:string) {
|
||||
var result = Service.Request(this.GetAreaListPath, "GET", { areaCode});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private static GetBankCodeListPath: string = '/Apply/GetBankCodeList';
|
||||
/*****获取银行代码列表*****/
|
||||
static GetBankCodeList(bankType:string,cityCode:string,name:string) {
|
||||
var result = Service.Request(this.GetBankCodeListPath, "GET", {bankType,cityCode,name});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static SendApplyMerchPath: string = '/Apply/SendApplyMerch';
|
||||
/*****进价提交*****/
|
||||
static SendApplyMerch(para:any) {
|
||||
var result = Service.Request(this.SendApplyMerchPath, "POST", para);
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetAgentMerchLogPath: string = '/Apply/GetAgentMerchLog';
|
||||
/*****获取待审核*****/
|
||||
static GetAgentMerchLog() {
|
||||
var result = Service.Request(this.GetAgentMerchLogPath, "GET", {});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private static AuditApplyPath: string = '/Apply/AuditApply';
|
||||
/*****确认资料*****/
|
||||
static AuditApply(outId:string) {
|
||||
var result = Service.Request(this.AuditApplyPath, "POST", {outId});
|
||||
return result;
|
||||
}
|
||||
|
||||
private static SetPayFeePath: string = '/Apply/SetPayFee';
|
||||
/*****确认资料*****/
|
||||
static SetPayFee(outId:string) {
|
||||
var result = Service.Request(this.SetPayFeePath, "POST", {outId});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static GetAssortListPath: string = '/Apply/GetAssortList';
|
||||
/*****获取v派分类*****/
|
||||
static GetAssortList(code:string) {
|
||||
var result = Service.Request(this.GetAssortListPath, "GET", {code,parent:'0'});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static GetAgentMerchPath: string = '/Agent/GetAgentMerch';
|
||||
/*****获取已开通商家*****/
|
||||
static GetAgentMerch(type:number,page:number) {
|
||||
var result = Service.Request(this.GetAgentMerchPath, "GET", {type,page});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static GetAppMerchInfoPath: string = '/Apply/GetAppMerchInfo';
|
||||
/*****获取银盛已填写信息*****/
|
||||
static GetAppMerchInfo(outId:string) {
|
||||
var result = Service.Request(this.GetAppMerchInfoPath, "GET", {outId});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static UpdateMerchPath: string = '/Apply/UpdateMerch';
|
||||
/*****修改银盛信息*****/
|
||||
static UpdateMerch(obj:any) {
|
||||
var result = Service.Request(this.UpdateMerchPath, "POST", obj);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static UploadImgPath: string = '/Apply/UploadImg';
|
||||
/*****修改银盛图片*****/
|
||||
static UploadImg(outId:string,picType:string,img:string) {
|
||||
var result = Service.Request(this.UploadImgPath, "POST", {outId,picType,img});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static GetAgentApplyPath: string = '/Apply/GetAgentApply';
|
||||
/*****获取添加的商家*****/
|
||||
static GetAgentApply(serch:string,page:number) {
|
||||
var result = Service.Request(this.GetAgentApplyPath, "GET", {serch,page});
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetCategoryPath: string = '/Apply/GetCategory';
|
||||
/*****获取商家类型*****/
|
||||
static GetCategory() {
|
||||
var result = Service.Request(this.GetCategoryPath, "GET", {});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static AddMerchInfoPath: string = '/Apply/AddMerchInfo';
|
||||
/*****添加商户*****/
|
||||
static AddMerchInfo(obj:any) {
|
||||
var result = Service.Request(this.AddMerchInfoPath, "POST", obj);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static BandAppIdPath: string = '/Agent/BandAppId';
|
||||
/*****绑定appid*****/
|
||||
static BandAppId(merchId:string) {
|
||||
var result = Service.Request(this.BandAppIdPath, "POST", {merchId});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
export {
|
||||
Service,
|
||||
NvpApplyService
|
||||
}
|
||||
50
src/Service/Nvp/NvpBankService.ts
Normal file
50
src/Service/Nvp/NvpBankService.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
import { Service } from '@/Service/Service';
|
||||
/*****登录接口*****/
|
||||
class NvpBankService {
|
||||
private static GetPageBankListPath: string = '/Bank/GetPageBankList';
|
||||
/*****用户银行卡列表*****/
|
||||
static GetPageBankList(page: number) {
|
||||
var result = Service.Request(this.GetPageBankListPath, "GET", { page });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetBankListPath: string = '/Bank/GetBankList';
|
||||
/*****用户银行卡列表*****/
|
||||
static GetBankList() {
|
||||
var result = Service.Request(this.GetBankListPath, "GET", "");
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetUnitBankListPath: string = '/Bank/GetUnitBankList';
|
||||
/*****银行卡列表*****/
|
||||
static GetUnitBankList() {
|
||||
var result = Service.Request(this.GetUnitBankListPath, "GET", "");
|
||||
return result;
|
||||
}
|
||||
|
||||
private static AddUserBankPath: string = '/Bank/AddUserBank';
|
||||
/*****添加银行卡*****/
|
||||
static AddUserBank(account: string, bank: string, name: string) {
|
||||
var result = Service.Request(this.AddUserBankPath, "POST", { account, bank, name });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static UpdateBankPath: string = '/Bank/UpdateBank';
|
||||
/*****修改银行卡*****/
|
||||
static UpdateBank(ubId: string, bank: string, name: string, account: string) {
|
||||
var result = Service.Request(this.UpdateBankPath, "POST", { ubId, bank, name, account });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static DelUserBankPath: string = '/Bank/DelUserBank';
|
||||
/*****删除银行卡*****/
|
||||
static DelUserBank(ubId: string) {
|
||||
var result = Service.Request(this.DelUserBankPath, "POST", { ubId });
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
export {
|
||||
Service,
|
||||
NvpBankService
|
||||
}
|
||||
36
src/Service/Nvp/NvpLoginService.ts
Normal file
36
src/Service/Nvp/NvpLoginService.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import { Service } from '@/Service/Service';
|
||||
/*****登录接口*****/
|
||||
class NvpLoginService {
|
||||
private static GetWxLoginOpenIdPath: string = '/Login/GetWxLoginOpenId';
|
||||
/*****小程序根据code获取openId*****/
|
||||
static GetWxLoginOpenId(code: string, type: number) {
|
||||
var result = Service.Request(this.GetWxLoginOpenIdPath, "GET", { code, type });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static AppletLoginPath: string = '/Login/AppletLogin';
|
||||
/*****普通登陆接口(小程序)*****/
|
||||
static AppletLogin(openId: string, channel: string) {
|
||||
var result = Service.Request(this.AppletLoginPath, "POST", { openId, channel });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static RegistPath: string = '/Login/Regist';
|
||||
/*****注册接口*****/
|
||||
static Regist(remNo: string, openId: string, uniopenId: string, channel: string, type: number) {
|
||||
var result = Service.Request(this.RegistPath, "POST", { remNo, openId, uniopenId, channel, type });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetNumberPhonePath: string = '/Login/GetNumberPhone';
|
||||
/*****获取手机号*****/
|
||||
static GetNumberPhone(code: string) {
|
||||
var result = Service.Request(this.GetNumberPhonePath, "GET", { code });
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
export {
|
||||
Service,
|
||||
NvpLoginService
|
||||
}
|
||||
32
src/Service/Nvp/NvpMachineService.ts
Normal file
32
src/Service/Nvp/NvpMachineService.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import { Service } from '@/Service/Service';
|
||||
/*****设备接口*****/
|
||||
class NvpMachineService {
|
||||
|
||||
private static GetMerchListPath: string = '/Machine/GetMerchList';
|
||||
/*****商户设备*****/
|
||||
static GetMerchList(merchId: string) {
|
||||
var result = Service.Request(this.GetMerchListPath, "GET", { merchId });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static DelMerchMachinePath: string = '/Machine/DelMerchMachine';
|
||||
/*****删除设备*****/
|
||||
static DelMerchMachine(merchId: string, machineId: string) {
|
||||
var result = Service.Request(this.DelMerchMachinePath, "POST", { merchId, machineId });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static AddMachinePath: string = '/Machine/AddMachine';
|
||||
/*****添加设备*****/
|
||||
static AddMachine(merchId: string, payCode: string) {
|
||||
var result = Service.Request(this.AddMachinePath, "POST", { merchId, payCode });
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
export {
|
||||
Service,
|
||||
NvpMachineService
|
||||
}
|
||||
106
src/Service/Nvp/NvpMerchService.ts
Normal file
106
src/Service/Nvp/NvpMerchService.ts
Normal file
@@ -0,0 +1,106 @@
|
||||
import { Service } from '@/Service/Service';
|
||||
/*****用户接口*****/
|
||||
class NvpMerchService {
|
||||
|
||||
|
||||
private static GetMerchInfoPath: string = '/Merch/GetMerchInfo';
|
||||
/*****获取商家信息*****/
|
||||
static GetMerchInfo(merchId: string,lon:number,lat:number) {
|
||||
var result = Service.Request(this.GetMerchInfoPath, "GET", { merchId,lon,lat});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static GetMerchOrderPath: string = '/Merch/GetMerchOrder';
|
||||
/*****获取商家营业数据*****/
|
||||
static GetMerchOrder(merchId: string) {
|
||||
var result = Service.Request(this.GetMerchOrderPath, "GET", { merchId });
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static UpdateMerchInfoPath: string = '/Merch/UpdateMerchInfo';
|
||||
/*****修改商家信息*****/
|
||||
static UpdateMerchInfo(merchId: string, logo: string ,name:string, phone:string,province:string,city:string,county:string,address:string,lon:string,lat:string,sTime:string,eTime:string,showImg:string) {
|
||||
var result = Service.Request(this.UpdateMerchInfoPath, "POST", { merchId, logo,name ,phone,province,city,county,address,lon,lat,sTime,eTime,showImg});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private static GetMerchAccPath: string = '/Merch/GetMerchAcc';
|
||||
/*****获取商家佣金数据*****/
|
||||
static GetMerchAcc(merchId: string) {
|
||||
var result = Service.Request(this.GetMerchAccPath, "GET", { merchId });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetMerchAccLogPath: string = '/Merch/GetMerchAccLog';
|
||||
/*****获取商家佣金记录*****/
|
||||
static GetMerchAccLog(merchId: string,op:string,page:number) {
|
||||
var result = Service.Request(this.GetMerchAccLogPath, "GET", { merchId,op,page });
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private static MerchWithDrawPath: string = '/Merch/MerchWithDraw';
|
||||
/*****商家佣金提现*****/
|
||||
static MerchWithDraw(merchId: string, money: number ,name:string, account:string) {
|
||||
var result = Service.Request(this.MerchWithDrawPath, "POST", { merchId, money,name,account});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static GetMerchWithLogPath: string = '/Merch/GetMerchWithLog';
|
||||
/*****商家佣金提现记录*****/
|
||||
static GetMerchWithLog(merchId: string) {
|
||||
var result = Service.Request(this.GetMerchWithLogPath, "GET", { merchId });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetMerchTicketListPath: string = '/Merch/GetMerchTicketList';
|
||||
/*****商家优惠券列表*****/
|
||||
static GetMerchTicketList(merchId: string) {
|
||||
var result = Service.Request(this.GetMerchTicketListPath, "GET", { merchId });
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static AddMerchTicketPath: string = '/Merch/AddMerchTicket';
|
||||
/*****商家优惠券修改添加*****/
|
||||
static AddMerchTicket(ticketId: string, merchId: string ,code:string, atkAcc:number,redAcc:number,count:number,useTime:Number,state:Number,addTime:string,endTime:string) {
|
||||
var result = Service.Request(this.AddMerchTicketPath, "POST", { ticketId, merchId,code,atkAcc,redAcc,count,useTime,state,addTime,endTime});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private static DelMerchTicketPath: string = '/Merch/DelMerchTicket';
|
||||
/*****商家删除优惠券*****/
|
||||
static DelMerchTicket(ticketId: string) {
|
||||
var result = Service.Request(this.DelMerchTicketPath, "POST", { ticketId});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static GetTicketInfoPath: string = '/Merch/GetTicketInfo';
|
||||
/*****获取优惠券详情*****/
|
||||
static GetTicketInfo(ticketId: string) {
|
||||
var result = Service.Request(this.GetTicketInfoPath, "GET", { ticketId });
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private static GetAppVersionPath: string = '/Login/GetAppVersion';
|
||||
/*****更新*****/
|
||||
static GetAppVersion() {
|
||||
var result = Service.Request(this.GetAppVersionPath, "GET", {type:2});
|
||||
return result;
|
||||
}
|
||||
}
|
||||
export {
|
||||
Service,
|
||||
NvpMerchService
|
||||
}
|
||||
43
src/Service/Nvp/NvpPubService.ts
Normal file
43
src/Service/Nvp/NvpPubService.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
import { Service } from '@/Service/Service';
|
||||
/*****公共接口*****/
|
||||
class NvpPubService {
|
||||
private static GetIndexPath: string = '/Pub/GetIndex';
|
||||
/*****主页信息*****/
|
||||
static GetIndex() {
|
||||
var result = Service.Request(this.GetIndexPath, "GET", "");
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetIndexDataPath: string = '/Pub/GetIndexData';
|
||||
/*****获取首页数据*****/
|
||||
static GetIndexData(lon: number, lat: number, city: string, county: string, sort: number, page: number) {
|
||||
var result = Service.Request(this.GetIndexDataPath, "GET", { lon, lat, city, county, sort, page });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetMenuDataPath: string = '/Pub/GetMenuData';
|
||||
/*****获取分类*****/
|
||||
static GetMenuData(type: string, parent: string) {
|
||||
var result = Service.Request(this.GetMenuDataPath, "GET", { type, parent });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetMerchDataPath: string = '/Pub/GetMerchData';
|
||||
/*****获取店铺*****/
|
||||
static GetMerchData(code: string, serch: string, assId: string, lon: number, lat: number, city: string, county: string, sort: number, page: number, limit: number) {
|
||||
var result = Service.Request(this.GetMerchDataPath, "GET", { code, serch, assId, lon, lat, city, county, sort, page, limit });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetRandomMerchPath: string = '/Pub/GetRandomMerch';
|
||||
/*****随机获取商家*****/
|
||||
static GetRandomMerch(count: number, lon: number, lat: number, city: string, county: string) {
|
||||
var result = Service.Request(this.GetRandomMerchPath, "GET", { count, lon, lat, city, county });
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
export {
|
||||
Service,
|
||||
NvpPubService
|
||||
}
|
||||
22
src/Service/Nvp/NvpTencentCosService.ts
Normal file
22
src/Service/Nvp/NvpTencentCosService.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { Service } from '@/Service/Service';
|
||||
/*****腾讯云存储*****/
|
||||
class NvpTencentCosService {
|
||||
private static GetAuthorizationPath: string = '/TencentCos/GetAuthorization';
|
||||
/*****获取云存储配置*****/
|
||||
static GetAuthorization() {
|
||||
var result = Service.Request(this.GetAuthorizationPath, "GET", "");
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetUpLoadInfoPath: string = '/TencentCos/GetUpLoadInfo';
|
||||
/*****获取上传地址*****/
|
||||
static GetUpLoadInfo(code: string, fileName: string, desire: string) {
|
||||
var result = Service.Request(this.GetUpLoadInfoPath, "GET", { code, fileName, desire });
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
export {
|
||||
Service,
|
||||
NvpTencentCosService
|
||||
}
|
||||
43
src/Service/Nvp/NvpUserService.ts
Normal file
43
src/Service/Nvp/NvpUserService.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
import { Service } from '@/Service/Service';
|
||||
/*****用户接口*****/
|
||||
class NvpUserService {
|
||||
private static GetUserInfoPath: string = '/User/GetUserInfo';
|
||||
/*****用户基础信息*****/
|
||||
static GetUserInfo() {
|
||||
var result = Service.Request(this.GetUserInfoPath, "GET", "");
|
||||
return result;
|
||||
}
|
||||
|
||||
private static UpdateUserInfoPath: string = '/User/UpdateUserInfo';
|
||||
/*****修改用户信息*****/
|
||||
static UpdateUserInfo(par: string, smsCode: string, type: number) {
|
||||
var result = Service.Request(this.UpdateUserInfoPath, "POST", { par, smsCode, type });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetUserAccLogPath: string = '/User/GetUserAccLog';
|
||||
/*****获取账户记录*****/
|
||||
static GetUserAccLog(code: string, accType: string, page: number) {
|
||||
var result = Service.Request(this.GetUserAccLogPath, "GET", { code, accType, page });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetUserCommissionInfoPath: string = '/User/GetUserCommissionInfo';
|
||||
/*****用户佣金账户*****/
|
||||
static GetUserCommissionInfo() {
|
||||
var result = Service.Request(this.GetUserCommissionInfoPath, "GET", "");
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetUserCommissionLogPath: string = '/User/GetUserCommissionLog';
|
||||
/*****用户佣金记录*****/
|
||||
static GetUserCommissionLog(code: string, accType: string, page: number) {
|
||||
var result = Service.Request(this.GetUserCommissionLogPath, "GET", { code, accType, page });
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
export {
|
||||
Service,
|
||||
NvpUserService
|
||||
}
|
||||
22
src/Service/Nvp/NvpWithService.ts
Normal file
22
src/Service/Nvp/NvpWithService.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { Service } from '@/Service/Service';
|
||||
/*****用户接口*****/
|
||||
class NvpWithService {
|
||||
private static WithDrawPath: string = '/With/WithDraw';
|
||||
/*****佣金提现*****/
|
||||
static WithDraw(money: number, name: string, account: string) {
|
||||
var result = Service.Request(this.WithDrawPath, "POST", { money, name, account });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetUserWithLogPath: string = '/With/GetUserWithLog';
|
||||
/*****用户提现记录*****/
|
||||
static GetUserWithLog(page: number) {
|
||||
var result = Service.Request(this.GetUserWithLogPath, "GET", { page });
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
export {
|
||||
Service,
|
||||
NvpWithService
|
||||
}
|
||||
Reference in New Issue
Block a user