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.give.CustomActivityGiveDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.custom.activity.give.CustomActivityGiveDeleteEntity;
import com.crm.rely.backend.core.entity.custom.activity.give.CustomActivityGiveSearchEntity;
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/give/manager")
public interface CustomActivityGiveFeignService {


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


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

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

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

}

