@@ -25,6 +25,15 @@ export class AdminFineController extends BaseController {
|
||||
return this.response(data);
|
||||
}
|
||||
|
||||
@ApiOperation("get fine rules")
|
||||
@ApiResponse("successful", HttpStatus.Ok)
|
||||
@ApiAuth()
|
||||
@httpGet("/rule", Guard.authAdmin())
|
||||
public async getRules() {
|
||||
const data = await this.fineService.getFineRules();
|
||||
return this.response(data);
|
||||
}
|
||||
|
||||
@ApiOperation("update fine rule")
|
||||
@ApiResponse("successful", HttpStatus.Ok)
|
||||
@ApiParam("id", "id of rule")
|
||||
|
||||
@@ -433,6 +433,14 @@ export class AdminProductController extends BaseController {
|
||||
return this.response(data);
|
||||
}
|
||||
|
||||
@ApiOperation("get report questions for product report")
|
||||
@ApiAuth()
|
||||
@httpGet("/report-questions", Guard.authAdmin())
|
||||
public async getReportQuestions() {
|
||||
const data = await this.productService.getReportQuestions();
|
||||
return this.response(data);
|
||||
}
|
||||
|
||||
//get product
|
||||
|
||||
@ApiOperation("get all products reports")
|
||||
|
||||
Reference in New Issue
Block a user