package com.rongwei.safecommon.fegin;

import com.rongwei.rwcommon.base.R;
import com.rongwei.rwcommon.vo.CriteriaQuery;
import com.rongwei.rwcommon.vo.MailDo;
import com.rongwei.rwcommon.vo.generalsql.BatchSaveVo;
import com.rongwei.rwcommonentity.commonservers.vo.SysNotifyAnnounceVo;
import com.rongwei.rwcommonentity.commonservers.vo.SysSerialVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

@FeignClient(value = "rw-admin",fallback = CXAdminFeginClientError.class,contextId = "adminFeign")
public interface CXAdminFeginClient {
    @PostMapping("sys/generalCRUD/getDataBySql")
    R getDataBySql(@RequestBody CriteriaQuery query);

    @PostMapping("sys/generalCRUD/batchSaveList")
    R batchSaveList(@RequestBody BatchSaveVo batchSaveVo);

    @PostMapping("sys/generalCRUD/getSerialNumberCode")
    R<Map<String, Object>> getSerialNumberCode(@RequestBody SysSerialVo sysSerialVo);
}
