package org.springblade.modules.feign;

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

@RestController
@AllArgsConstructor
public class RhzfFzClientImpl implements RhzfFzFeign {

	private RhzfFzService rhzfFzService;

	@Override
	@PostMapping(API_PREFIX + "/fzSave")
	public R fzSave(@RequestBody FwFzEntity fwFzEntity) {
		return R.data(rhzfFzService.save(fwFzEntity));
	}
}
