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

import cn.ey.biz.common.pojo.R;
import cn.ey.biz.module.system.api.engagement.task.dto.EngagementTaskRuleSimpleRespDTO;
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 服务 - 任务生成规则")
public interface EngagementTaskRuleApi {

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

    @GetMapping(PREFIX + "/list")
    @ApiOperation("获得全部任务生成规则列表")
    R<List<EngagementTaskRuleSimpleRespDTO>> getTaskRuleList();

}
