package com.crm.manager.service.ib;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.BaseResultWithPagerDto;
import com.crm.rely.backend.core.dto.custom.commission.CustomCommissionApplyDto;
import com.crm.rely.backend.core.entity.custom.commission.CustomCommissionApplyApproveEntity;
import com.crm.rely.backend.core.entity.custom.commission.CustomCommissionApplyListEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * Created by max on 2020/8/25.
 */
@FeignClient(value = "IB-SERVICE", path = "/manage/service/custom/commission/apply")
public interface CustomCommissionApplyFeignService {


    @PostMapping("/list")
    BaseResultWithPagerDto<List<CustomCommissionApplyDto>> getList(CustomCommissionApplyListEntity entity) throws Exception;

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

}
