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.two.percent.give.CustomActivityTwoPercentGiveDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.custom.activity.two.percent.give.CustomActivityTwoPercentGiveDeleteEntity;
import com.crm.rely.backend.core.entity.custom.activity.two.percent.give.CustomActivityTwoPercentGiveSearchEntity;
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/two/percent/give/manager")
public interface CustomActivityTwoPercentGiveFeignService {


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


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

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

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

}

