DeviceLocationController.java
1.31 KB
package cn.com.glsx.stdinterface.modules.controller;
import cn.com.glsx.stdinterface.modules.model.LocationCheckBO;
import cn.com.glsx.stdinterface.modules.service.DeviceLocationService;
import com.glsx.plat.common.annotation.SysLog;
import com.glsx.plat.common.enums.OperateType;
import com.glsx.plat.core.web.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
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;
@Slf4j
@RestController
@RequestMapping(value = "/location")
@Api(value = "位置验证", tags = {"位置验证"})
public class DeviceLocationController {
private final static String MODULE = "位置验证";
@Autowired
private DeviceLocationService deviceLocationService;
@PostMapping(value = "/check")
@SysLog(module = MODULE, value = "设备位置点验证", action = OperateType.AUDIT)
@ApiOperation(value = "设备位置点验证")
public R check(@RequestBody LocationCheckBO checkBO) {
deviceLocationService.locationCheck(checkBO);
return R.ok();
}
}