package com.ruoyi.cai.controller.admin.init;


import com.ruoyi.cai.service.CitysService;
import com.ruoyi.common.core.domain.R;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/cai/city")
public class CityController {

    @Autowired
    private CitysService citysService;

    @GetMapping("/resetRedis")
    public R<Void> resetRedis(){
        citysService.resetRedis();
        return R.ok();
    }
}
