New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.QRActivityCodeVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 签到二维码表(ComActActivityCode)表控制层 |
| | | * |
| | | * @author makejava |
| | | * @since 2021-10-15 15:23:10 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"活动二维码"}) |
| | | @RestController |
| | | @RequestMapping("comActActivityCode") |
| | | public class ComActActivityCodeApi extends BaseController { |
| | | /** |
| | | * 服务对象 |
| | | */ |
| | | @Resource |
| | | private CommunityService communityService; |
| | | |
| | | /** |
| | | * 查看二维码 |
| | | * @param qrCodeVO |
| | | * @return |
| | | */ |
| | | @ApiOperation("查看二维码") |
| | | @PostMapping("/getQRCode") |
| | | 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); |
| | | } |
| | | } |