RtkDeviceController.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package com.fdkankan.manage.controller;
  2. import com.fdkankan.manage.common.ResultData;
  3. import com.fdkankan.manage.entity.RtkAccount;
  4. import com.fdkankan.manage.entity.RtkDevice;
  5. import com.fdkankan.manage.entity.RtkInfo;
  6. import com.fdkankan.manage.service.IRtkDeviceService;
  7. import com.fdkankan.manage.vo.request.RtkInfoParam;
  8. import org.springframework.beans.factory.annotation.Autowired;
  9. import org.springframework.web.bind.annotation.PostMapping;
  10. import org.springframework.web.bind.annotation.RequestBody;
  11. import org.springframework.web.bind.annotation.RequestMapping;
  12. import org.springframework.web.bind.annotation.RestController;
  13. /**
  14. * <p>
  15. * 前端控制器
  16. * </p>
  17. *
  18. * @author
  19. * @since 2024-07-22
  20. */
  21. @RestController
  22. @RequestMapping("/service/manage/rtkDevice")
  23. public class RtkDeviceController {
  24. @Autowired
  25. IRtkDeviceService rtkDeviceService;
  26. @PostMapping("/list")
  27. public ResultData list(@RequestBody RtkInfoParam param){
  28. return ResultData.ok(rtkDeviceService.pageList(param));
  29. }
  30. @PostMapping("/saveOrEdit")
  31. public ResultData saveOrEdit(@RequestBody RtkDevice rtkDevice){
  32. rtkDeviceService.saveOrEditEntity(rtkDevice);
  33. return ResultData.ok();
  34. }
  35. @PostMapping("/del")
  36. public ResultData del(@RequestBody RtkDevice rtkDevice){
  37. rtkDeviceService.del(rtkDevice);
  38. return ResultData.ok();
  39. }
  40. }