You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
896 B
36 lines
896 B
10 months ago
|
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 OrderRefundService {
|
||
|
|
||
|
constructor(private http: HttpClient) { }
|
||
|
|
||
|
/**
|
||
|
* 查询退款订单列表
|
||
|
* @param param
|
||
|
* @param callBack
|
||
|
*/
|
||
|
public queryList(param: object, callBack:any) {
|
||
|
this.http.get(environment.orderUrl + 'refund/queryList?'+ObjectData.objectByString(param)).subscribe(data => {
|
||
|
callBack(data);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 查询退款订单
|
||
|
* @param param
|
||
|
* @param callBack
|
||
|
*/
|
||
|
public queryRefund(param: object, callBack:any) {
|
||
|
this.http.get(environment.orderUrl + 'refund/queryRefund?'+ObjectData.objectByString(param)).subscribe(data => {
|
||
|
callBack(data);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
}
|