HagContentController.java 873 B

123456789101112131415161718192021222324252627
  1. package cn.efunbox.audio.controller.hag;
  2. import cn.efunbox.audio.service.hag.HagContentService;
  3. import cn.efunbox.audio.vo.hag.HagContentReq;
  4. import cn.efunbox.audio.vo.hag.HagBaseResp;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.web.bind.annotation.PostMapping;
  7. import org.springframework.web.bind.annotation.RequestBody;
  8. import org.springframework.web.bind.annotation.RequestMapping;
  9. import org.springframework.web.bind.annotation.RestController;
  10. /**
  11. * HagContentController
  12. * Created by xusq on 2019/12/25.
  13. */
  14. @RequestMapping("/api/hag/v1/content")
  15. @RestController
  16. public class HagContentController {
  17. @Autowired
  18. private HagContentService hagContentService;
  19. @PostMapping
  20. public HagBaseResp content(@RequestBody HagContentReq hagContentReq){
  21. return hagContentService.list(hagContentReq);
  22. }
  23. }