package com.crm.manager.service.activity;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.BaseResultWithPagerDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.model.dto.activity.ActivityRaceSignInfoDto;
import com.crm.rely.backend.model.entity.activity.ActivityRaceSignListEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import java.util.List;

/**
 *
 * @author y
 * @create 2022/7/22
 */
@FeignClient(name = "ACTIVITY-SERVICE", path = "/manager/service/activity/race/sign")
public interface ActivityRaceSignFeignService {

    /**
     * 根据ID获取报名信息
     *
     * @param entity
     * @return
     * @throws Exception
     */
    @PostMapping("/search/single")
    BaseResultDto<ActivityRaceSignInfoDto> searchSingle(SingleLongEntity entity) throws Exception;

    /**
     * 报名列表
     *
     * @param entity
     * @return
     * @throws Exception
     */
    @PostMapping("/search/list")
    BaseResultWithPagerDto<List<ActivityRaceSignInfoDto>> searchList(ActivityRaceSignListEntity entity) throws Exception;

}
