嗨森逛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

238 lines
5.8 KiB

4 years ago
import { Injectable } from '@angular/core';
3 years ago
import {HttpClient} from '@angular/common/http';
4 years ago
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);
});
}
3 years ago
/**
* @Author Sum1Dream
* @methodName deletePrice
* @Description //上下架
* @Date 15:03 2021/8/12
* @Param mod
**/
public onAndOffShelves(id: number, callBack) {
this.http.get(environment.baseUrl + 'outRechargePrice/onAndOffShelves?id=' + id).subscribe(data => {
callBack(data);
});
}
4 years ago
/**
*
*
* @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
*/
4 years ago
public updatePrice(params: object, callBack) {
4 years ago
this.http.post(environment.baseUrl + 'outRechargePrice/updatePrice', params).subscribe(data => {
callBack(data);
});
}
/**
* id查询详情
*
4 years ago
* @param id id
4 years ago
* @param callBack
*/
4 years ago
public findById(id: number, callBack) {
this.http.get(environment.baseUrl + 'outRechargePrice/findById?id=' + id).subscribe(data => {
4 years ago
callBack(data);
});
}
4 years ago
/**
* id查询详情
*
* @param id id
* @param callBack
*/
public deletePrice(id: number, callBack) {
this.http.get(environment.baseUrl + 'outRechargePrice/deletePrice?id=' + id).subscribe(data => {
callBack(data);
});
}
/**
*
*
* @param paramsObject
* @param callBack
*/
public getOrderList(paramsObject: object, callBack) {
this.http.get(environment.baseUrl + 'outRechargeOrder/getOrderList?' + this.common.getWhereCondition(paramsObject)).subscribe(data => {
callBack(data);
});
}
4 years ago
/**
* id查询详情
*
* @param id id
* @param callBack
*/
public getOrderById(id: number, callBack) {
this.http.get(environment.baseUrl + 'outRechargeOrder/getOrderById?orderId=' + id).subscribe(data => {
callBack(data);
});
}
/**
* id完成订单
*
* @param id id
* @param callBack
*/
public finishOrder(id: number, callBack) {
this.http.get(environment.baseUrl + 'outRechargeOrder/finishOrder?orderId=' + id).subscribe(data => {
callBack(data);
});
}
3 years ago
/**
* id完成退款
*
* @param id id
* @param callBack
*/
public orderToRefund(id: number, callBack) {
this.http.get(environment.baseUrl + 'outRechargeOrder/orderToRefund?orderId=' + id).subscribe(data => {
callBack(data);
});
}
/**
* 退
*
* @param id id
* @param callBack
*/
public postRefund(params: object, callBack) {
this.http.post(environment.baseUrl + 'highRefundAudit/insertRefundAudit', params).subscribe(data => {
callBack(data);
});
}
4 years ago
/**
*
*
* @param id id
* @param callBack
*/
public countOrder(callBack) {
this.http.get(environment.baseUrl + 'outRechargeOrder/countOrder').subscribe(data => {
callBack(data);
});
}
3 years ago
/**
*
*
* @param paramsObject
* @param callBack
*/
public getOrderCountList(paramsObject: object, callBack) {
this.http.get(environment.baseUrl + 'outRechargeOrder/getOrderCountList?' + this.common.getWhereCondition(paramsObject)).subscribe(data => {
callBack(data);
});
}
3 years ago
/**
*
*
* @param paramsObject
* @param callBack
*/
public exportOrderListCount(paramsObject: object, callBack) {
this.http.get(environment.baseUrl + 'outRechargeOrder/exportOrderListCount?' + this.common.getWhereCondition(paramsObject)).subscribe(data => {
callBack(data);
});
}
/**
*
*
* @param paramsObject
* @param callBack
*/
public exportOrderList(paramsObject: object, callBack) {
this.http.get(environment.baseUrl + 'outRechargeOrder/exportOrderList?' + this.common.getWhereCondition(paramsObject)).subscribe(data => {
callBack(data);
});
}
/**
*
*
* @param paramsObject
* @param callBack
*/
public getUserCountList(paramsObject: object, callBack) {
this.http.get(environment.baseUrl + 'outRechargeOrder/getUserCountList?' + this.common.getWhereCondition(paramsObject)).subscribe(data => {
callBack(data);
});
}
/**
*
*
* @param paramsObject
* @param callBack
*/
public exportUserOrderListCount(paramsObject: object, callBack) {
this.http.get(environment.baseUrl + 'outRechargeOrder/exportUserOrderListCount?' + this.common.getWhereCondition(paramsObject)).subscribe(data => {
callBack(data);
});
}
3 years ago
/**
*
*
* @param callBack
*/
public getMemberGoods(callBack) {
this.http.get(environment.baseUrl + 'telApi/getMemberGoods').subscribe(data => {
callBack(data);
});
}
3 years ago
4 years ago
}