package com.crm.custom.service.activity;

import com.crm.rely.backend.core.dto.base.BaseLongSelectDto;
import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.model.entity.activity.ActivityRaceRuleDropDownEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.List;

/**
 * 比赛规则服务
 *
 * @author y
 * @create 2022/7/22
 */
@FeignClient(name = "ACTIVITY-SERVICE", path = "/custom/service/activity/race/rule")
public interface ActivityRaceRuleFeignService {

    /**
     * 比赛期数下拉
     * @param entity
     * @return
     * @throws Exception
     */
    @PostMapping("/dropdown")
    BaseResultDto<List<BaseLongSelectDto>> dropdown(@RequestBody ActivityRaceRuleDropDownEntity entity) throws Exception;
}
