嗨森逛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/fleet-oil-card-car.service.ts

39 lines
965 B

import { Injectable } from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {CommonsService} from './commons.service';
import {environment} from '../../environments/environment';
@Injectable({
providedIn: 'root'
})
export class FleetOilCardCarService {
constructor(
private http: HttpClient,
private common: CommonsService
) { }
/**
* 删除用户
*
* @param param 参数对象
* @param callBack 回调
*/
public delete(param: object, callBack) {
this.http.post(environment.baseUrl + 'fleetOilCardCar/delete', param).subscribe(data => {
callBack(data);
});
}
/**
* 查询车辆列表
*
* @param param 参数对象
* @param callBack 回调
*/
public getCarList(param: object, callBack) {
this.http.get(environment.baseUrl + 'fleetOilCardCar/getCarList?' + this.common.getWhereCondition(param)).subscribe(data => {
callBack(data);
});
}
}