diff --git a/src/app/services/trade/meituan.service.ts b/src/app/services/trade/meituan.service.ts new file mode 100644 index 0000000..3a7d850 --- /dev/null +++ b/src/app/services/trade/meituan.service.ts @@ -0,0 +1,35 @@ +import { Injectable } from '@angular/core'; +import {HttpClient} from "@angular/common/http"; +import {environment} from "../../../environments/environment"; +import {ObjectData} from "../../utils/objectData.service"; + +@Injectable({ + providedIn: 'root' +}) +export class MeituanService { + constructor(private http: HttpClient) { } + + /** + * 查询订单列表 + * @param param + * @param callBack + */ + public getListMeiTuan(param: object, callBack:any) { + this.http.get(environment.orderUrl + 'orderMeiTuan/getListMeiTuan?'+ObjectData.objectByString(param)).subscribe(data => { + callBack(data); + }); + } + + /** + * 订单导出 + * @param param + * @param callBack + */ + public exportMeiTuanOrder(param: object, callBack:any) { + this.http.get(environment.orderUrl + 'orderGoods/exportGoodsOrder?'+ObjectData.objectByString(param)).subscribe(data => { + callBack(data); + }); + } + + +}