| | |
| | | * @author zzj |
| | | */ |
| | | @Data |
| | | @ApiModel("生成二维码传参") |
| | | @ApiModel |
| | | public class QRActivityCodeVO { |
| | | @ApiModelProperty("数据主键id") |
| | | private Integer id; |
| | | @ApiModelProperty("二维码类型 1居民,志愿者 2党员") |
| | | private Integer type; |
| | | @ApiModelProperty("二维码id") |
| | | @ApiModelProperty(value = "二维码id",example = "1") |
| | | private Long codeId; |
| | | } |
| | |
| | | public R getQRCode(@RequestBody QRActivityCodeVO qrCodeVO){ |
| | | return this.communityService.getQRCode(qrCodeVO); |
| | | } |
| | | |
| | | /** |
| | | * 重置二维码 |
| | | * @param qrCodeVO |
| | | * @return |
| | | */ |
| | | @ApiOperation("重置二维码") |
| | | @PostMapping("/resetQRCode") |
| | | public R resetQRCode(@RequestBody QRActivityCodeVO qrCodeVO){ |
| | | return this.communityService.resetQRCode(qrCodeVO); |
| | | } |
| | | } |