JyUserPlatformController.java 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. package com.fdkankan.manage.controller;
  2. import com.fdkankan.manage.common.ResultData;
  3. import com.fdkankan.manage.entity.JyPlatform;
  4. import com.fdkankan.manage.service.IJyPlatformService;
  5. import com.fdkankan.manage.service.IJyUserPlatformService;
  6. import com.fdkankan.manage.vo.request.JyPlatformParam;
  7. import com.fdkankan.manage.vo.request.JyPlatformVo;
  8. import com.fdkankan.manage.vo.request.JyUserPlatformAddParam;
  9. import com.fdkankan.manage.vo.request.JyUserPlatformParam;
  10. import org.springframework.beans.factory.annotation.Autowired;
  11. import org.springframework.web.bind.annotation.PostMapping;
  12. import org.springframework.web.bind.annotation.RequestBody;
  13. import org.springframework.web.bind.annotation.RequestMapping;
  14. import org.springframework.web.bind.annotation.RestController;
  15. /**
  16. * <p>
  17. * 前端控制器
  18. * </p>
  19. *
  20. * @author
  21. * @since 2024-11-15
  22. */
  23. @RestController
  24. @RequestMapping("/service/manage/jyUserPlatform")
  25. public class JyUserPlatformController {
  26. @Autowired
  27. IJyUserPlatformService jyUserPlatformService;
  28. @PostMapping("/queryByKey")
  29. public ResultData queryByKey(@RequestBody JyUserPlatformParam param){
  30. return ResultData.ok(jyUserPlatformService.queryByKey(param));
  31. }
  32. @PostMapping("/list")
  33. public ResultData list(@RequestBody JyUserPlatformParam param){
  34. return ResultData.ok(jyUserPlatformService.pageList(param));
  35. }
  36. @PostMapping("/add")
  37. public ResultData add(@RequestBody JyUserPlatformAddParam param){
  38. jyUserPlatformService.addByParam(param);
  39. return ResultData.ok();
  40. }
  41. @PostMapping("/update")
  42. public ResultData update(@RequestBody JyUserPlatformAddParam param){
  43. jyUserPlatformService.updateByParam(param);
  44. return ResultData.ok();
  45. }
  46. @PostMapping("/del")
  47. public ResultData del(@RequestBody JyUserPlatformAddParam param){
  48. jyUserPlatformService.del(param);
  49. return ResultData.ok();
  50. }
  51. @PostMapping("/addWaitUser")
  52. public ResultData addWaitUser(@RequestBody JyUserPlatformAddParam param){
  53. jyUserPlatformService.addWaitUser(param);
  54. return ResultData.ok();
  55. }
  56. }