@RequestBody请求参数为Map类型
controller函数写法
public CommonResult addTreatmentRecords(@ApiParam(required = true, value = "记录主键recordId、记录创建时间creatTime、诊疗记录内容treatmentRemark")
@RequestBody Map<String, Object> params) throws Exception{}
采用swagger测试时,参数的写法,不要忘记将参数放入 {} 中