package com.doumee.api;
|
|
import com.alibaba.fastjson.JSONObject;
|
import com.doumee.biz.system.SystemDictDataBiz;
|
import com.doumee.core.utils.Constants;
|
import com.doumee.core.utils.HttpsUtil;
|
import com.doumee.core.wx.WXConstant;
|
import com.doumee.dao.system.model.SystemDictData;
|
import com.doumee.service.business.DeviceService;
|
import com.doumee.service.business.third.model.ApiResponse;
|
import com.doumee.service.system.SystemDictDataService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.apache.shiro.SecurityUtils;
|
import org.apache.shiro.mgt.DefaultSecurityManager;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.util.Date;
|
import java.util.Objects;
|
|
/**
|
* @author 江蹄蹄
|
* @date 2023/11/30 15:33
|
*/
|
@Api(tags = "断路器远程控制定时器")
|
@RestController
|
@RequestMapping("/timer/duanluqi")
|
public class DuanluqiTimerController extends BaseController {
|
@Autowired
|
private DeviceService deviceService;
|
|
@ApiOperation("开启定时远程控制断路器分闸")
|
@PostMapping("/autoCloseCmd")
|
public ApiResponse autoCloseCmd() {
|
deviceService.autoCloseCmdTimer();
|
return ApiResponse.success("开启定时远程控制断路器分闸成功");
|
}
|
|
|
|
}
|