package com.prolog.cs.biz.inbound.remote;

import com.prolog.cs.basic.common.model.BaseBizFile;
import com.prolog.cs.basic.common.model.BaseCommonDict;
import com.prolog.cs.basic.common.model.SysRegistry;
import com.prolog.cs.basic.common.model.print.PrintInfo;
import com.prolog.cs.basic.common.model.print.PrintParam;
import com.prolog.cs.basic.common.model.vo.BaseBizFileQueryVO;
import com.prolog.framework.common.message.RestMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "${prolog.service.common}")
public interface CommonCaller {
	
//	@UserLog("图片-新增")
//	@ApiOperation(value = "新增")
	@PostMapping("/bizFile/add")
	public RestMessage<Object> add(List<BaseBizFile> dataList);

	@PostMapping("/bizFile/del")
	public RestMessage<Object> del(BaseBizFileQueryVO queryVO);

	@GetMapping("/dict/basic/type-list")
	public RestMessage<List<BaseCommonDict>> getDictBasicListByCodes(@RequestParam("typeCode") String typeCode, @RequestParam("dictCodes") String[] dictCodes);

	@PostMapping("/print/getPrintInfo")
	RestMessage<PrintInfo> getPrintInfo(@RequestBody PrintParam printParam);

	@GetMapping("/registry/get-code")
	RestMessage<SysRegistry> getRegistryInfo(@RequestParam("regCode") String regCode, @RequestParam("enterpriseId") String enterpriseId);

}
