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.deposit.CustomActivityDepositGiveDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.custom.activity.deposit.CustomActivityDepositGiveDeleteEntity;
import com.crm.rely.backend.core.entity.custom.activity.deposit.CustomActivityDepositGiveSearchEntity;
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/deposit/give/manager")
public interface CustomActivityDepositGiveFeignService {


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


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

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

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

}

