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; /** *
* 前端控制器 *
* * @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(); } }