Skip to content
Snippets Groups Projects
Commit 5d6f30a3 authored by Ajay Nishad's avatar Ajay Nishad
Browse files

refactor: format code

parent efc9a054
No related branches found
No related tags found
No related merge requests found
......@@ -14,4 +14,4 @@ $.responses.{
"mime_type":mime_type
}[]
}
}[]
\ No newline at end of file
}[]
......@@ -6,4 +6,4 @@ $.data.{
"callback_phone":callbackPhone
}
}
}[]
\ No newline at end of file
}[]
......@@ -2,61 +2,62 @@ import { inject } from "inversify";
import { controller, httpPost, requestBody } from "inversify-express-utils";
import { GCLService } from "./gcl.service";
@controller("/")
@controller('/')
export class GCLController {
constructor(@inject(GCLService) private service: GCLService) {}
@httpPost("search")
public async search(@requestBody() body: any): Promise<any> {
const searchResult = await this.service.search(body);
return searchResult;
}
@httpPost("select")
public async select(@requestBody() body: any): Promise<any> {
const selectResult = await this.service.select(body);
return selectResult;
}
@httpPost("init")
public async init(@requestBody() body: any): Promise<any> {
const initResult = await this.service.init(body);
return initResult;
}
@httpPost("confirm")
public async confirm(@requestBody() body: any): Promise<any> {
const confirmResult = await this.service.confirm(body);
return confirmResult;
}
@httpPost("status")
public async status(@requestBody() body: any): Promise<any> {
const statusResult = await this.service.status(body);
return statusResult;
}
@httpPost("rating")
public async rating(@requestBody() body: any): Promise<any> {
const statusResult = await this.service.rating(body);
return statusResult;
}
@httpPost("cancel")
public async cancel(@requestBody() body: any): Promise<any> {
const statusResult = await this.service.cancel(body);
return statusResult;
}
@httpPost("update")
public async update(@requestBody() body: any): Promise<any> {
const updateResult = await this.service.update(body);
return updateResult;
}
@httpPost("support")
public async support(@requestBody() body: any): Promise<any> {
const updateResult = await this.service.support(body);
return updateResult;
}
constructor(@inject(GCLService) private service: GCLService) { }
@httpPost('search')
public async search(@requestBody() body: any): Promise<any> {
const searchResult = await this.service.search(body);
return searchResult;
}
@httpPost('select')
public async select(@requestBody() body: any): Promise<any> {
const selectResult = await this.service.select(body);
return selectResult;
}
@httpPost('init')
public async init(@requestBody() body: any): Promise<any> {
const initResult = await this.service.init(body);
return initResult;
}
@httpPost('confirm')
public async confirm(@requestBody() body: any): Promise<any> {
const confirmResult = await this.service.confirm(body);
return confirmResult;
}
@httpPost('status')
public async status(@requestBody() body: any): Promise<any> {
const statusResult = await this.service.status(body);
return statusResult;
}
@httpPost('rating')
public async rating(@requestBody() body: any): Promise<any> {
const statusResult = await this.service.rating(body);
return statusResult;
}
@httpPost('cancel')
public async cancel(@requestBody() body: any): Promise<any> {
const statusResult = await this.service.cancel(body);
return statusResult;
}
@httpPost('update')
public async update(@requestBody() body: any): Promise<any> {
const updateResult = await this.service.update(body);
return updateResult;
}
@httpPost('support')
public async support(@requestBody() body: any): Promise<any> {
const updateResult = await this.service.support(body);
return updateResult;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment