张洋洋
2025-02-24 9804628abf554c3658345fc8fc9472cfb179fd5f
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
40
41
42
43
44
45
46
package com.se.simu.controller;
 
import com.se.simu.service.SwwFilesDealService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
 
 
/**
 * sww 文件交易控制器
 *
 * @author xingjinshuang@smartearth.cn
 * @date 2025/02/20
 */
@Api(tags = " Sww 相关接口")
@CrossOrigin(origins = "*")
@RequiredArgsConstructor
@RestController
@RequestMapping("/api/v1/sww")
public class SwwFilesDealController {
    // 处理 Sww 文件的相关逻辑
 
    @Resource
    private SwwFilesDealService swwFilesDealService;
 
    /**
     * Sww 文件读取模拟
     */
    @ApiOperation("1 - Sww 文件读取模拟")
    @PostMapping("/read")
    public ResponseEntity<Object> readSwwFile() throws Exception {
        String filePath = "D:\\0a_project\\simulation\\other\\result_new.sem.db";
        return ResponseEntity.ok(swwFilesDealService.readSwwFile(filePath));
    }
 
 
 
 
}