package com.cool.store.controller.webb;

import com.cool.store.response.ResponseResult;
import com.cool.store.service.ad.AdDistrictService;
import com.cool.store.vo.ad.AdDistrictVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 行政区划 前端控制器
 * </p>
 *
 * @author wangff
 * @since 2025/10/14
 */
@Api(tags = "行政区划")
@RestController
@RequestMapping("/pc/ad/district")
@RequiredArgsConstructor
public class AdDistrictController {
    private final AdDistrictService adDistrictService;

    @ApiOperation("行政区划列表")
    @GetMapping("/list")
    public ResponseResult<List<AdDistrictVO>> cityList(Long pid) {
        return ResponseResult.success(adDistrictService.cityList(pid));
    }

}
