package org.springblade.modules.feign;

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

@RestController
@AllArgsConstructor
public class RhzfFwLsClientImpl implements RhzfFwLsFeign {

	private RhzfFwLsService rhzfFwLsService;

	@Override
	@PostMapping(API_PREFIX + "/fwlsSave")
	public R fwlsSave(FwLsEntity fwLsEntity) {
		return R.data(rhzfFwLsService.save(fwLsEntity));
	}
}
