package org.springblade.modules.feign;

import lombok.AllArgsConstructor;
import org.springblade.core.tool.api.R;
import org.springblade.modules.entity.FwRyEntity;
import org.springblade.modules.service.RhzfFwRyService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@AllArgsConstructor
public class RhzfFwRyClientImpl implements RhzfFwRyFeign {

	private RhzfFwRyService rhzfFwRyService;

	@Override
	@PostMapping(API_PREFIX + "/fwrySave")
	public R fwrySave(FwRyEntity fwRyEntity) {
		return R.data(rhzfFwRyService.save(fwRyEntity));
	}
}
