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.web.activity.oc.WebActivityOcScheduledDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.web.activity.oc.*;
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 = "/web/oc/scheduled/manager")
public interface WebActivityOcScheduledFeignService {

    @PostMapping("/add")
    BaseResultDto add(@RequestBody @Validated WebActivityOcScheduledAddEntity entity) throws Exception ;

    @PostMapping("/update")
    BaseResultDto update(@RequestBody @Validated WebActivityOcScheduledUpdateEntity entity) throws Exception;

    @PostMapping("/delete")
    BaseResultDto delete(@RequestBody @Validated WebActivityOcScheduledDeleteEntity entity) throws Exception;

    @PostMapping("/search/list")
    ResultWithPagerDto<WebActivityOcScheduledDto> searchPageList(@RequestBody @Validated WebActivityOcScheduledSearchEntity entity) throws Exception;

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

    @PostMapping("/click/allocation/roster")
    BaseResultDto clickAllocationRoster(@RequestBody @Validated WebActivityOcClickEntity entity) throws Exception;

}

