package com.application.zhangshi_app_android.bean; import android.text.TextUtils; import java.util.HashMap; import java.util.Map; /** * @author Ljj * @date 2023.04.15. 21:30 * @desc */ public class LittleDoctorRequestBean extends PageRequestBean{ private String type;//类型 private String symptom;//症状 private String prescription;//处方 private String suitable;//适用人群 public LittleDoctorRequestBean() { } @Override public Map toMap() { Map map = super.toMap(); map.put("type",type==null?"":type); map.put("symptom",symptom==null?"":symptom); if (!TextUtils.isEmpty(prescription)){ map.put("prescription",prescription==null?"":prescription); } map.put("suitable",suitable==null?"":suitable); return map; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getSymptom() { return symptom; } public void setSymptom(String symptom) { this.symptom = symptom; } public String getPrescription() { return prescription; } public void setPrescription(String prescription) { this.prescription = prescription; } public String getSuitable() { return suitable; } public void setSuitable(String suitable) { this.suitable = suitable; } }