package com.ruoyi.cms.controller.cms;


import com.ruoyi.cms.service.SysAreaService;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysArea;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 地区层级表
 *
 * @author 
 * @email 
 * @date 2025-11-10 15:56:00
 */
@RestController
@RequestMapping("/cms/dict/sysarea")
@Anonymous
public class SysAreaController {

    @Autowired
    private SysAreaService sysAreaService;

    /**
     * 列表
     */
    @GetMapping("/list")
    public AjaxResult jobCategory(SysArea sysArea){
        return AjaxResult.success(sysAreaService.getList(sysArea));
    }

    /**
     * 查询所有市
     * @param sysArea
     * @return
     */
    @GetMapping("/listCity")
    public AjaxResult listCity(SysArea sysArea){
        return AjaxResult.success(sysAreaService.getCityList(sysArea));
    }
}
