import { Service } from '@/Service/Service'; /*****社区*****/ class vpMerchService { private static GetMerchListPath: string = '/Merch/GetMerchList'; /*****商家列表*****/ static GetMerchList(assId: string,comId:string,lon:number,lat:number,page:number) { var result = Service.Request(this.GetMerchListPath, 'GET', {assId,comId,lon,lat,page}); return result; } private static GetMerchInfoPath: string = '/Merch/GetMerchInfo'; /*****店铺详情*****/ static GetMerchInfo(merchId: string,page:number) { var result = Service.Request(this.GetMerchInfoPath, 'GET', {merchId,page}); return result; } private static GetGoodsInfoPath: string = '/Merch/GetGoodsInfo'; /*****商品详情*****/ static GetGoodsInfo(goodsId: string,page:number) { var result = Service.Request(this.GetGoodsInfoPath, 'GET', {goodsId,page}); return result; } private static GetMyMerchInfoPath: string = '/Merch/GetMyMerchInfo'; /*****获取用户个人绑定商家*****/ static GetMyMerchInfo() { var result = Service.Request(this.GetMyMerchInfoPath, 'GET', {}); return result; } private static UpdateMerchPath: string = '/Merch/UpdateMerch'; /*****修改用户个人绑定商家*****/ static UpdateMerch(comId:string,name:string,showImg:string,phone:string,price:number,province:string,city:string,county:string,address:string,lon:number,lat:number,busTime:string,tag:string) { var result = Service.Request(this.UpdateMerchPath, 'POST', {comId,name,showImg,phone,price,province,city,county,address,lon,lat,busTime,tag}); return result; } private static GetMerchGoodsPath: string = '/Merch/GetMerchGoods'; /*****获取商家商品列表*****/ static GetMerchGoods(page:number) { var result = Service.Request(this.GetMerchGoodsPath, 'GET', {page}); return result; } private static UpdateGoodsStatusPath: string = '/Merch/UpdateGoodsStatus'; /*****修改商品上下架*****/ static UpdateGoodsStatus(goodsId:string) { var result = Service.Request(this.UpdateGoodsStatusPath, 'POST', {goodsId}); return result; } private static UpdateMerchGoodsPath: string = '/Merch/UpdateMerchGoods'; /*****删除商品*****/ static UpdateMerchGoods(goodsId:string,name:string,img:string,price:string,brief:string,status:string) { var result = Service.Request(this.UpdateMerchGoodsPath, 'POST', {goodsId,name,img,price,brief,status}); return result; } private static DelGoodsPath: string = '/Merch/DelGoods'; /*****修改商品*****/ static DelGoods(goodsId:string) { var result = Service.Request(this.DelGoodsPath, 'POST', {goodsId}); return result; } } export { Service, vpMerchService };