diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index d312772..20ec71e 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -74,7 +74,7 @@
+ android:value="0771c9b6ed759235927c3738ff4c070b" />
@@ -178,6 +178,22 @@
+
+
+
+
+
+
diff --git a/app/src/main/assets/tab.json b/app/src/main/assets/tab.json
index fe3fc35..2140e7b 100644
--- a/app/src/main/assets/tab.json
+++ b/app/src/main/assets/tab.json
@@ -14,7 +14,7 @@
"iconSelected": "main_home_tab_index_selected"
},
{
- "tabName": "就医",
+ "tabName": "应急",
"tabTag": "key_emergency_fragment",
"iconNormal": "main_home_tab_emergency_normal",
"iconSelected": "main_home_tab_emergency_selected",
diff --git a/app/src/main/java/com/xjjk/healthyclients/MainActivity.kt b/app/src/main/java/com/xjjk/healthyclients/MainActivity.kt
index 8102682..87ec179 100644
--- a/app/src/main/java/com/xjjk/healthyclients/MainActivity.kt
+++ b/app/src/main/java/com/xjjk/healthyclients/MainActivity.kt
@@ -9,27 +9,44 @@ import android.os.Message
import android.view.Gravity
import android.view.KeyEvent
import android.view.View
+import android.widget.Toast
import androidx.fragment.app.Fragment
+import androidx.lifecycle.Lifecycle
+import androidx.lifecycle.lifecycleScope
+import androidx.lifecycle.repeatOnLifecycle
import com.amap.api.maps.MapsInitializer
import com.permissionx.guolindev.PermissionX
import com.sw.healthyclients.data.local.DataStoreManager
import com.sw.healthyclients.utils.CustomActivityManager
+import com.sw.healthyclients.view.CustomToast
+import com.tencent.qcloud.tuicore.TUICore
+import com.tencent.qcloud.tuikit.tuichat.TUIChatService
+import com.tencent.qcloud.tuikit.tuichat.classicui.event.IMChatEvent
import com.xjjk.healthyclients.base.BaseVMBActivity
import com.xjjk.healthyclients.bottomtab.HomeBottomTabLayout
import com.xjjk.healthyclients.databinding.ActivityMainBinding
+import com.xjjk.healthyclients.event.RefreshEvent
+import com.xjjk.healthyclients.event.UserNoticeBean
import com.xjjk.healthyclients.fragment.EmergencyFragment
import com.xjjk.healthyclients.fragment.GuidanceFragment
import com.xjjk.healthyclients.fragment.MonitorFragment
+import com.xjjk.healthyclients.superfuntion.loginIm
+import com.xjjk.healthyclients.superfuntion.startAllDoctorActivity
import com.xjjk.healthyclients.superfuntion.startLoginActivity
+import com.xjjk.healthyclients.ui.viewmodel.MainViewModel
import com.xjjk.healthyclients.utils.ConstantUtils
import com.xjjk.healthyclients.utils.LocationManager
import com.xjjk.healthyclients.utils.SystemUtils
+import com.xjjk.healthyclients.view.FuntionBlurbDialog
import com.xjjk.healthyclients.view.PrivacyDialog
import com.xjjk.healthyclients.view.TextViewDialog
+import kotlinx.coroutines.flow.collectLatest
+import kotlinx.coroutines.launch
+import org.greenrobot.eventbus.EventBus
import org.lzh.framework.updatepluginlib.UpdateBuilder
-class MainActivity : BaseVMBActivity(R.layout.activity_main),
+class MainActivity : BaseVMBActivity(R.layout.activity_main),
HomeBottomTabLayout.HomeBottomTabLayoutCallback {
//每个tab对应的tag,和json配置文件中保持一致
@@ -37,6 +54,9 @@ class MainActivity : BaseVMBActivity(R.layout
val TAG_EMERGENCY = "key_emergency_fragment"
val TAG_MONITOR = "key_monitor_fragment"
val TAG_MY = "key_my_fragment"
+ var mIMChatEvent:IMChatEvent?=null
+ var doctorId=""
+
var textViewDialog: TextViewDialog? = null
var mPermissionList = arrayListOf(
Manifest.permission.WRITE_EXTERNAL_STORAGE,
@@ -135,6 +155,102 @@ class MainActivity : BaseVMBActivity(R.layout
super.onBackEvent()
}
+ override fun createObserve() {
+ super.createObserve()
+ lifecycleScope.launch {
+ repeatOnLifecycle(Lifecycle.State.CREATED) {
+ mViewModel.tokenOverdue.collectLatest { overdue ->
+ if (overdue) {
+ ConstantUtils.mCheckToken = true
+ EventBus.getDefault().post(RefreshEvent())
+ if (DataStoreManager.getToken().isNotEmpty()) {
+ mViewModel.getNoticeData()
+ }
+ if (DataStoreManager.isLogin()) {
+ MyApplication.appViewModel?.getIMSig(successCall = {
+ loginIm(it.userId, it.userSig)
+ })
+ }
+ } else {
+ ConstantUtils.mCheckToken = false
+// startLoginActivity(this@MainActivity)
+ }
+ }
+ }
+ }
+ //用户弹窗
+ lifecycleScope.launch {
+ repeatOnLifecycle(Lifecycle.State.CREATED) {
+ mViewModel.noticeBean.collectLatest { bean ->
+ if (bean.title.isNotEmpty() && bean.content.isNotEmpty()) {
+ showBlurbDialog(bean)
+ }
+ }
+ }
+ }
+ //用户弹窗-结果提交
+ lifecycleScope.launch {
+ repeatOnLifecycle(Lifecycle.State.CREATED) {
+ mViewModel.submitNoticeChooseResult.collectLatest { success ->
+ if (success) {
+ mFunctionBlurbDialog?.cancel()
+ }
+ }
+ }
+ }
+ //用户弹窗-结果提交
+ lifecycleScope.launch {
+ repeatOnLifecycle(Lifecycle.State.CREATED) {
+ mViewModel.timePrescription.collectLatest { result ->
+ if (result=="1") {
+ //过期
+// val textViewDialog = TextViewDialog(CustomActivityManager.getInstance().TopActivity())
+// textViewDialog?.setDialogTitle("温馨提示", 18f)
+// textViewDialog?.setContent("医生信息已过期!", 14f)
+// textViewDialog?.setContentStyle(Gravity.LEFT)
+// textViewDialog?.setBtnText("确认", 18f)
+// textViewDialog?.setDialogCancelable(false)
+// textViewDialog?.setOnAffirmClickListener(object : TextViewDialog.OnAffirmClickListener {
+// override fun onAffirmClick(viewDialog: TextViewDialog) {
+//
+// }
+//
+// override fun onCancelClick(viewDialog: TextViewDialog) {
+//
+// }
+// })
+// textViewDialog?.show()
+ CustomToast.makeText(CustomActivityManager.getInstance().TopActivity(), "医生信息已过期!", Toast.LENGTH_SHORT).show()
+ }else{
+ //未过期
+ val bundle = Bundle()
+ bundle.putString("doctorId", mIMChatEvent?.getDoctor())
+ TUICore.startActivity(
+ TUIChatService.getAppContext(),
+ "DoctorHomepageActivity",
+ bundle
+ )
+ }
+ }
+ }
+ }
+
+ //全科医生校验
+ lifecycleScope.launch {
+ repeatOnLifecycle(Lifecycle.State.CREATED) {
+ mViewModel.selectTfHelper.collectLatest { success ->
+ if (success) {
+ //去查询全科医生信息
+ if (doctorId.isNotEmpty()) {
+ mContext?.startAllDoctorActivity(doctorId)
+ }
+ }
+ }
+ }
+ }
+
+ }
+
override fun onPause() {
textViewDialog?.dismiss()
super.onPause()
@@ -205,6 +321,7 @@ class MainActivity : BaseVMBActivity(R.layout
// }
// }
}
+ private val mFunctionBlurbDialog : FuntionBlurbDialog by lazy { FuntionBlurbDialog(this@MainActivity) }
private var isExit = false
var mHandler: Handler = @SuppressLint("HandlerLeak")
@@ -234,5 +351,43 @@ class MainActivity : BaseVMBActivity(R.layout
}
return super.onKeyDown(keyCode, event)
}
+ private fun showBlurbDialog(bean: UserNoticeBean) {
+ mFunctionBlurbDialog?.setTitle(bean.title)
+ mFunctionBlurbDialog?.setContent(bean.content)
+ mFunctionBlurbDialog?.setOnAffirmClickListener(object :
+ FuntionBlurbDialog.OnAffirmClickListener {
+ override fun onAffirmClick(type: Int, viewDialog: FuntionBlurbDialog) {
+ mViewModel.submitNoticeChooseItem(bean.id, type)
+ }
+ })
+ mFunctionBlurbDialog?.show()
+ }
+
+
+ override fun onMessageEvent(event: Any?) {
+ super.onMessageEvent(event)
+ try {
+ event?.let { event ->
+ if (event is IMChatEvent) {
+ if (event.getType()==0) {
+ mIMChatEvent=event
+ mViewModel.initIMDialog()
+ mViewModel.selectDoctorCardExpireTime(event.time)
+ }else if (event.getType()==1){
+ if (event.message.isNotEmpty()) {
+ CustomToast.makeText(CustomActivityManager.getInstance().TopActivity(), event.message, Toast.LENGTH_SHORT).show()
+ }
+ }else if (event.getType()==2){
+ doctorId=event.doctor
+ mViewModel.initIMDialog()
+ mViewModel.selectTfHelper(event.doctor)
+ println("头像id"+doctorId)
+ }
+ }
+ }
+ } catch (e: Exception) {
+ }
+ }
+
}
\ No newline at end of file
diff --git a/app/src/main/java/com/xjjk/healthyclients/MyApplication.kt b/app/src/main/java/com/xjjk/healthyclients/MyApplication.kt
index 3ab19d9..d6de4ae 100644
--- a/app/src/main/java/com/xjjk/healthyclients/MyApplication.kt
+++ b/app/src/main/java/com/xjjk/healthyclients/MyApplication.kt
@@ -12,6 +12,8 @@ import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelStore
import androidx.lifecycle.ViewModelStoreOwner
+import com.bumptech.glide.Glide
+import com.bumptech.glide.load.model.GlideUrl
import com.lzy.ninegrid.NineGridView
import com.orhanobut.logger.AndroidLogAdapter
import com.orhanobut.logger.Logger
@@ -28,6 +30,7 @@ import com.tencent.qcloud.tuicore.TUIThemeManager
import com.tencent.qcloud.tuicore.interfaces.TUILoginListener
import com.tencent.qcloud.tuicore.util.ErrorMessageConverter
import com.tencent.qcloud.tuicore.util.TUIUtil
+import com.tencent.qcloud.tuikit.tuichat.classicui.widget.message.viewholder.LocationMessageHolder
import com.tencent.qcloud.tuikit.tuichat.config.TUIChatConfigs
import com.tencent.qcloud.tuikit.tuichat.interfaces.IMInputViewActionListener
import com.xjjk.healthyclients.bean.AppUpdateBean
@@ -44,6 +47,7 @@ import com.xjjk.healthyclients.utils.updateplugin.CustomDownloadNotifier
import com.xjjk.healthyclients.utils.updateplugin.CustomInstallNotifier
import com.xjjk.healthyclients.utils.updateplugin.CustomUpdateNotifier
import com.xjjk.healthyclients.view.AppraiseDialog
+import okhttp3.OkHttpClient
import org.json.JSONException
import org.json.JSONObject
import org.lzh.framework.updatepluginlib.UpdateConfig
@@ -71,6 +75,7 @@ class MyApplication : Application(), ViewModelStoreOwner {
Log.i(TAG, "onCreate")
super.onCreate()
ConstantUtils.mIsCloseDialog=true
+ LocationMessageHolder.mapKey = "a87b89a2b4a32ed31da04d0996035cc1"
Logger.addLogAdapter(AndroidLogAdapter())
appContext = this
DownloadFileUtil.init(this)
diff --git a/app/src/main/java/com/xjjk/healthyclients/adapter/user/UserContactsAdapter.kt b/app/src/main/java/com/xjjk/healthyclients/adapter/user/UserContactsAdapter.kt
new file mode 100644
index 0000000..8913480
--- /dev/null
+++ b/app/src/main/java/com/xjjk/healthyclients/adapter/user/UserContactsAdapter.kt
@@ -0,0 +1,28 @@
+package com.xjjk.healthyclients.adapter.user
+
+import android.content.Context
+import android.widget.TextView
+import com.xjjk.healthyclients.R
+import com.xjjk.healthyclients.adapter.common.CommonAdapter
+import com.xjjk.healthyclients.adapter.common.ViewHolder
+import com.xjjk.healthyclients.bean.user.SelectEmergencyContactListBean
+
+class UserContactsAdapter(
+ var mContext: Context?,
+ var layoutId: Int,
+ var datas: ArrayList?
+) : CommonAdapter(mContext, layoutId, datas) {
+ override fun convert(holder: ViewHolder?, bean: SelectEmergencyContactListBean?, position: Int) {
+ holder?.getView(R.id.item_user_name)?.let{
+ bean?.apply {
+ it.text= "$name-$phone"
+ }
+ }
+ holder?.getView(R.id.item_user_concern)?.let{
+ bean?.apply {
+ it.text= familyRelation_dictText
+ }
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/xjjk/healthyclients/bean/user/IMDoctorInfoBean.java b/app/src/main/java/com/xjjk/healthyclients/bean/user/IMDoctorInfoBean.java
new file mode 100644
index 0000000..d970660
--- /dev/null
+++ b/app/src/main/java/com/xjjk/healthyclients/bean/user/IMDoctorInfoBean.java
@@ -0,0 +1,50 @@
+package com.xjjk.healthyclients.bean.user;
+
+public class IMDoctorInfoBean {
+
+ private String id;
+ private String userId;
+ private String userName;
+ private String faceUrl;
+ private String memo;
+
+ public String getId() {
+ return id == null ? "" : id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getUserId() {
+ return userId == null ? "" : userId;
+ }
+
+ public void setUserId(String userId) {
+ this.userId = userId;
+ }
+
+ public String getUserName() {
+ return userName == null ? "" : userName;
+ }
+
+ public void setUserName(String userName) {
+ this.userName = userName;
+ }
+
+ public String getFaceUrl() {
+ return faceUrl == null ? "" : faceUrl;
+ }
+
+ public void setFaceUrl(String faceUrl) {
+ this.faceUrl = faceUrl;
+ }
+
+ public String getMemo() {
+ return memo == null ? "" : memo;
+ }
+
+ public void setMemo(String memo) {
+ this.memo = memo;
+ }
+}
diff --git a/app/src/main/java/com/xjjk/healthyclients/chart/DoubleWheelBaseLayout.java b/app/src/main/java/com/xjjk/healthyclients/chart/DoubleWheelBaseLayout.java
index 926e64b..addeace 100644
--- a/app/src/main/java/com/xjjk/healthyclients/chart/DoubleWheelBaseLayout.java
+++ b/app/src/main/java/com/xjjk/healthyclients/chart/DoubleWheelBaseLayout.java
@@ -23,13 +23,13 @@ import androidx.annotation.CallSuper;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
-import com.github.gzuliyujiang.wheelpicker.R;
import com.github.gzuliyujiang.wheelpicker.contract.LinkageProvider;
import com.github.gzuliyujiang.wheelpicker.contract.OnLinkageSelectedListener;
import com.github.gzuliyujiang.wheelpicker.widget.BaseWheelLayout;
import com.github.gzuliyujiang.wheelview.annotation.ScrollState;
import com.github.gzuliyujiang.wheelview.contract.WheelFormatter;
import com.github.gzuliyujiang.wheelview.widget.WheelView;
+import com.xjjk.healthyclients.R;
import java.util.Arrays;
import java.util.List;
@@ -68,7 +68,7 @@ public class DoubleWheelBaseLayout extends BaseWheelLayout {
@Override
protected int provideLayoutRes() {
- return R.layout.wheel_picker_linkage;
+ return R.layout.wheel_picker_linkage_my;
}
@CallSuper
diff --git a/app/src/main/java/com/xjjk/healthyclients/data/api/CommonApi.kt b/app/src/main/java/com/xjjk/healthyclients/data/api/CommonApi.kt
index e818495..d465a6c 100644
--- a/app/src/main/java/com/xjjk/healthyclients/data/api/CommonApi.kt
+++ b/app/src/main/java/com/xjjk/healthyclients/data/api/CommonApi.kt
@@ -7,6 +7,8 @@ import com.xjjk.healthyclients.bean.LoginBean
import com.xjjk.healthyclients.bean.SelectUserInfoBean
import com.xjjk.healthyclients.bean.SelectUserMessageListBean
import com.xjjk.healthyclients.bean.UploadFileResultBean
+import com.xjjk.healthyclients.bean.user.IMDoctorInfoBean
+import com.xjjk.healthyclients.bean.user.SelectEmergencyContactListBean
import com.xjjk.healthyclients.data.bean.ApiResponse
import com.xjjk.healthyclients.event.UserNoticeBean
import okhttp3.MultipartBody
@@ -79,6 +81,16 @@ interface CommonApi {
*/
@GET("/sys/api/messageRemind/changeAlRead")
suspend fun changeAlRead(@QueryMap params: MutableMap): ApiResponse
+ /**
+ * 更新紧急联系人
+ */
+ @POST("/sys/api/emergencyContact/updateAndInsertEmergencyContact")
+ suspend fun updateAndInsertEmergencyContact(@Body bean: SelectEmergencyContactListBean): ApiResponse
+ /**
+ * 删除紧急联系人
+ */
+ @GET("/sys/api/emergencyContact/removeEmergencyContactList")
+ suspend fun removeEmergencyContactList(@QueryMap params: MutableMap): ApiResponse
/**
* 检查更新
@@ -96,6 +108,23 @@ interface CommonApi {
*/
@GET("/health-consultation/api/consult/notice/chooseToDontShowUp")
suspend fun chooseToDontShowUp(@QueryMap params: MutableMap): ApiResponse
+ /**
+ * 卡片时效校验
+ */
+ @GET("health-consultation/api/consult/conSession/selectDoctorCardExpireTime")
+ suspend fun selectDoctorCardExpireTime(@QueryMap params: MutableMap): ApiResponse
+
+ /**
+ * 全科医生校验
+ */
+ @GET("health-consultation/api/consult/conHelper/selectTfHelper")
+ suspend fun selectTfHelper(@QueryMap params: MutableMap): ApiResponse
+
+ /**
+ * 查询全科医生信息
+ */
+ @GET("health-consultation/api/consult/conHelper/selectHelperInfoDesc")
+ suspend fun selectHelperInfoDesc(@QueryMap params: MutableMap): ApiResponse
}
\ No newline at end of file
diff --git a/app/src/main/java/com/xjjk/healthyclients/data/api/GuidanceApi.kt b/app/src/main/java/com/xjjk/healthyclients/data/api/GuidanceApi.kt
index e68101f..327d2ce 100644
--- a/app/src/main/java/com/xjjk/healthyclients/data/api/GuidanceApi.kt
+++ b/app/src/main/java/com/xjjk/healthyclients/data/api/GuidanceApi.kt
@@ -231,7 +231,7 @@ interface GuidanceApi {
/**
* 咨询小助手
*/
- @GET("health-consultation/api/consult/conSession/insertUserAndHelperSession")
+ @GET("health-consultation/api/consult/conSession/insertUserAndHelperSessionNew")
suspend fun submitAssistantConsultApply(): ApiResponse
/**
* 获取档案列表
diff --git a/app/src/main/java/com/xjjk/healthyclients/data/api/HealthRecordApi.kt b/app/src/main/java/com/xjjk/healthyclients/data/api/HealthRecordApi.kt
deleted file mode 100644
index 442517b..0000000
--- a/app/src/main/java/com/xjjk/healthyclients/data/api/HealthRecordApi.kt
+++ /dev/null
@@ -1,170 +0,0 @@
-package com.xjjk.healthyclients.data.api
-
-
-import com.xjjk.healthyclients.bean.healthrecord.CheckRecordUserInfoBean
-import com.xjjk.healthyclients.data.bean.ApiResponse
-import retrofit2.http.GET
-import retrofit2.http.QueryMap
-
-/**
- * @author nanfeifei
- * @time 2023/8/4 13:22
- * @description
- */
-interface HealthRecordApi {
-// /**
-// * 健康数据分析
-// */
-// @GET("health-archives/api/archives/medicalDataAnalysis/selectMedicalDataAnalysisVOList")
-// suspend fun getHealthDataAnalysisData(): ApiResponse>
-//
-// /**
-// * 健康数据分析子项(比如:化学检查列表)
-// */
-// @GET("health-archives/api/archives/medicalDataAnalysis/selectMedicalUniItemClassList")
-// suspend fun getHealthDataAnalysisItemData(@QueryMap params: MutableMap): ApiResponse>
-//
-// /**
-// * 健康数据分析子项详情(比如:血常规)
-// */
-// @GET("health-archives/api/archives/medicalUserResult/selectMedicalUserResult")
-// suspend fun getHealthDataAnalysisItemDetailData(@QueryMap params: MutableMap): ApiResponse>
-//
-// /**
-// * 检查子项记录(比如:白细胞数)
-// */
-// @GET("health-archives/api/archives/medicalUserResult/selectMedicalUserResultInfoById")
-// suspend fun getHealthCheckItemRecordData(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 腰臀比
-// */
-// @GET("health-archives/api/archives/compute/waistHipRatio")
-// suspend fun waistHipRatio(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 理想体重
-// */
-// @GET("health-archives/api/archives/compute/idealBodyWeight")
-// suspend fun idealBodyWeight(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 能量需求
-// */
-// @GET("health-archives/api/archives/compute/energyDemand")
-// suspend fun energyDemand(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 所有运动
-// */
-// @GET("health-archives/api/archives/compute/allExercise")
-// suspend fun allExercise(@QueryMap params: MutableMap): ApiResponse>
-//
-// /**
-// * 减掉一公斤
-// */
-// @GET("health-archives/api/archives/compute/loseKilo")
-// suspend fun loseKilo(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 一分钟了解自己
-// */
-// @GET("health-archives/api/archives/compute/knowYourselfInMinute")
-// suspend fun knowYourselfInMinute(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 健康监测首页
-// */
-// @GET("health-archives/api/archives/healthMonitoring/selectHealthMonitoringInfo")
-// suspend fun selectHealthMonitoringInfo(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 体重记录
-// */
-// @GET("health-archives/api/archives/healthMonitoring/selectHeightAndWeightBmiList")
-// suspend fun selectHeightAndWeightBmiList(@QueryMap params: MutableMap): ApiResponse>
-//
-// /**
-// * 血脂记录
-// */
-// @GET("health-archives/api/archives/healthMonitoring/selectBloodFat")
-// suspend fun selectBloodFat(@QueryMap params: MutableMap): ApiResponse>
-//
-// /**
-// * 血糖记录
-// */
-// @GET("health-archives/api/archives/healthMonitoring/selectBloodSugarList")
-// suspend fun selectBloodSugarList(@QueryMap params: MutableMap): ApiResponse>
-//
-// /**
-// * 血压记录
-// */
-// @GET("health-archives/api/archives/healthMonitoring/selectBloodPresureList")
-// suspend fun selectBloodPresureList(@QueryMap params: MutableMap): ApiResponse>
-//
-// /**
-// * 血糖详情
-// */
-// @GET("health-archives/api/archives/healthMonitoring/selectBloodSugarInfo")
-// suspend fun selectBloodSugarInfo(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * BMI首页
-// */
-// @GET("health-archives/api/archives/healthMonitoring/selectHeightAndWeightBmi")
-// suspend fun getBMIHomeData(): ApiResponse
-//
-// /**
-// * 血压详情
-// */
-// @GET("health-archives/api/archives/healthMonitoring/selectBloodPresure")
-// suspend fun selectBloodPresure(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 异常项列表
-// */
-// @GET("health-archives/api/archives/healthQuo/exceptionList")
-// suspend fun getExceptionData(): ApiResponse>
-//
-// /**
-// * 健康现状首页
-// */
-// @GET("health-archives/api/archives/healthQuo/info")
-// suspend fun getHealthStatusData(): ApiResponse
-//
-// /**
-// * 健康现状首页
-// */
-// @GET("health-archives/api/archives/medicalUserResult/selectMedicalMiddleResultExtVO")
-// suspend fun getConclusionSuggestionData(@QueryMap params: MutableMap): ApiResponse
-//
- /**
- * 体检报告人员信息
- */
- @GET("health-archives/historyReport/getHistoryReportById")
- suspend fun getHistoryReportNoDetail(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 历年体检列表
-// */
-// @POST("health-archives/historyReport/getHistoryReportByPage")
-// suspend fun getHistoryReportByPage(@Body requestBody: RequestBody): ApiResponse
-//
-// /**
-// * 获取存在结论建议的日期列表
-// */
-// @GET("health-archives/api/archives/medicalUserResult/selectMedicalUserResultInfoExDate")
-// suspend fun getConclusionSuggestionDateList(): ApiResponse>
-//
-// /**
-// * 获取体检结论、建议语音文件
-// */
-// @GET("health-archives/historyReport/getVoiceUrl")
-// suspend fun getReportVoiceUrl(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 生成体检结论、建议语音文件
-// */
-// @GET("health-archives/historyReport/convertVoice2")
-// suspend fun convertReportVoiceUrl(@QueryMap params: MutableMap): ApiResponse
-}
\ No newline at end of file
diff --git a/app/src/main/java/com/xjjk/healthyclients/data/api/InterventionApi.kt b/app/src/main/java/com/xjjk/healthyclients/data/api/InterventionApi.kt
deleted file mode 100644
index 51f8cfd..0000000
--- a/app/src/main/java/com/xjjk/healthyclients/data/api/InterventionApi.kt
+++ /dev/null
@@ -1,447 +0,0 @@
-package com.xjjk.healthyclients.data.api
-
-import com.sw.healthyclients.bean.intervention.NearbyAmbulanceBean
-import com.xjjk.healthyclients.bean.AedNetworkingBean
-import com.xjjk.healthyclients.bean.NearbyResourceBean
-import com.xjjk.healthyclients.data.bean.ApiResponse
-import retrofit2.http.GET
-import retrofit2.http.QueryMap
-
-//
-//import com.sw.healthyclients.bean.common.CommonSettingMenuBean
-//import com.sw.healthyclients.bean.emergency.EmergencyGroupInfo
-//import com.sw.healthyclients.bean.home.HomeWeightRankBean
-//import com.sw.healthyclients.bean.intervention.AEDResultBean
-//import com.sw.healthyclients.bean.intervention.DoctorListBean
-//import com.sw.healthyclients.bean.intervention.ElectronicBookBean
-//import com.sw.healthyclients.bean.intervention.EmergencySearchResponse
-//import com.sw.healthyclients.bean.intervention.ImageTextBean
-//import com.sw.healthyclients.bean.intervention.InterventionPlanBean
-//import com.sw.healthyclients.bean.intervention.KnowledgeSuggestBean
-//import com.sw.healthyclients.bean.intervention.KnowledgeSuggestDetailBean
-//import com.sw.healthyclients.bean.intervention.MySportBean
-//import com.sw.healthyclients.bean.intervention.MySportDetailBean
-//import com.sw.healthyclients.bean.intervention.NearbyAmbulanceBean
-//import com.sw.healthyclients.bean.intervention.NearbyResourceBean
-//import com.sw.healthyclients.bean.intervention.PostHealthBean
-//import com.sw.healthyclients.bean.intervention.PostHealthSecondaryBean
-//import com.sw.healthyclients.bean.intervention.PsychologyConceptBean
-//import com.sw.healthyclients.bean.intervention.ResourceStaffBean
-//import com.sw.healthyclients.bean.intervention.RiskAssessmentResultBean
-//import com.sw.healthyclients.bean.intervention.SelectFollowUpListBean
-//import com.sw.healthyclients.bean.intervention.SelectMedicalResourceBean
-//import com.sw.healthyclients.bean.intervention.SelectMedicinePrescriptionDTOListBean
-//import com.sw.healthyclients.bean.intervention.SelectUserHaveNewTabBean
-//import com.sw.healthyclients.bean.intervention.SportEffectBean
-//import com.sw.healthyclients.bean.intervention.SportEffectVideoBean
-//import com.sw.healthyclients.bean.intervention.SportWayBean
-//import com.sw.healthyclients.bean.intervention.VisitRecordBean
-//import com.sw.healthyclients.data.bean.ApiResponse
-//import com.sw.healthyclients.ui.intervene2.bean.AskFollowCheckBean
-//import com.sw.healthyclients.ui.intervene2.bean.DiabetesQuestionBean
-//import com.sw.healthyclients.ui.intervene2.bean.EnrollBean
-//import com.sw.healthyclients.ui.intervene2.bean.FoodOverWeightInterventionActionBean
-//import com.sw.healthyclients.ui.intervene2.bean.FoodOverWeightListBean
-//import com.sw.healthyclients.ui.intervene2.bean.FoodOverWeightRankBean
-//import com.sw.healthyclients.ui.intervene2.bean.FoodWarningBean
-//import com.sw.healthyclients.ui.intervene2.bean.MonitorResultBean
-//import com.sw.healthyclients.ui.intervene2.bean.PracticeBean
-//import com.sw.healthyclients.ui.intervene2.bean.RankBean
-//import com.sw.healthyclients.ui.intervene2.bean.RankListResult
-//import com.sw.healthyclients.ui.intervene2.bean.UserWeightInfoBean
-//import com.sw.healthyclients.ui.intervene2.bean.WeightChangeBean
-//import com.sw.healthyclients.ui.intervene2.bean.WeightChangeTrendBean
-//import okhttp3.RequestBody
-//import retrofit2.http.Body
-//import retrofit2.http.GET
-//import retrofit2.http.POST
-//import retrofit2.http.QueryMap
-//
-interface InterventionApi {
-//
-// /**
-// * 专家知识列表
-// */
-// @POST("health-intervene/api/knowledge/post/queryKnowledgeBySpecialist")
-// suspend fun queryKnowledgeBySpecialist(@Body requestBody: RequestBody): ApiResponse>
-// /**
-// * 公共知识列表
-// */
-// @POST("health-intervene/api/knowledge/post/queryKnowledgeList")
-// suspend fun queryKnowledgeList(@Body requestBody: RequestBody): ApiResponse>
-//
-// /**
-// * 专家列表
-// */
-// @POST("health-intervene/api/knowledge/post/querySpecialistList")
-// suspend fun querySpecialistList(@Body requestBody: RequestBody): ApiResponse>
-//
-// /**
-// * 健康技能-电子书列表
-// */
-// @POST("health-intervene/api/knowledge/post/querySpecialistList")
-// suspend fun getElectronicBookList(@Body requestBody: RequestBody): ApiResponse>
-// /**
-// * 体检可视化-Fragment中一级标签
-// */
-// @POST("health-intervene/api/knowledge/post/querySpecialistList")
-// suspend fun getPrimaryTagListData(@Body requestBody: RequestBody): ApiResponse>
-// /**
-// * 体检可视化-Fragment中二级标签
-// */
-// @POST("health-intervene/api/knowledge/post/querySpecialistList")
-// suspend fun getSecondaryTagListData(@Body requestBody: RequestBody): ApiResponse>
-//
-// /**
-// * 岗位列表
-// */
-// @GET("health-intervene/health-answer/class/app/list")
-// suspend fun selectPostListById(@QueryMap params: MutableMap): ApiResponse>
-// /**
-// * 岗位列表
-// */
-// @GET("health-intervene/api/knowledge/post/knowledgeListByPostId")
-// suspend fun knowledgeListByPostId(@QueryMap params: MutableMap): ApiResponse>
-//
-// /**
-// * 运动效果-视频列表
-// */
-// @GET("health-intervene/rest/health-food-exercise/fitness/class/list")
-// suspend fun getSportVideoListData(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 运动效果-详情
-// */
-// @GET("health-intervene/rest/health-food-exercise/fitness/detail")
-// suspend fun getSportVideoDetailData(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 我的运动
-// */
-// @GET("health-intervene/rest/health-food-exercise/fitness/record")
-// suspend fun getMySportListData(@QueryMap params: MutableMap): ApiResponse>
-// /**
-// * 获取运动方式
-// */
-// @GET("health-intervene/rest/health-food-exercise/fitness/fitnessList")
-// suspend fun getSportWayListData(): ApiResponse>
-// /**
-// * 上传运动
-// */
-// @POST("health-intervene/rest/health-food-exercise/fitness/upload")
-// suspend fun uploadSportData(@Body requestBody: RequestBody): ApiResponse
-//
-// /**
-// * 急救联动-资源列表
-// */
-// @POST("health-intervene/rest/aid/resource/search")
-// suspend fun getEmergencySearch(@Body requestBody: RequestBody): ApiResponse
-// /**
-// * 急救联动-AED
-// */
-// @GET("health-emergency/api/aed/nearbyAed")
-// suspend fun getNearbyAed(@QueryMap params: MutableMap): ApiResponse>
-// /**
-// * 我的运动详情
-// */
-// @GET("health-intervene/rest/health-food-exercise/fitness/analysisInfo")
-// suspend fun getMySportDetailData(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 获取应急IM群组信息
-// */
-// @GET("/health-emergency/api/emergency/createGroupMag")
-// suspend fun getIMGroupInfo(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 干预-测评列表
-// */
-// @GET("health-intervene/rest/health-survey/assess/template/listNew")
-// suspend fun getRiskAssessmentListData(@QueryMap params: MutableMap): ApiResponse
-//
- /**
- * 附近医疗点
- */
- @GET("medical-center/api/resource/nearbyResource")
- suspend fun nearbyResource(@QueryMap params: MutableMap): ApiResponse>
- /**
- * 附近救护车
- */
- @GET("medical-center/api/ambulance/nearbyAmbulance")
- suspend fun nearbyAmbulance(@QueryMap params: MutableMap): ApiResponse>
-// /**
-// * 查询最近医疗点和就诊记录
-// */
-// @POST("medical-center/api/chronicDiseaseUser/selectMedicalResource")
-// suspend fun selectMedicalResource(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 通过id查询医疗点
-// */
-// @GET("medical-center/medicalCenter/medicalResource/queryById")
-// suspend fun MedicalResourcequeryById(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 通过id查询医疗点
-// */
-// @GET("medical-center/api/resource/resourceStaff")
-// suspend fun resourceStaff(@QueryMap params: MutableMap): ApiResponse>
-// /**
-// * 查询慢病管理的tab
-// */
-// @GET("medical-center/api/followUpRecord/user/tab")
-// suspend fun selectUserHaveTab(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 随访记录
-// */
-// @GET("medical-center/api/followUpRecord/selectFollowUpList")
-// suspend fun selectFollowUpList(@QueryMap params: MutableMap): ApiResponse>
-// /**
-// * 申请随访校验
-// */
-// @GET("medical-center/api/followUpRecord/apply-check")
-// suspend fun askFollowCheck(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 申请随访提交
-// */
-// @POST("medical-center/api/followUpRecord/user-apply")
-// suspend fun askFollowSubmit(@Body requestBody: RequestBody): ApiResponse
-// /**
-// * 膳食处方
-// */
-// @GET("medical-center/api/dietaryPrescription/selectDietaryPrescriptionList")
-// suspend fun selectDietaryPrescriptionList(@QueryMap params: MutableMap): ApiResponse>
-// /**
-// * 运动处方
-// */
-// @GET("medical-center/api/sportsPrescription/selectSportsPrescriptionDTOList")
-// suspend fun selectSportsPrescriptionDTOList(@QueryMap params: MutableMap): ApiResponse>
-// /**
-// * 用药方案
-// */
-// @GET("medical-center/api/medicinePrescription/selectMedicinePrescriptionDTOList")
-// suspend fun selectMedicinePrescriptionDTOList(@QueryMap params: MutableMap): ApiResponse>
-// /**
-// * 就诊记录
-// */
-// @GET("medical-center/api/dailyDiagnosis/list")
-// suspend fun quertVisitRecordList(@QueryMap params: MutableMap): ApiResponse>
-// /**
-// * 是否填写基础问卷
-// */
-// @GET("health-intervene/api/psychology/psychologyEvaluateBase/selectPsychologyBaseExist")
-// suspend fun selectPsychologyBaseExist(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 心理概念知识
-// */
-// @GET("health-intervene/app/psychology/psychologyConceptKnow/list")
-// suspend fun psychologyConcept(@QueryMap params: MutableMap): ApiResponse>
-// /**
-// * 心理答题知识推荐
-// */
-// @GET("health-intervene/api/psychology/answer/knowledge/page")
-// suspend fun knowledgeSuggest(@QueryMap params: MutableMap): ApiResponse>
-// /**
-// * 心理答题知识推荐详情
-// */
-// @GET("health-intervene/api/psychology/answer/knowledge")
-// suspend fun knowledgeAnswerDetails(@QueryMap params: MutableMap): ApiResponse
-//
-//
-// /**
-// * 体重管理-首页活动列表
-// */
-// @GET("health-intervene/api/intervene/activity/list")
-// suspend fun list(@QueryMap params: MutableMap): ApiResponse>
-//
-// /**
-// * 体重管理-用户报名活动
-// */
-// @GET("health-intervene/api/intervene/activity/user/registration")
-// suspend fun registration(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 体重管理-用户报名数据
-// */
-// @GET("health-intervene/api/intervene/activity/signUp")
-// suspend fun signUp(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 体重管理-体重变化
-// */
-// @GET("health-intervene/api/intervene/activity/weightChange")
-// suspend fun weightChange(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 体重管理-活动排名
-// */
-// @GET("health-intervene/api/intervene/activity/rank")
-// suspend fun rank(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 体重管理-更新体重
-// */
-// @GET("health-intervene/api/intervene/activity/user/updateWeight")
-// suspend fun updateWeight(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 体重管理-数据监控
-// */
-// @GET("health-intervene/api/intervene/activity/monitor")
-// suspend fun monitor(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 体重管理-活动历史
-// */
-// @GET("health-intervene/api/intervene/activity/history")
-// suspend fun history(@QueryMap params: MutableMap): ApiResponse>
-// /**
-// * 体重管理-全部排名
-// */
-// @GET("health-intervene/api/intervene/activity/all/rank")
-// suspend fun actionRank(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 体重管理-体重变化趋势
-// */
-// @GET("health-intervene/api/intervene/activity/user/weightChangeTrend")
-// suspend fun weightChangeTrend(@QueryMap params: MutableMap): ApiResponse>
-// /**
-// * 营养慢病-实测
-// */
-// @GET("health-intervene/meals/api/cd-nutrient/calculate/practice")
-// suspend fun practice(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 营养慢病-模拟
-// */
-// @POST("health-intervene/meals/api/cd-nutrient/calculate/simulate")
-// suspend fun simulate(@Body requestBody: RequestBody): ApiResponse
-//
-// /**
-// * 慢病预警-查询用户是否提交过问卷
-// */
-// @GET("health-intervene/meals/api/cd-forecast/survey/check")
-// suspend fun surveyCheck(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 慢病预警-获取问卷信息
-// */
-// @GET("health-intervene/meals/api/cd-forecast/survey/info")
-// suspend fun surveyInfo(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 提交问卷-慢病预警
-// */
-// @POST("health-intervene/meals/api/cd-forecast/survey/submit")
-// suspend fun postAnswerSurveyData(@Body requestBody: RequestBody): ApiResponse
-//
-//
-// /**
-// * 慢病预警-实测
-// */
-// @GET("health-intervene/meals/api/cd-forecast/user/practice")
-// suspend fun getUserPractice(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 慢病预警-模拟
-// */
-// @POST("health-intervene/meals/api/cd-forecast/user/simulate")
-// suspend fun postUserSimulate(@Body requestBody: RequestBody): ApiResponse
-//
-//
-// /**
-// * 干预首页-心理数据(返回最新的心理评估结果)
-// */
-// @GET("health-intervene/intervene-home/psychology")
-// suspend fun interveneHomePsychology(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 干预首页-最新一天的膳食摄入(千卡)
-// */
-// @GET("health-intervene/intervene-home/meals")
-// suspend fun interveneHomeMeals(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 干预首页-知识模块数据(返回学习时长)
-// */
-// @GET("health-intervene/intervene-home/knowledge")
-// suspend fun interveneHomeKnowledge(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 干预首页-最新一天的运动消耗(卡)
-// */
-// @GET("health-intervene/intervene-home/exercise")
-// suspend fun interveneHomeExercise(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 干预首页-环境数据(返回最近的室外空气质量设备数据)
-// */
-// @GET("health-intervene/intervene-home/environment")
-// suspend fun interveneHomeEnvironment(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 干预首页-糖尿病(返回最新血糖)
-// */
-// @GET("health-intervene/intervene-home/diabetes")
-// suspend fun interveneHomeDiabetes(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 干预首页-心血管(手表返回最新心率)
-// */
-// @GET("health-intervene/intervene-home/cardiovascular")
-// suspend fun interveneHomeCardiovascular(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 干预首页-癌症(返回重点指标是否异常)
-// */
-// @GET("health-intervene/intervene-home/cancer")
-// suspend fun interveneHomeCancer(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 体重管理-获取当前用户是否已经参加活动
-// */
-// @GET("health-intervene/app/healthMealsWeightPlan/getJoinPlanId")
-// suspend fun getWeightJoinPlanId(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 体重管理-活动列表
-// */
-// @GET("health-intervene/app/healthMealsWeightPlan/list")
-// suspend fun getWeightPlanList(@QueryMap params: MutableMap): ApiResponse>
-//
-// /**
-// * 体重管理-获取当前登录人身高体重及目标体重
-// */
-// @GET("health-intervene/app/healthMealsWeightPlan/getUserInfoByPlanId")
-// suspend fun getUserWeightInfo(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 体重管理-活动报名
-// */
-// @POST("health-intervene/app/healthMealsWeightPlan/signUp")
-// suspend fun postWeightPlanSignUp(@Body requestBody: RequestBody): ApiResponse
-//
-// /**
-// * 体重管理-获取活动详情
-// */
-// @GET("health-intervene/app/healthMealsWeightPlan/getPlanInfo")
-// suspend fun getWeightPlanInfo(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 体重管理-获取历史参与记录
-// */
-// @GET("health-intervene/app/healthMealsWeightPlan/joinHistory")
-// suspend fun getWeightJoinHistory(@QueryMap params: MutableMap): ApiResponse>
-// /**
-// * 体重管理-分页获取计划排行榜
-// */
-// @GET("health-intervene/app/healthMealsWeightPlan/getPlanRank")
-// suspend fun getWeightRank(@QueryMap params: MutableMap): ApiResponse
-// /**
-// * 体重管理-分页获取计划排行榜
-// */
-// @GET("health-intervene/app/healthMealsWeightPlan/getPlanRankNew")
-// suspend fun getWeightRankNew(@QueryMap params: MutableMap): ApiResponse
-//
-// /**
-// * 体重管理-更新体重
-// */
-// @GET("health-intervene/app/healthMealsWeightPlan/updateWeight")
-// suspend fun getMealsUpdateWeight(@QueryMap params: MutableMap): ApiResponse
-//
-//
-//
- /**
- * 心血管-AED组网
- */
- @GET("health-intervene/intervene/v2/aedEquipmentManger/nearbyAed")
- suspend fun getAedNetworkingData(@QueryMap params: MutableMap): ApiResponse>
-
-}
\ No newline at end of file
diff --git a/app/src/main/java/com/xjjk/healthyclients/data/api/InterventionNetApi.kt b/app/src/main/java/com/xjjk/healthyclients/data/api/InterventionNetApi.kt
deleted file mode 100644
index 726bd1b..0000000
--- a/app/src/main/java/com/xjjk/healthyclients/data/api/InterventionNetApi.kt
+++ /dev/null
@@ -1,129 +0,0 @@
-package com.xjjk.healthyclients.data.api
-
-import com.xjjk.healthyclients.retrofit.intervention.CustomInterventionResponseResult
-import retrofit2.Call
-import retrofit2.http.Body
-import retrofit2.http.GET
-import retrofit2.http.Header
-import retrofit2.http.Headers
-import retrofit2.http.POST
-import retrofit2.http.Query
-import java.util.SortedMap
-
-interface InterventionNetApi {
-
- /**
- * 获取公钥
- */
- @Headers("urlType:levelTwo")
- @GET("/gateway/sys/getPublicKey")
- fun getPublicKey(
- @Header("X-TIMESTAMP") timeStamp: String,
- @Header("X-Sign") timeSign: String,
- @Query("timeSign") timeSignStr: String
- ): Call>
-
- /**
- * 通过身份证获取Token
- */
- @Headers("urlType:levelTwo")
- @POST("/gateway/sys/thirdAppGetTokenByIdCard")
- fun getTokenByIdCard(
- @Header("X-TIMESTAMP") timeStamp: String,
- @Header("X-Sign") signStr: String,
- @Body idCardJson: SortedMap
- ): Call>
-//
-// /**
-// * 获取健康干预膳食信息
-// */
-// @Headers("urlType:levelTwo")
-// @GET("/gateway/thirdAppProgram/getOneUserNutrimentHealthScores")
-// fun getUserNutriment(): Call>
-//
-// /**
-// * 获取膳食信息顶部用户数据
-// */
-// @Headers("urlType:levelTwo")
-// @GET("/gateway/thirdAppProgram/getHomePageUserInfo")
-// fun getFoodHomePageUserInfo(): Call>
-//
-//
-// /**
-// * 获取膳食信息底部数据
-// */
-// @Headers("urlType:levelTwo")
-// @GET("/gateway/thirdAppProgram/nutritionFood")
-// fun getFoodHomePageNutritionFood(@Query("day") day: String): Call>
-//
-// /**
-// * 获取单餐营养分析
-// */
-// @Headers("urlType:levelTwo")
-// @GET("/gateway/thirdAppProgram/queryUserTimes")
-// fun getNutritionUserTimes(
-// @Query("timesName") timesName: String,
-// @Query("mainTimeDay") mainTimeDay: String
-// ): Call>
-//
-// /**
-// * 获取更多营养素
-// */
-// @Headers("urlType:levelTwo")
-// @GET("/gateway/thirdAppProgram/otherEnergyVOList")
-// fun getOtherEnergyList(
-// @Query("timesName") timesName: String,
-// @Query("mainTimeDay") mainTimeDay: String
-// ): Call>>
-//
-//
-// /**
-// * 食物营养排行榜
-// */
-// @Headers("urlType:levelTwo")
-// @GET("/gateway/thirdAppProgram/getQueryStFoodNutritionVOList")
-// fun getStFoodNutritionList(
-// @Query("timesName") timesName: String,
-// @Query("mainTimeDay") mainTimeDay: String,
-// @Query("type") type: Int
-// ): Call>>
-//
-// /**
-// * 获取单餐就餐数据
-// */
-// @Headers("urlType:levelTwo")
-// @GET("/gateway/thirdAppProgram/getWeChatOneTimesVOList")
-// fun getOneTimesFoodList(
-// @Query("timesName") timesName: String,
-// @Query("mainTimeDay") mainTimeDay: String
-// ): Call>
-//
-// /**
-// * 获取单日营养分析
-// */
-// @Headers("urlType:levelTwo")
-// @GET("/gateway/thirdAppProgram/queryUserDayTimesNew")
-// fun getDayNutritionUser(
-// @Query("mainTimeDay") mainTimeDay: String
-// ): Call>
-//
-//
-// /**
-// * 获取日就餐数据
-// */
-// @Headers("urlType:levelTwo")
-// @GET("/gateway/thirdAppProgram/getUserEatWeekTimes")
-// fun getUserEatWeekTimes(
-// @Query("days") mainTimeDay: String
-// ): Call>>
-//
-// /**
-// * 获取日就餐数据
-// */
-// @Headers("urlType:levelTwo")
-// @GET("/gateway/thirdAppProgram/getMonthCalendarAndStatus")
-// fun getMonthCalendarAndStatus(
-// @Query("monthTime") monthTime: String
-// ): Call>
-
-}
\ No newline at end of file
diff --git a/app/src/main/java/com/xjjk/healthyclients/data/repository/CommonRepository.kt b/app/src/main/java/com/xjjk/healthyclients/data/repository/CommonRepository.kt
index 7b790d3..a426738 100644
--- a/app/src/main/java/com/xjjk/healthyclients/data/repository/CommonRepository.kt
+++ b/app/src/main/java/com/xjjk/healthyclients/data/repository/CommonRepository.kt
@@ -6,6 +6,8 @@ import com.xjjk.healthyclients.bean.CommonSettingMenuBean
import com.xjjk.healthyclients.bean.SelectUserInfoBean
import com.xjjk.healthyclients.bean.SelectUserMessageListBean
import com.xjjk.healthyclients.bean.UploadFileResultBean
+import com.xjjk.healthyclients.bean.user.IMDoctorInfoBean
+import com.xjjk.healthyclients.bean.user.SelectEmergencyContactListBean
import com.xjjk.healthyclients.data.api.CommonApi
import com.xjjk.healthyclients.data.bean.ApiResponse
import com.xjjk.healthyclients.data.repository.EmergencyRepository.apiCall
@@ -123,6 +125,24 @@ object CommonRepository {
service.changeAlRead(map)
}
}
+ /**
+ * 更新紧急联系人
+ */
+ suspend fun updateAndInsertEmergencyContact(bean: SelectEmergencyContactListBean): ApiResponse {
+ return apiCall {
+ service.updateAndInsertEmergencyContact(bean)
+ }
+ }
+ /**
+ * 删除紧急联系人
+ */
+ suspend fun removeEmergencyContactList(id: String): ApiResponse {
+ return apiCall {
+ val map = mutableMapOf()
+ map.put("id",id)
+ service.removeEmergencyContactList(map)
+ }
+ }
/**
* 首页用户弹窗-选择多少天不显示
*/
@@ -134,6 +154,16 @@ object CommonRepository {
service.chooseToDontShowUp(map)
}
}
+ /**
+ * 卡片时效校验
+ */
+ suspend fun selectDoctorCardExpireTime(time:Long): ApiResponse {
+ return apiCall {
+ val map = mutableMapOf()
+ map.put("sendTime",time)
+ service.selectDoctorCardExpireTime(map)
+ }
+ }
suspend fun getAppUpdateInfo(): ApiResponse{
val params = mutableMapOf()
params["androidOrIos"] = 1
@@ -141,5 +171,26 @@ object CommonRepository {
return apiCall { service.getAppUpdateInfo(params) }
}
+ /**
+ * 全科医生校验
+ */
+ suspend fun selectTfHelper(id:String): ApiResponse {
+ return apiCall {
+ val map = mutableMapOf()
+ map.put("helpId",id)
+ service.selectTfHelper(map)
+ }
+ }
+ /**
+ * 查询全科医生信息
+ */
+ suspend fun selectHelperInfoDesc(id:String): ApiResponse {
+ return apiCall {
+ val map = mutableMapOf()
+ map.put("helpId",id)
+ service.selectHelperInfoDesc(map)
+ }
+ }
+
}
\ No newline at end of file
diff --git a/app/src/main/java/com/xjjk/healthyclients/data/repository/HealthRecordRepository.kt b/app/src/main/java/com/xjjk/healthyclients/data/repository/HealthRecordRepository.kt
deleted file mode 100644
index 99294bf..0000000
--- a/app/src/main/java/com/xjjk/healthyclients/data/repository/HealthRecordRepository.kt
+++ /dev/null
@@ -1,149 +0,0 @@
-import com.xjjk.healthyclients.base.repository.BaseRepository
-import com.xjjk.healthyclients.bean.healthrecord.CheckRecordUserInfoBean
-import com.xjjk.healthyclients.data.api.HealthRecordApi
-import com.xjjk.healthyclients.data.bean.ApiResponse
-import com.xjjk.healthyclients.retrofit.RetrofitManager
-
-
-/**
- * @author nanfeifei
- * @time 2023/8/4 13:30
- * @description
- */
-object HealthRecordRepository : BaseRepository() {
- private val service by lazy { RetrofitManager.getService(HealthRecordApi::class.java) }
-// suspend fun getHealthDataAnalysisData(): ApiResponse> {
-// return apiCall { service.getHealthDataAnalysisData() }
-// }
-// suspend fun getHealthDataAnalysisItemData(id: String): ApiResponse> {
-// val params = mutableMapOf()
-// params["classId"] = id
-// return apiCall { service.getHealthDataAnalysisItemData(params) }
-// }
-// suspend fun getHealthDataAnalysisItemDetailData(id: String): ApiResponse> {
-// val params = mutableMapOf()
-// params["modeId"] = id
-// return apiCall { service.getHealthDataAnalysisItemDetailData(params) }
-// }
-// suspend fun getHealthCheckItemRecordData(id: String): ApiResponse {
-// val params = mutableMapOf()
-// params["modeId"] = id
-// return apiCall { service.getHealthCheckItemRecordData(params) }
-// }
-// suspend fun waistHipRatio(sex: String,waist: String,hip: String): ApiResponse {
-// val params = mutableMapOf()
-// params["sex"] = sex
-// params["waist"] = waist
-// params["hip"] = hip
-// return apiCall {service.waistHipRatio(params)}
-// }
-//
-// suspend fun idealBodyWeight(age: String,height: String): ApiResponse {
-// val params = mutableMapOf()
-// params["age"] = age
-// params["height"] = height
-// return apiCall {service.idealBodyWeight(params)}
-// }
-// suspend fun energyDemand(sex: String,age: String,height: String,weight: String): ApiResponse {
-// val params = mutableMapOf()
-// params["sex"] = sex
-// params["age"] = age
-// params["height"] = height
-// params["weight"] = weight
-// return apiCall {service.energyDemand(params)}
-// }
-// suspend fun allExercise(): ApiResponse> {
-// val params = mutableMapOf()
-// return apiCall {service.allExercise(params)}
-// }
-// suspend fun loseKilo(exerciseId:String,weight:String): ApiResponse {
-// val params = mutableMapOf()
-// params["exerciseId"] = exerciseId
-// params["weight"] = weight
-// return apiCall {service.loseKilo(params)}
-// }
-// suspend fun knowYourselfInMinute(sex: String,age: String,height: String,weight: String): ApiResponse {
-// val params = mutableMapOf()
-// params["sex"] = sex
-// params["age"] = age
-// params["height"] = height
-// params["weight"] = weight
-// return apiCall {service.knowYourselfInMinute(params)}
-// }
-// suspend fun selectHealthMonitoringInfo(): ApiResponse {
-// val params = mutableMapOf()
-// return apiCall {service.selectHealthMonitoringInfo(params)}
-// }
-// suspend fun selectHeightAndWeightBmiList(year:String): ApiResponse> {
-// val params = mutableMapOf()
-// params["year"] = year
-// return apiCall {service.selectHeightAndWeightBmiList(params)}
-// }
-// suspend fun selectBloodFat(year:String): ApiResponse> {
-// val params = mutableMapOf()
-// params["year"] = year
-// return apiCall {service.selectBloodFat(params)}
-// }
-// suspend fun selectBloodSugarList(year:String): ApiResponse> {
-// val params = mutableMapOf()
-// params["year"] = year
-// return apiCall { service.selectBloodSugarList(params) }
-// }
-//
-// suspend fun getBMIHomeData(): ApiResponse {
-// return apiCall {service.getBMIHomeData()}
-// }
-// suspend fun selectBloodPresureList(year:String): ApiResponse> {
-// val params = mutableMapOf()
-// params["year"] = year
-// return apiCall {service.selectBloodPresureList(params)}
-// }
-// suspend fun selectBloodSugarInfo(): ApiResponse {
-// val params = mutableMapOf()
-// return apiCall {service.selectBloodSugarInfo(params)}
-// }
-// suspend fun selectBloodPresure(): ApiResponse {
-// val params = mutableMapOf