package com.ruoyi.ibs.customerselect.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.ibs.customerselect.service.CustCsvTagService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author 吴凯程
 * @Date 2025/11/28
 **/
@Api(tags = "CSV客户标签")
@RestController
@RequestMapping("/csv/tag")
public class CustCsvTagController extends BaseController {

    @Resource
    private CustCsvTagService custCsvTagService;

    @GetMapping("/search")
    @ApiOperation("查询客户标签")
    public AjaxResult searchCsv(@RequestParam String custIdc) {
        return AjaxResult.success(custCsvTagService.getCsvTagJson(custIdc));
    }
}
