RopApiController.java 1.29 KB
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();
    }
}