package com.crm.manager.service.activity;

import com.crm.rely.backend.core.dto.account.apply.AccountApplyDto;
import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.ResultWithPagerDto;
import com.crm.rely.backend.core.entity.account.apply.AccountApplyAddEntity;
import com.crm.rely.backend.core.entity.account.apply.AccountApplyApproveEntity;
import com.crm.rely.backend.core.entity.account.apply.AccountApplySearchListEntity;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "CUSTOM-SERVICE", path = "/account/apply")
public interface AccountApplyFeignService {

    @PostMapping("/manager/approve")
    BaseResultDto approve(AccountApplyApproveEntity entity) throws Exception;

    @PostMapping("/manager/list")
    ResultWithPagerDto<AccountApplyDto> searchPageList(AccountApplySearchListEntity entity) throws Exception;

    @PostMapping("/manager/single")
    AccountApplyDto single(SingleLongEntity entity) throws Exception;

    @PostMapping("/manager/add")
    BaseResultDto add(AccountApplyAddEntity accountApplyAddEntity) throws Exception;

}
