Cn2SpellController.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package com.diagbot.web;
  2. import com.diagbot.annotation.SysLogger;
  3. import com.diagbot.dto.Cn2SpellDTO;
  4. import com.diagbot.dto.RespDTO;
  5. import com.diagbot.facade.Cn2SpellFacade;
  6. import com.diagbot.vo.Cn2SpellVO;
  7. import io.swagger.annotations.Api;
  8. import io.swagger.annotations.ApiOperation;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.web.bind.annotation.PostMapping;
  11. import org.springframework.web.bind.annotation.RequestBody;
  12. import org.springframework.web.bind.annotation.RequestMapping;
  13. import org.springframework.web.bind.annotation.RestController;
  14. /**
  15. * @Description: 拼音转化控制层
  16. * @author: gaodm
  17. * @time: 2020/9/22 16:01
  18. */
  19. @RestController
  20. @RequestMapping("/trans")
  21. @Api(value = "拼音转化API", tags = { "拼音转化API" })
  22. @SuppressWarnings("unchecked")
  23. public class Cn2SpellController {
  24. @Autowired
  25. private Cn2SpellFacade cn2SpellFacade;
  26. @ApiOperation(value = "拼音转化拼音首字母[by:gaodm]",
  27. notes = "")
  28. @PostMapping("/cn2Spell")
  29. @SysLogger("cn2Spell")
  30. public RespDTO<Cn2SpellDTO> cn2Spell(@RequestBody Cn2SpellVO cn2SpellVO) {
  31. return RespDTO.onSuc(cn2SpellFacade.cn2Spell(cn2SpellVO));
  32. }
  33. }