import {
|
CoolController,
|
BaseController,
|
CoolUrlTag,
|
TagTypes,
|
CoolTag,
|
} from '@cool-midway/core';
|
import { Body, Inject, Post } from '@midwayjs/core';
|
import { OperationWastesaleService } from '../../service/wastesale';
|
|
/**
|
* 分拣员-可回收物销售
|
*/
|
@CoolUrlTag()
|
@CoolController()
|
export class AppOperationWastesaleController extends BaseController {
|
@Inject()
|
operationWastesaleService: OperationWastesaleService;
|
|
@CoolTag(TagTypes.IGNORE_TOKEN)
|
@Post('/saleAdd', { summary: '新增销售记录' })
|
async saleAdd(@Body() body) {
|
return this.ok(await this.operationWastesaleService.appAdd(body));
|
}
|
|
@CoolTag(TagTypes.IGNORE_TOKEN)
|
@Post('/salePage', { summary: '我的销售记录' })
|
async salePage(@Body() body) {
|
return this.ok(await this.operationWastesaleService.appPage(body));
|
}
|
}
|