| | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.wx.wxPlat.WxPlatNotice; |
| | | import com.doumee.dao.business.model.VisitReason; |
| | | import com.doumee.dao.business.model.Visits; |
| | | import com.doumee.dao.web.reqeust.CheckVisitedDTO; |
| | |
| | | import org.springframework.web.server.ServerWebExchange; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation(value = "testSendNotice", notes = "testSendNotice") |
| | | @GetMapping("/testSendNotice") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "String", name = "openid", value = "openid", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "String", name = "token", value = "token", required = true), |
| | | }) |
| | | public ApiResponse wxAuthorize(@RequestParam String openid,String token) { |
| | | WxPlatNotice wxPlatNotice = new WxPlatNotice(); |
| | | List<String> idList = Arrays.asList(openid.split(",")); |
| | | wxPlatNotice.testSendNotice(idList,token); |
| | | return ApiResponse.success("查询成功"); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "查询被访问人信息", notes = "查询被访问人信息") |
| | | @PostMapping("/getVisitedMember") |
| | | public ApiResponse<List<MemberVO>> getVisitedMember(@Valid @RequestBody CheckVisitedDTO checkVisitedDTO) { |
| | |
| | | @ApiOperation("访客记录 - 分页列表") |
| | | @PostMapping("/visitPage") |
| | | public ApiResponse<PageData<Visits>> visitPage (@RequestBody PageWrap<Visits> pageWrap) { |
| | | if(Objects.isNull(pageWrap.getModel().getMemberId())){ |
| | | pageWrap.getModel().setMemberId(0); |
| | | } |
| | | return ApiResponse.success(visitsService.findPage(pageWrap)); |
| | | } |
| | | |