package com.crm.manager.service;

import com.crm.rely.backend.core.dto.account.belong.AccountBelongChangeDto;
import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.BaseResultWithPagerDto;
import com.crm.rely.backend.core.entity.account.belong.AccountBelongChangeAddEntity;
import com.crm.rely.backend.core.entity.account.belong.AccountBelongChangeListEntity;
import com.crm.rely.backend.core.entity.base.BaseApproveEntity;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.custom.info.InfoEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * Created by max on 2020/8/4.
 */
@FeignClient(name = "IB-SERVICE", path = "/manage/service/account/belong/change/")
public interface AccountBelongChangeService {

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

    @PostMapping("/search/list")
    BaseResultWithPagerDto<List<AccountBelongChangeDto>> searchList(AccountBelongChangeListEntity entity) throws Exception;

    @PostMapping("/approve")
    BaseResultDto<Object> approve(BaseApproveEntity entity) throws Exception;

    @PostMapping("/add")
    BaseResultDto<Object> add(AccountBelongChangeAddEntity entity) throws Exception;

}
