WeComController.java 1023 B

12345678910111213141516171819202122232425262728293031
  1. package com.tzld.piaoquan.api.controller;
  2. import com.tzld.piaoquan.api.model.vo.WeComPushMessageParam;
  3. import com.tzld.piaoquan.api.model.vo.WeComPushMessageVo;
  4. import com.tzld.piaoquan.api.service.WeComService;
  5. import com.tzld.piaoquan.common.common.base.CommonResponse;
  6. import lombok.extern.slf4j.Slf4j;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.web.bind.annotation.PostMapping;
  9. import org.springframework.web.bind.annotation.RequestBody;
  10. import org.springframework.web.bind.annotation.RequestMapping;
  11. import org.springframework.web.bind.annotation.RestController;
  12. import java.util.List;
  13. @Slf4j
  14. @RestController
  15. @RequestMapping("/wecom")
  16. public class WeComController {
  17. @Autowired
  18. private WeComService weComService;
  19. @PostMapping("/pushMessage/get")
  20. public CommonResponse<List<WeComPushMessageVo>> getPushMessage(@RequestBody WeComPushMessageParam param) {
  21. log.info("param={}", param);
  22. return weComService.getPushMessage(param);
  23. }
  24. }