package com.benyun.core.controller;

import com.benyun.core.service.ChannelAnalyseService;
import com.ruoyi.common.core.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("/channelAnalyse")
public class ChannelAnalyseController {

    @Autowired
    ChannelAnalyseService channelAnalyseService;

    //TODO 未加入到redis
    @RequestMapping("/cityTier")
    public R cityTier(String searchText){
        HashMap hashMap = channelAnalyseService.cityTier(searchText);
        return R.ok(hashMap);
    }
}
