package com.crm.manager.service;

import com.crm.rely.backend.core.constant.FeignClientAnnotation;
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.mam.MamListDto;
import com.crm.rely.backend.core.entity.base.BaseDeleteEntities;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.custom.info.InfoEntity;
import com.crm.rely.backend.core.entity.mam.MamListSearchEntity;
import com.crm.rely.backend.exception.ServiceException;
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/24.
 */
@FeignClient(value = "IB-SERVICE",path = "/manage/service/mam")
public interface MamListFeignService {

    /**
     * 查询mam账户列表
     *
     * @param entity
     * @return
     * @throws Exception
     */
    @PostMapping("/list")
    BaseResultWithPagerDto<List<MamListDto>> mamList(MamListSearchEntity entity) throws Exception;

    @PostMapping("/pm/delete")
    BaseResultDto<Boolean> deletePm(BaseDeleteEntities entities) throws Exception;

    @PostMapping("/lock")
    BaseResultDto<Object> lock(SingleLongEntity entity) throws ServiceException;

}
