袁野 1 month ago
parent 689a40f1d3
commit 960ecb1034
  1. 35
      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);
});
}
}
Loading…
Cancel
Save