From 960ecb10342985c6d8380089f2044d0f013cbef4 Mon Sep 17 00:00:00 2001 From: yuanye <418471657@qq.com> Date: Mon, 30 Sep 2024 14:11:14 +0800 Subject: [PATCH] 1 --- src/app/services/trade/meituan.service.ts | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/app/services/trade/meituan.service.ts 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); + }); + } + + +}