App接口入参改为请求体方式

master
chenfei 2 years ago
parent dceb59eb94
commit c6ed4cd687

@ -148,7 +148,7 @@ public class AppController extends BaseController
*/ */
@ApiOperation("诊断记录上传") @ApiOperation("诊断记录上传")
@PostMapping("/record/diagnostic/upload") @PostMapping("/record/diagnostic/upload")
public AjaxResult diagnosticRecordsUploaded(AppRecordReq appRecordReq) { public AjaxResult diagnosticRecordsUploaded(@RequestBody AppRecordReq appRecordReq) {
TRecord tRecord = new TRecord(); TRecord tRecord = new TRecord();
BeanUtils.copyProperties(appRecordReq, tRecord); BeanUtils.copyProperties(appRecordReq, tRecord);
return AjaxResult.success(tRecordService.updateTRecord(tRecord)); return AjaxResult.success(tRecordService.updateTRecord(tRecord));
@ -162,7 +162,7 @@ public class AppController extends BaseController
*/ */
@ApiOperation("添加患者") @ApiOperation("添加患者")
@PostMapping("/patient/add") @PostMapping("/patient/add")
public AjaxResult addPatient(AppPatientReq appPatientReq) public AjaxResult addPatient(@RequestBody AppPatientReq appPatientReq)
{ {
TPatient tPatient = new TPatient(); TPatient tPatient = new TPatient();
BeanUtils.copyProperties(appPatientReq, tPatient); BeanUtils.copyProperties(appPatientReq, tPatient);

Loading…
Cancel
Save