package org.springblade.modules.controller;

import lombok.AllArgsConstructor;
import org.springblade.core.tool.api.R;
import org.springblade.modules.service.RkxxService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@AllArgsConstructor
@RequestMapping("api")
public class RkxxController {

	private RkxxService rkxxService;

	/**
	 * 根据身份证号获取人口信息
	 */
	@GetMapping("selectRyxxBySfzh")
	public R selectRyxxBySfzh(String fzSfzh) {
		return R.data(rkxxService.selectRyxxBySfzh(fzSfzh));
	}

	/**
	 * 根据车牌号获取车俩信息
	 */
	@GetMapping("selectClxxByCphm")
	public R selectClxxByCphm(String cphm) {
		return R.data(rkxxService.selectClxxByCphm(cphm));
	}
}
