|
@ -4,14 +4,12 @@ import com.yihu.jw.patient.service.BasePatientService;
|
|
import com.yihu.jw.restmodel.web.Envelop;
|
|
import com.yihu.jw.restmodel.web.Envelop;
|
|
import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
|
|
import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
|
|
import com.yihu.jw.rm.base.BaseRequestMapping;
|
|
import com.yihu.jw.rm.base.BaseRequestMapping;
|
|
|
|
import com.yihu.jw.rm.hospital.BaseHospitalRequestMapping;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
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;
|
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("patient" )
|
|
@RequestMapping("patient" )
|
|
@ -30,4 +28,15 @@ public class PatientEndpoint extends EnvelopRestEndpoint {
|
|
String result = basePatientService.getPatientById(id);
|
|
String result = basePatientService.getPatientById(id);
|
|
return success(result);
|
|
return success(result);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PostMapping(value = BaseRequestMapping.BasePatient.updatePatientPw)
|
|
|
|
@ApiOperation(value = "修改居民账号密码")
|
|
|
|
public Envelop updateDoctorPw(@ApiParam(name = "id", value = "居民ID")
|
|
|
|
@RequestParam(value = "id", required = true)String id,
|
|
|
|
@ApiParam(name = "pw", value = "密码")
|
|
|
|
@RequestParam(value = "pw", required = true)String pw,
|
|
|
|
@ApiParam(name = "orgPw", value = "原密码")
|
|
|
|
@RequestParam(value = "orgPw", required = false)String orgPw)throws Exception{
|
|
|
|
return success(basePatientService.updatePatientPw(id,pw,orgPw));
|
|
|
|
}
|
|
}
|
|
}
|