package com.yuchen.saas.park.api.feign.client;

import com.yuchen.saas.park.api.entity.park.PmgBatParkCompany;
import com.yuchen.saas.park.api.entity.park.PmgBatParkUserOperationLog;
import org.nest.springwrap.core.launch.app.AppNameConstant;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * 切面日志用
 */
@FeignClient(
		value = AppNameConstant.SAAS_PARK,
		fallback = PmgBatParkCompanyClientFallback.class
)
public interface PmgBatParkCompanyClient {
	/**
	 * save
	 * @param log
	 * @return
	 */
	@PostMapping("/company/save")
	R<PmgBatParkCompany>  save(@RequestBody PmgBatParkCompany pmgBatParkCompany);

	@GetMapping("/company/detail")
	R<PmgBatParkCompany>  detail(@SpringQueryMap PmgBatParkCompany pmgBatParkCompany);

}
