1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- package com.fdkankan.manage.controller;
- import cn.dev33.satoken.stp.StpUtil;
- import com.fdkankan.manage.common.ResultCode;
- import com.fdkankan.manage.common.ResultData;
- import com.fdkankan.manage.entity.AgentAudit;
- import com.fdkankan.manage.entity.Camera;
- import com.fdkankan.manage.entity.RtkInfo;
- import com.fdkankan.manage.exception.BusinessException;
- import com.fdkankan.manage.service.IAgentAuditService;
- import com.fdkankan.manage.service.ICameraService;
- import com.fdkankan.manage.service.IRtkInfoService;
- import com.fdkankan.manage.vo.request.AgentAuditListParam;
- import com.fdkankan.manage.vo.request.RtkInfoParam;
- import org.apache.commons.lang3.StringUtils;
- 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;
- import java.util.Objects;
- /**
- * rtk 1.1.0 ,1.2.0版本废弃
- */
- @RestController
- @RequestMapping("/service/manage/rtkInfo")
- public class RtkInfoController {
- @Autowired
- IRtkInfoService rtkInfoService;
- @PostMapping("/list")
- public ResultData list(@RequestBody RtkInfoParam param){
- return ResultData.ok(rtkInfoService.pageList(param));
- }
- @PostMapping("/saveOrEdit")
- public ResultData saveOrEdit(@RequestBody RtkInfo rtkInfo){
- rtkInfoService.saveOrEditEntity(rtkInfo);
- return ResultData.ok();
- }
- @PostMapping("/del")
- public ResultData del(@RequestBody RtkInfo rtkInfo){
- rtkInfoService.del(rtkInfo);
- return ResultData.ok();
- }
- @PostMapping("/activation")
- public ResultData activation(@RequestBody RtkInfo rtkInfo){
- rtkInfoService.activation(rtkInfo);
- return ResultData.ok();
- }
- }
|