+
地区
diff --git a/src/app/services/commons.service.ts b/src/app/services/commons.service.ts
index e6b2348..87e9a75 100644
--- a/src/app/services/commons.service.ts
+++ b/src/app/services/commons.service.ts
@@ -183,12 +183,24 @@ export class CommonsService {
* @param codeType 页码
* @param callback 回调
*/
- public getDictionary(codeType: string , callback): any {
- this.http.get(environment.baseUrl + '/common/getDictionaryByCodeType?codeType=' + codeType).subscribe( data => {
+ public getRedisValueByType(key: string , callback): any {
+ this.http.get(environment.baseUrl + '/common/getRedisValueByType?key=' + key).subscribe( data => {
callback(data);
});
}
+ /**
+ * 根据数据类型查询数据字典
+ *
+ * @param codeType 页码
+ * @param callback 回调
+ */
+ public getDictionary(codeType: string , callback): any {
+ this.http.get(environment.baseUrl + '/common/getDictionaryByCodeType?codeType=' + codeType).subscribe( data => {
+ callback(data);
+ });
+ }
+
public mappingSysNameOl(codeType: string , callback): any {
this.http.get(environment.baseUrl + '/common/getDictionaryByCodeTypeOl?codeType=' + codeType).subscribe( data => {
callback(data);
diff --git a/src/app/services/discount-package.service.ts b/src/app/services/discount-package.service.ts
index ef3d328..0c0db0d 100644
--- a/src/app/services/discount-package.service.ts
+++ b/src/app/services/discount-package.service.ts
@@ -193,5 +193,30 @@ export class DiscountPackageService {
});
}
+ public getPhoneListByFileUrl(paramsObject: object, callBack) {
+ this.http.post(environment.baseUrl + 'highDiscountPackage/getPhoneListByFileUrl', paramsObject).subscribe(data => {
+ callBack(data);
+ });
+ }
+
+ public getPhoneRegisterStatus(paramsObject: object, callBack) {
+ this.http.post(environment.baseUrl + 'highDiscountPackage/getPhoneRegisterStatus', paramsObject).subscribe(data => {
+ callBack(data);
+ });
+ }
+
+ public getHandleByPackageId(paramsObject: object, callBack) {
+ this.http.post(environment.baseUrl + 'highDiscountPackage/getHandleByPackageId', paramsObject).subscribe(data => {
+ callBack(data);
+ });
+ }
+
+ public giveAway(paramsObject: object, callBack) {
+ this.http.post(environment.baseUrl + 'highDiscountPackage/giveAway', paramsObject).subscribe(data => {
+ callBack(data);
+ });
+ }
+
+
}
diff --git a/src/app/services/gas-channel-config.service.ts b/src/app/services/gas-channel-config.service.ts
new file mode 100644
index 0000000..029e6ef
--- /dev/null
+++ b/src/app/services/gas-channel-config.service.ts
@@ -0,0 +1,40 @@
+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 GasChannelConfigService {
+
+ constructor(
+ private http: HttpClient,
+ private common: CommonsService
+ ) { }
+
+ /**
+ * 编辑第三方
+ *
+ * @param param 参数对象
+ * @param callBack 回调
+ */
+ public editTripartitePlatform(param: object, callBack) {
+ this.http.post(environment.baseUrl + 'gasChannelConfig/editTripartitePlatform', param).subscribe(data => {
+ callBack(data);
+ });
+ }
+
+ /**
+ * 查询详情
+ *
+ * @param param 参数对象
+ * @param callBack 回调
+ */
+ public getDetail(channelId: number, payPlatformType: number, callBack) {
+ this.http.get(environment.baseUrl + 'gasChannelConfig/getDetail?channelId=' + channelId + '&payPlatformType=' + payPlatformType).subscribe(data => {
+ callBack(data);
+ });
+ }
+
+}