| | |
| | | package cn.flightfeather.supervision.lightshare.web |
| | | |
| | | import cn.flightfeather.supervision.lightshare.service.LedgerService |
| | | import cn.flightfeather.supervision.lightshare.vo.CopyLedgerVo |
| | | import cn.flightfeather.supervision.lightshare.vo.LedgerCheckVo |
| | | import cn.flightfeather.supervision.lightshare.vo.LedgerVo |
| | | import io.swagger.annotations.Api |
| | | import io.swagger.annotations.ApiOperation |
| | |
| | | @ApiParam("用户id") @PathVariable userId: String, |
| | | @ApiParam("台账类型id数组") @RequestParam("ledgerTypes") ledgerTypes: List<Int> |
| | | ) = ledgerService.getLedgerImgs(userId, ledgerTypes) |
| | | |
| | | @ApiOperation("复制场景的台账") |
| | | @PostMapping("/copy") |
| | | fun copyLedger( |
| | | @RequestParam("userId") userId: String, |
| | | @RequestParam("time") time: String, |
| | | @RequestBody copyLedgerList: List<CopyLedgerVo> |
| | | ) = ledgerService.copyLedger(userId, time, copyLedgerList) |
| | | |
| | | @ApiOperation("审核台账") |
| | | @PostMapping("/check") |
| | | fun checkLedger( |
| | | @RequestParam("verifierId") verifierId: String, |
| | | @RequestParam(value = "remark", required = false) remark: String?, |
| | | @RequestBody recordList: List<LedgerCheckVo> |
| | | ) = ledgerService.checkLedger(verifierId, remark, recordList) |
| | | } |