package com.crm.manager.service.activity;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.ResultWithPagerDto;
import com.crm.rely.backend.core.dto.custom.activity.midyear.ten.percent.give.CustomActivityMidyearTenPercentGiveDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.custom.activity.midyear.ten.percent.give.CustomActivityMidyearTenPercentGiveDeleteEntity;
import com.crm.rely.backend.core.entity.custom.activity.midyear.ten.percent.give.CustomActivityMidyearTenPercentGiveSearchEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "ACTIVITY-SERVICE", path = "/custom/activity/midyear/ten/percent/give/manager")
public interface CustomActivityMidyearTenPercentGiveFeignService {


    @PostMapping("/delete")
    BaseResultDto delete(@RequestBody @Validated CustomActivityMidyearTenPercentGiveDeleteEntity entity);


    @PostMapping("/search/list")
    ResultWithPagerDto<CustomActivityMidyearTenPercentGiveDto> searcherList(@RequestBody @Validated CustomActivityMidyearTenPercentGiveSearchEntity entity);

    @PostMapping("/search/single")
    BaseResultDto searcherSingle(@RequestBody @Validated SingleLongEntity entity);

    @PostMapping("/cancel")
    BaseResultDto cancelActivity(@RequestBody @Validated SingleLongEntity entity);

}

