嗨森逛PC管理端
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.
high-web/src/app/services/ty-agent-price.service.ts

61 lines
1.5 KiB

3 years ago
import { Injectable } from '@angular/core';
import {HttpClient} from "_@angular_common@9.0.7@@angular/common/http";
import {CommonsService} from "./commons.service";
import {environment} from "../../environments/environment";
@Injectable({
providedIn: 'root'
})
export class TyAgentPriceService {
constructor(
private http: HttpClient,
private common: CommonsService
) { }
/**
*
* @param paramObject
* @param callBack
*/
editPrice(paramObject: object, callBack) {
this.http.post(environment.baseUrl + 'tyAgentPrice/editPrice', paramObject).subscribe(data => {
callBack(data);
});
}
3 years ago
/**
*
* @param paramObject
* @param callBack
*/
batchConfigPrice(paramObject: object, callBack) {
this.http.post(environment.baseUrl + 'tyAgentPrice/batchConfigPrice', paramObject).subscribe(data => {
callBack(data);
});
}
/**
*
* @param paramObject
* @param callBack
*/
batchConfigOilNo(paramObject: object, callBack) {
this.http.post(environment.baseUrl + 'tyAgentPrice/batchConfigOilNo', paramObject).subscribe(data => {
callBack(data);
});
}
3 years ago
/**
*
* @param paramObject
* @param callBack
*/
3 years ago
getOilStationPrice(belongType: number, oilStationId: number, callBack) {
this.http.get(environment.baseUrl + 'tyAgentPrice/getOilStationPrice?belongType=' + belongType + '&oilStationId=' + oilStationId).subscribe(data => {
3 years ago
callBack(data);
});
}
3 years ago
3 years ago
}