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.WebActivityOcAreaListDto;
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/area/manager")
public interface WebActivityOcAreaFeignService {
    
    @PostMapping("/add")
    BaseResultDto add(@RequestBody @Validated WebActivityOcAreaAddEntity entity) throws Exception ;

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

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

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

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

    @PostMapping("/all/list")
    BaseResultDto getAllList(@RequestBody WebActivityOcAreaSearchEntity entity) throws Exception;

}

