package com.crm.manager.service.ucard;

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.ucard.CardIdTypeConfigDto;
import com.crm.rely.backend.core.entity.base.BaseDeleteEntities;
import com.crm.rely.backend.core.entity.ucard.CardIdTypeConfigAddEntity;
import com.crm.rely.backend.core.entity.ucard.CardIdTypeConfigPageEntity;
import com.crm.rely.backend.core.entity.ucard.CardIdTypeConfigUpdateEntity;
import com.crm.rely.backend.exception.ServiceException;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(name = "UCARD-SERVICE", path = "/ucard/id/type/config/manager")
public interface UcardIdTypeFeignService {


    /**
     * 证件类型配置列表
     */
    @PostMapping("/list")
    ResultWithPagerDto<CardIdTypeConfigDto> getCardIdTypeConfigList(CardIdTypeConfigPageEntity entity) throws ServiceException;

    /**
     * 批量新增证件类型配置
     */
    @PostMapping("/add")
    BaseResultDto batchAddCardIdTypeConfig(List<CardIdTypeConfigAddEntity> entitys) throws ServiceException;

    /**
     * 修改证件类型配置
     */
    @PostMapping("/update")
    BaseResultDto updateCardIdTypeConfig(CardIdTypeConfigUpdateEntity entity) throws ServiceException;

    /**
     * 删除证件类型配置
     */
    @PostMapping("/delete")
    BaseResultDto deleteCardIdTypeConfig(BaseDeleteEntities entity) throws ServiceException;



}
