package cn.iocoder.yudao.module.inspection.controller;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.inspection.enums.DriverLicenseType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 下拉框controller
 * @Author: 86187
 * @Date: 2025/01/22 16:47
 * @Version: 1.0
 */
@RestController
@RequestMapping("/admin-api/common/down")
public class CommonDownController {

    /**
     * 驾驶证类型下拉框
     *
     * @return
     */
    @GetMapping("/getDriverLicenseType")
    public CommonResult getDriverLicenseType() {
        return CommonResult.success(DriverLicenseType.getAll());
    }
}
