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.
40 lines
1.1 KiB
40 lines
1.1 KiB
import { Injectable } from '@angular/core';
|
|
|
|
import {CommonsService} from './commons.service';
|
|
import {environment} from '../../environments/environment';
|
|
import {HttpClient} from '@angular/common/http';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class MerchantTripartitePlatformService {
|
|
|
|
constructor(
|
|
private http: HttpClient,
|
|
private common: CommonsService
|
|
) { }
|
|
|
|
/**
|
|
* 查询商户列表
|
|
*
|
|
* @param paramsObject 对象
|
|
* @param callBack 回调
|
|
*/
|
|
public editTripartitePlatform(paramsObject: object, callBack) {
|
|
this.http.post(environment.baseUrl + 'merchantTripartitePlatform/editTripartitePlatform', paramsObject).subscribe(data => {
|
|
callBack(data);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 查询详情
|
|
*
|
|
* @param paramsObject 对象
|
|
* @param callBack 回调
|
|
*/
|
|
public getDetail(merId: number, platformType: number, callBack) {
|
|
this.http.get(environment.baseUrl + 'merchantTripartitePlatform/getDetail?merId=' + merId + '&platformType=' + platformType).subscribe(data => {
|
|
callBack(data);
|
|
});
|
|
}
|
|
}
|
|
|