RopApiController.java
1.29 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 com.glsx.usedcar.controller;
import com.glsx.usedcar.gsc.GscApiInvoker;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
* rop api
* @author yangwei
* @version 1.0
* @since 2026/03/24 11:05
*/
@Slf4j
@RestController
@RequestMapping("/rest/ropApi")
@RequiredArgsConstructor
@Tag(name = "rop-api调用前端控制器", description = "各类rop-api调用处理")
public class RopApiController {
private final GscApiInvoker gscApiInvoker;
@Operation(summary = "根据车系ID查询车型列表", description = "根据车系ID查询车型列表")
@GetMapping("getCarTypeList")
public String getCarTypeList(@RequestParam String csId) {
return gscApiInvoker.getCarTypeList(csId);
}
@Operation(summary = "查询车品牌全称", description = "查询车品牌全称")
@GetMapping("getCarBrandComplete")
public String getCarBrandComplete() {
return gscApiInvoker.getCarBrandComplete();
}
}