FakeOfficeController.java
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package cn.com.glsx.stdinterface.modules.controller;
import cn.com.glsx.stdinterface.api.FakeOfficeClient;
import cn.com.glsx.stdinterface.dto.FakeOfflineFenceSnDto;
import cn.com.glsx.stdinterface.modules.service.FakeOfficeService;
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;
/**
* 试驾统计 Controller
*/
@Slf4j
@RestController
@RequestMapping(value = "/fakeoffice")
@Api(value = "假性离线数据", tags = {"假性离线数据"})
public class FakeOfficeController implements FakeOfficeClient {
private final static String MODULE = "假性离线数据";
@Autowired
private FakeOfficeService fakeOfficeService;
@Override
@PostMapping(value = "/storeFakeList")
@SysLog(module = MODULE, value = "保存假性离线数据", action = OperateType.ADD, saveLog = false)
@ApiOperation(value = "保存假性离线数据")
public R storeFakeData(@RequestBody FakeOfflineFenceSnDto fakeOfflineFenceSnDto) {
fakeOfficeService.storeFakeData(fakeOfflineFenceSnDto);
return R.ok();
}
}