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.ActivityRaceRankingDto;
import com.crm.rely.backend.model.entity.activity.ActivityRaceRankingListEntity;
import com.crm.rely.backend.model.entity.activity.ActivityRaceRankingManualEntity;
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/ranking")
public interface ActivityRaceRankingFeignService {


    @PostMapping("/search/list")
    BaseResultWithPagerDto<List<ActivityRaceRankingDto>> searchList(ActivityRaceRankingListEntity entity) throws Exception;

    @PostMapping("/search/single")
    BaseResultDto<ActivityRaceRankingDto> searchSingle(SingleLongEntity entity) throws Exception;

    @PostMapping("/update/manual")
    BaseResultDto<Boolean> updateManual(ActivityRaceRankingManualEntity entity) throws Exception;

}
