GscApiController.java 832 Bytes
package com.glsx.usedcar.web.rest;

import com.glsx.usedcar.gsc.GscApiInvoker;
import jakarta.annotation.Resource;
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;

@Slf4j
@RestController
@RequestMapping("/rest/gsc")
public class GscApiController {

    @Resource
    private GscApiInvoker gscApiInvoker;

    @GetMapping("getCarBrandComplete")
    public String getCarBrandComplete() {
        return gscApiInvoker.getCarBrandComplete();
    }

    @GetMapping("getCarTypeList")
    public String getCarTypeList(@RequestParam String csId) {
        return gscApiInvoker.getCarTypeList(csId);
    }
}