feiyu02
2022-07-28 237d7c42498806a3ca205f63d151671a45304854
src/main/kotlin/cn/flightfeather/supervision/lightshare/web/CommitmentController.kt
@@ -1,6 +1,7 @@
package cn.flightfeather.supervision.lightshare.web
import cn.flightfeather.supervision.lightshare.service.CommitmentService
import cn.flightfeather.supervision.lightshare.vo.CommitmentVo
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import io.swagger.annotations.ApiParam
@@ -35,10 +36,12 @@
        @ApiParam(value = "承诺书图片") @RequestPart("images") files: Array<MultipartFile>
    ) = commitmentService.uploadLetterOfCommitment(userId, commitmentVoList, files)
    @ApiOperation(value = "生产承诺书")
    @ApiOperation(value = "生成承诺书")
    @PostMapping("/letter/create")
    fun createLetterOfCommitment(
        @ApiParam(value = "用户id") @RequestParam userId: String,
        @ApiParam(value = "承诺书参数") @RequestBody params: MutableMap<String, Any>
    ) = commitmentService.createLetterOfCommitment(userId, params)
        @ApiParam(value = "承诺书参数") @RequestBody vo: CommitmentVo,
        @ApiParam(value = "承诺书签名") @RequestPart("sign") sign: MultipartFile,
        @ApiParam(value = "承诺书盖章", required = false) @RequestPart("seal") seal: MultipartFile?
    ) = commitmentService.createLetterOfCommitment(userId, vo, sign, seal)
}