| | |
| | | import com.moral.api.pojo.form.user.UserQueryForm; |
| | | import com.moral.api.pojo.form.user.UserUpdateForm; |
| | | import com.moral.api.pojo.vo.user.UserQueryVO; |
| | | import com.moral.api.service.DeviceAdjustValueService; |
| | | import com.moral.api.service.UserService; |
| | | import com.moral.api.util.CacheUtils; |
| | | import com.moral.constant.ResponseCodeEnum; |
| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @ClassName UserController |
| | |
| | | public class PubController { |
| | | @Autowired |
| | | private CacheUtils cacheUtils; |
| | | @Resource |
| | | private DeviceAdjustValueService deviceAdjustValueService; |
| | | |
| | | @GetMapping("deviceAlarmInfo") |
| | | @ApiOperation(value = "设备因子", notes = "设备因子") |
| | |
| | | return new ResultMessage(); |
| | | } |
| | | |
| | | @GetMapping(value = "adjust") |
| | | @ApiOperation(value = "adjust编码", notes = "adjust编码") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "token", value = "token", required = true, paramType = "header", dataType = "String") |
| | | }) |
| | | public ResultMessage adjust() { |
| | | Map<String,Object> resultMap = deviceAdjustValueService.refreshRedis(); |
| | | return new ResultMessage(); |
| | | } |
| | | |
| | | } |