|  | @ -0,0 +1,33 @@
 | 
	
		
			
				|  |  | package com.yihu.jw.hospital.endpoint.account;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import com.yihu.jw.patient.service.BasePatientService;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.Envelop;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
 | 
	
		
			
				|  |  | import com.yihu.jw.rm.base.BaseRequestMapping;
 | 
	
		
			
				|  |  | import io.swagger.annotations.Api;
 | 
	
		
			
				|  |  | import io.swagger.annotations.ApiOperation;
 | 
	
		
			
				|  |  | import io.swagger.annotations.ApiParam;
 | 
	
		
			
				|  |  | import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.GetMapping;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.RequestMapping;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.RequestParam;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.RestController;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | @RestController
 | 
	
		
			
				|  |  | @RequestMapping("patient" )
 | 
	
		
			
				|  |  | @Api(tags = "用户基础信息", description = "互联网医院")
 | 
	
		
			
				|  |  | public class PatientEndpoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private BasePatientService basePatientService;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @GetMapping(value = BaseRequestMapping.BasePatient.getPatientById)
 | 
	
		
			
				|  |  |     @ApiOperation(value = "获取居民信息")
 | 
	
		
			
				|  |  |     public Envelop getPatientById(
 | 
	
		
			
				|  |  |             @ApiParam(name = "id", value = "居民id")
 | 
	
		
			
				|  |  |             @RequestParam(value = "id", required = true) String id) throws Exception {
 | 
	
		
			
				|  |  |         String result = basePatientService.getPatientById(id);
 | 
	
		
			
				|  |  |         return success(result);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | }
 |