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

67 lines
1.6 KiB

4 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 RechargeService {
constructor(
private http: HttpClient,
private common: CommonsService
) {
}
/**
*
*
* @param paramsObject
* @param callBack
*/
public getListOutRechargePrice(paramsObject: object, callBack) {
this.http.get(environment.baseUrl + 'outRechargePrice/getListOutRechargePrice?' + this.common.getWhereCondition(paramsObject)).subscribe(data => {
callBack(data);
});
}
/**
*
*
* @param params
* @param callBack
* @return data
*/
public insertPrice(params: object, callBack) {
this.http.post(environment.baseUrl + 'outRechargePrice/insertPrice', params).subscribe(data => {
callBack(data);
});
}
/**
*
*
* @param params
* @param callBack
* @return data
*/
public updateAgent(params: object, callBack) {
this.http.post(environment.baseUrl + 'outRechargePrice/updatePrice', params).subscribe(data => {
callBack(data);
});
}
/**
* id查询详情
*
* @param agentId id
* @param callBack
*/
public findByAgentId(agentId: number, callBack) {
this.http.get(environment.baseUrl + 'highAgent/findByAgentId?agentId=' + agentId).subscribe(data => {
callBack(data);
});
}
}