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

28 lines
688 B

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 MerAmountService {
constructor(
private http: HttpClient,
private common: CommonsService
) { }
/**
* 充值
*
* @param params 上传对象
* @param callBack 回调
* @return data 返回结果
*/
public recharge(params: object, callBack) {
this.http.post(environment.baseUrl + 'merAccount/recharge', params).subscribe(data => {
callBack(data);
});
}
}