Search in sources :

Example 1 with ShareTypeVO

use of com.qiwenshare.file.vo.share.ShareTypeVO in project qiwen-file by qiwenshare.

the class ShareController method shareType.

@Operation(summary = "分享类型", description = "可用此接口判断是否需要提取码", tags = { "share" })
@GetMapping(value = "/sharetype")
@ResponseBody
public RestResult<ShareTypeVO> shareType(ShareTypeDTO shareTypeDTO) {
    LambdaQueryWrapper<Share> lambdaQueryWrapper = new LambdaQueryWrapper<>();
    lambdaQueryWrapper.eq(Share::getShareBatchNum, shareTypeDTO.getShareBatchNum());
    Share share = shareService.getOne(lambdaQueryWrapper);
    ShareTypeVO shareTypeVO = new ShareTypeVO();
    shareTypeVO.setShareType(share.getShareType());
    return RestResult.success().data(shareTypeVO);
}
Also used : ShareTypeVO(com.qiwenshare.file.vo.share.ShareTypeVO) Share(com.qiwenshare.file.domain.Share) LambdaQueryWrapper(com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper) Operation(io.swagger.v3.oas.annotations.Operation)

Aggregations

LambdaQueryWrapper (com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper)1 Share (com.qiwenshare.file.domain.Share)1 ShareTypeVO (com.qiwenshare.file.vo.share.ShareTypeVO)1 Operation (io.swagger.v3.oas.annotations.Operation)1