嗨森逛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-user.service.ts

39 lines
970 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 FleetOilCardUserService {
constructor(
private http: HttpClient,
private common: CommonsService
) { }
/**
* 删除用户
*
* @param param 参数对象
* @param callBack 回调
*/
public delete(param: object, callBack) {
this.http.post(environment.baseUrl + 'fleetOilCardUser/delete', param).subscribe(data => {
callBack(data);
});
}
/**
* 查询用户列表
*
* @param param 参数对象
* @param callBack 回调
*/
public getUserList(param: object, callBack) {
this.http.get(environment.baseUrl + 'fleetOilCardUser/getUserList?' + this.common.getWhereCondition(param)).subscribe(data => {
callBack(data);
});
}
}