package com.cpxt.web.controller.biz;

import com.cpxt.biz.service.SysAreaService;
import com.cpxt.common.core.controller.BaseController;
import com.cpxt.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 地区controller
 * @author Luo.J
 * @date 2024-1-16
 */
@RestController
@RequestMapping("/system/area")
public class SysAreaController extends BaseController
{
    @Autowired
    private SysAreaService sysAreaService;

    /**
     * 获取车辆详细信息
     */
    @GetMapping("/getByParentId")
    public AjaxResult getInfo(@RequestParam String parentId)
    {
        return success(sysAreaService.selectByParentId(parentId));
    }
}
