package org.springblade.modules.feign;

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

@RestController
@AllArgsConstructor
public class RhzfRyLsClientImpl implements RhzfRyLsFeign {

	private RhzfRyLsService rhzfRyLsService;

	@Override
	@PostMapping(API_PREFIX + "/rylsSave")
	public R rylsSave(RhzfRyLsEntity rhzfRyLsEntity) {
		return R.data(rhzfRyLsService.save(rhzfRyLsEntity));
	}
}
