help data
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import {SessionDataProviderService} from "./session-data-provider.service";
|
||||
import {WrenchService} from "../services/wrench.service";
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class HelpDataService {
|
||||
|
||||
constructor( public sessionDataProviderService: SessionDataProviderService,
|
||||
private wrenchService: WrenchService,) { }
|
||||
|
||||
helpDataTotalResult: any;
|
||||
helpDataResult: any;
|
||||
|
||||
async getHelpData(){
|
||||
|
||||
var reqData = {
|
||||
action:13025,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session,
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
this.wrenchService.helpData(reqData).subscribe(
|
||||
helpDataTotalResult => {
|
||||
this.helpDataTotalResult = helpDataTotalResult;
|
||||
console.log("helpDataTotalResult RETURN->", this.helpDataTotalResult);
|
||||
this.helpDataResult = this.helpDataTotalResult.result_list;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user