package cn.ey.biz.module.system.api.engagement.code;

import cn.ey.biz.common.pojo.R;
import cn.ey.biz.module.system.api.engagement.code.dto.EngagementCodeRuleSimpleRespDTO;
import cn.ey.biz.module.system.enums.ApiConstants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = ApiConstants.NAME)
@Api(tags = "RPC 服务 - Code规则")
public interface EngagementCodeRuleApi {

    String PREFIX = ApiConstants.PREFIX + "/engagement/code/rule";

    @GetMapping(PREFIX + "/list")
    @ApiOperation("获得全部Code规则列表")
    R<List<EngagementCodeRuleSimpleRespDTO>> getCodeRuleList();

}
