package bus.controller.biz;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageSerializable;
import bus.model.dto.BRegionDto;
import bus.model.dto.BRegionPageDto;
import bus.model.vo.BRegionVo;
import bus.service.BRegionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.qzwisdom.qzframework.core.tool.base.controller.BaseController;

import java.util.List;


/**
 * @Program: bus
 * @Description: 描述
 * @Author: zy
 * @Date: 2025-03-01 18:02:29
 **/
@Slf4j
@CrossOrigin
@RestController
@Api(tags = "省市区接口")
@RequestMapping(value="/bRegion")
public class BRegionController implements BaseController {

    @Autowired
    private BRegionService bRegionService;

    /**
     * 获取南通-区接口
     * @param
     * @return
     */
    @ApiOperation("获取南通-区接口")
    @PostMapping(value = "getAreaByNT")
    List<BRegionDto> getAreaByNT(){
        BRegionPageDto dto = new BRegionPageDto();
        dto.setParentId("1401797451651744569");
        List<BRegionDto> list = bRegionService.list(dto);
        return list;
    }
}
