package cn.ey.biz.module.system.api.serviceline;

import cn.ey.biz.common.pojo.R;
import cn.ey.biz.module.system.enums.ApiConstants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author zhangjunlong
 * @since 2023/10/31 16:23
 */

@FeignClient(name = ApiConstants.NAME)
public interface ServiceLineApi {
    String PREFIX = ApiConstants.PREFIX + "/service-line-api";

    /**
     * 根据编码获取业务子线的名称
     *
     * @param code 编码
     * @return
     */
    @GetMapping(PREFIX + "/sub-service-line-name")
    R<String> getSubServiceLineName(@RequestParam("code") String code);

}
