12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- package com.fdkankan.manage.controller;
- import com.fdkankan.manage.common.ResultData;
- import com.fdkankan.manage.entity.RtkAccount;
- import com.fdkankan.manage.entity.RtkDevice;
- import com.fdkankan.manage.entity.RtkInfo;
- import com.fdkankan.manage.service.IRtkDeviceService;
- import com.fdkankan.manage.vo.request.RtkInfoParam;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- /**
- * <p>
- * 前端控制器
- * </p>
- *
- * @author
- * @since 2024-07-22
- */
- @RestController
- @RequestMapping("/service/manage/rtkDevice")
- public class RtkDeviceController {
- @Autowired
- IRtkDeviceService rtkDeviceService;
- @PostMapping("/list")
- public ResultData list(@RequestBody RtkInfoParam param){
- return ResultData.ok(rtkDeviceService.pageList(param));
- }
- @PostMapping("/saveOrEdit")
- public ResultData saveOrEdit(@RequestBody RtkDevice rtkDevice){
- rtkDeviceService.saveOrEditEntity(rtkDevice);
- return ResultData.ok();
- }
- @PostMapping("/del")
- public ResultData del(@RequestBody RtkDevice rtkDevice){
- rtkDeviceService.del(rtkDevice);
- return ResultData.ok();
- }
- }
|