HagResourceController.java 866 B

123456789101112131415161718192021222324252627
  1. package cn.efunbox.audio.controller.hag;
  2. import cn.efunbox.audio.service.hag.HagContentService;
  3. import cn.efunbox.audio.vo.hag.HagSkillReq;
  4. import cn.efunbox.audio.vo.hag.HagSkillResp;
  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. * HagResourceController
  12. * Created by xusq on 2019/12/26.
  13. */
  14. @RestController
  15. @RequestMapping("/api/hag/v1/resource")
  16. public class HagResourceController {
  17. @Autowired
  18. private HagContentService hagContentService;
  19. @PostMapping
  20. public HagSkillResp url(@RequestBody HagSkillReq skillReq) {
  21. return hagContentService.getResUrl(skillReq);
  22. }
  23. }