mobile_api_router_register.go 9.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. package mobile_api_controllers
  2. import (
  3. "github.com/astaxie/beego"
  4. )
  5. // 平板端路由,以 /m/api 为前缀
  6. func MobileAPIControllersRegisterRouters() {
  7. beego.Router("/m/api/login/pwd", &LoginAPIController{}, "post:LoginByPwd")
  8. // beego.Router("/m/api/test", &DialysisTestAPIController{}, "get:Test")
  9. beego.Router("/m/api/savebloodpressure", &CheckWeightApiController{}, "Post:SaveBloodPressure")
  10. beego.Router("/m/api/checkbeforedialysis", &CheckWeightApiController{}, "get:GetPatientInfoBeforeDialysis")
  11. beego.Router("/m/api/getpatientlist", &CheckWeightApiController{}, "get:GetPatientList")
  12. beego.Router("/m/api/setsynctime", &CheckWeightApiController{}, "get:SetSyncTime")
  13. beego.Router("/m/api/getschedulepatient", &CheckWeightApiController{}, "get:GetPatientListForSchedules")
  14. beego.Router("/m/api/getschedulepatientfind", &CheckWeightApiController{}, "get:GetPatientListForSchedulesFind")
  15. beego.Router("/m/api/getpatientinfo", &CheckWeightApiController{}, "get:GetPatientListById")
  16. beego.Router("/m/api/checkdialysis", &CheckWeightApiController{}, "get:GetPatientInfoDialysis")
  17. beego.Router("/m/api/savecheckdialysis", &CheckWeightApiController{}, "Post:SavePatientInfoDialysis")
  18. beego.Router("/m/api/scheduals", &DialysisAPIController{}, "get:Scheduals")
  19. beego.Router("/m/api/waiting_scheduals", &DialysisAPIController{}, "get:WaitingScheduals")
  20. beego.Router("/m/api/solution/create", &PatientApiController{}, "Post:CreateDialysisSolution")
  21. beego.Router("/m/api/solution/edit", &PatientApiController{}, "Post:EditDialysisSolution")
  22. beego.Router("/m/api/assessmentbefore/commit", &PatientApiController{}, "Post:EditAssessmentBeforeDislysis")
  23. beego.Router("/m/api/dialysisglobalconfig", &DialysisAPIController{}, "Get:GetDialysisGlobalConfig")
  24. beego.Router("/m/api/dialysis/record", &DialysisAPIController{}, "get:DialysisRecord")
  25. beego.Router("/m/api/dialysis/dialysisPrescription", &DialysisAPIController{}, "post:PostDialysisPrescription")
  26. beego.Router("/m/api/dialysis/treatmentSummary", &DialysisAPIController{}, "post:PostAtreatmentInfo")
  27. beego.Router("/m/api/dialysis/doublecheck", &DialysisAPIController{}, "post:PostDoubleCheck")
  28. beego.Router("/m/api/dialysis/acceptsAssessment", &DialysisAPIController{}, "post:PostAcceptsAssessment")
  29. beego.Router("/m/api/dialysis/assessmentAfterDislysis", &DialysisAPIController{}, "post:PostAssessmentAfterDislysis")
  30. beego.Router("/m/api/dialysis/finish", &DialysisAPIController{}, "post:Finish")
  31. beego.Router("/m/api/dialysis/allzone", &DialysisAPIController{}, "get:GetAllZone")
  32. beego.Router("/m/api/dialysis/patients", &DialysisAPIController{}, "get:GetSchedualPatientsList")
  33. beego.Router("/m/api/startOrder/edit", &DialysisAPIController{}, "post:ModifyStartDialysisOrder")
  34. beego.Router("/m/api/finishOrder/edit", &DialysisAPIController{}, "post:ModifyFinishDialysisOrder")
  35. beego.Router("/m/api/advice/create", &PatientApiController{}, "Post:CreateDoctorAdvice")
  36. beego.Router("/m/api/advice/edit", &PatientApiController{}, "Put:EditDoctorAdvice")
  37. beego.Router("/m/api/advice/stop", &PatientApiController{}, "Post:StopDoctorAdvice")
  38. beego.Router("/m/api/advice/creategroup", &PatientApiController{}, "Post:CreateGroupAdvice")
  39. beego.Router("/m/api/advice/group/modify_starttime", &PatientApiController{}, "Post:ModifyAdviceGroupStartTime")
  40. beego.Router("/m/api/advice/delete", &PatientApiController{}, "Delete:DeleteDoctorAdvice")
  41. beego.Router("/m/api/advice/exec", &PatientApiController{}, "Post:ExecDoctorAdvice")
  42. beego.Router("/m/api/advice/exec/modify", &PatientApiController{}, "Post:ModifyExecDoctorAdvice")
  43. beego.Router("/m/api/project/exec", &PatientApiController{}, "Post:ExecProject")
  44. beego.Router("/m/api/project/check", &PatientApiController{}, "Post:CheckProject")
  45. //beego.Router("/m/api/advice/ex/**/ec/modify", &PatientApiController{}, "Post:ModifyExecDoctorAdvice")
  46. beego.Router("/m/api/advice/check", &PatientApiController{}, "Post:CheckDoctorAdvice")
  47. beego.Router("/m/api/patient/info", &PatientApiController{}, "Get:GetPatientInfoWithDiseases")
  48. beego.Router("/m/api/monitor/add", &DialysisAPIController{}, "post:AddMonitorRecord")
  49. beego.Router("/m/api/monitor/edit", &DialysisAPIController{}, "post:EditMonitorRecord")
  50. beego.Router("/m/api/monitor/delete", &DialysisAPIController{}, "post:DeleteMonitor")
  51. beego.Router("/m/api/accepts/get", &DialysisAPIController{}, "Get:GetAcceptsAssessment")
  52. beego.Router("/m/api/patient/education", &PatientApiController{}, "get:GetPatientEducation")
  53. beego.Router("/m/api/patients/schedules", &PatientApiController{}, "Get:GetPatientSchedulesList")
  54. beego.Router("/m/api/patients/record", &PatientApiController{}, "Get:GetRecords")
  55. beego.Router("/m/api/patients/solutions", &PatientApiController{}, "Get:GetPatientDialysisSolutionList")
  56. beego.Router("/m/api/patients/doctoradvices", &PatientApiController{}, "Get:GetDoctorAdvices")
  57. beego.Router("/m/api/monitor", &PatientApiController{}, "Get:GetPatientMonitor")
  58. beego.Router("/m/api/monitor/patient", &PatientApiController{}, "get:SearchMonitorPatient")
  59. beego.Router("/m/api/alldoctors", &DoctorsApiController{}, "Get:GetAllDoctorAndNurse")
  60. beego.Router("/m/api/admin/users", &DoctorsApiController{}, "Get:GetAllAdminUsers")
  61. beego.Router("/m/api/solution", &DialysisAPIController{}, "Post:PostSolution")
  62. beego.Router("/m/api/schedule/advices", &DoctorAdviceAPIController{}, "Get:ScheduleAdvices")
  63. beego.Router("/m/api/dialysis/start", &DialysisAPIController{}, "Post:StartDialysis")
  64. beego.Router("/m/api/getelectronicsignature", &AdminUserApiController{}, "Get:GetAdminUserElectronicSignature")
  65. beego.Router("/m/api/savelectronicsignature", &AdminUserApiController{}, "Post:SaveAdminUserElectronicSignature")
  66. beego.Router("/m/api/my", &AdminUserApiController{}, "Get:GetMyInfo")
  67. beego.Router("/m/api/qiniu/uptoken", &QiNiuApiController{}, "get:GetQNUpToken")
  68. beego.Router("/m/api/getadviceconfigs", &DoctorAdviceAPIController{}, "Get:GetAdviceConfigs")
  69. beego.Router("/m/api/inspection/reference", &CheckApiController{}, "Get:GetInspectionReference")
  70. beego.Router("/m/api/inspection/list", &CheckApiController{}, "Get:GetInspections")
  71. beego.Router("/m/api/print/dialysisorder", &PatientApiController{}, "Get:GetPrintDialysisOrder")
  72. beego.Router("/m/api/schedule/urgentinit", &DialysisAPIController{}, "Get:UrgentScheduleInitData")
  73. beego.Router("/m/api/schedule/urgentadd", &DialysisAPIController{}, "Post:AddUrgentSchedule")
  74. beego.Router("/m/api/dialysis/sign", &DialysisAPIController{}, "Post:PostSignInfo")
  75. beego.Router("/m/api/monitor/get", &DialysisAPIController{}, "Get:GetLastMonitorRecord")
  76. beego.Router("/m/api/monitor/gettodaylast", &DialysisAPIController{}, "Get:GetLastMonitorRecordTody")
  77. beego.Router("/m/api/newadvice/delete", &PatientApiController{}, "Delete:DelDoctorAdvice")
  78. beego.Router("/m/api/delete/subadvice", &PatientApiController{}, "Delete:DelSubDoctorAdvice")
  79. beego.Router("/m/api/advice/unread", &PatientApiController{}, "Get:GetAdviceUnReadMessage")
  80. beego.Router("/m/api/patients/search", &PatientApiController{}, "Post:GetPatientsByKeyWord")
  81. beego.Router("/m/api/warehouse/query", &StockApiController{}, "get:GetWarehouse")
  82. beego.Router("/m/api/dialysis/advice_remind", &DialysisAPIController{}, "Get:GetLongAdvice")
  83. beego.Router("/m/api/advice_remind/create", &DialysisAPIController{}, "Post:CreateRemindDoctorAdvice")
  84. beego.Router("/m/api/dryweight/commit", &DialysisAPIController{}, "Post:UploadDryWeight")
  85. beego.Router("/m/api/solution/get", &DialysisAPIController{}, "Get:GetSolution")
  86. beego.Router("/m/api/schedule/get", &DialysisAPIController{}, "Get:GetSchedule")
  87. beego.Router("/m/api/getPatientid", &DialysisAPIController{}, "Get:GetPatientId")
  88. beego.Router("/m/api/patient/search", &PatientApiController{}, "Get:GetSearchPatient")
  89. beego.Router("/m/api/dialysis/schedule", &DialysisAPIController{}, "Get:GetDialysisSchedule")
  90. beego.Router("/m/api/doctoradvice/get", &DialysisAPIController{}, "Get:GetLastOrNextDoctorAdvice")
  91. beego.Router("/m/api/dialysisbeforeprepare/create", &DialysisAPIController{}, "Post:CreateConsumables")
  92. beego.Router("/m/api/dialysisbeforeprepare/edit", &DialysisAPIController{}, "Post:EditConsumables")
  93. beego.Router("/m/api/stockout/create", &DialysisAPIController{}, "Post:CreateStockOutInfo")
  94. //beego.Router("/m/api/stockout/edit", &DialysisAPIController{}, "Post:EditStockOutInfo")
  95. beego.Router("/m/api/otherstockout/create", &DialysisAPIController{}, "Post:CreateOtherStockOutInfo")
  96. beego.Router("/m/api/dialysisgoods/get", &DialysisAPIController{}, "Get:GetDialysisGoods")
  97. beego.Router("/m/api/goodstatistics/get", &DialysisAPIController{}, "Get:GetDialysisGoodsStatistics")
  98. beego.Router("/m/api/stockingood/get", &DialysisAPIController{}, "Get:GetStockInGoodInfo")
  99. beego.Router("/m/api/drug/get", &DialysisAPIController{}, "Get:GetAllDrug")
  100. beego.Router("/m/api/department/get", &DialysisAPIController{}, "Get:GetDepartment")
  101. beego.Router("/m/api/getmobileprintstockgood", &DialysisAPIController{}, "Get:GetMobilePrintStockGood")
  102. //批量删除监测
  103. beego.Router("/m/api/batchdeletemonitor", &DialysisAPIController{}, "Get:BatchDeleteMonitor")
  104. //获取单个患者1年的透析日期
  105. beego.Router("/m/api/getPatientDialysisRecord", &DialysisAPIController{}, "Get:GetPatientDialysisRecordList")
  106. //批量删除医嘱
  107. beego.Router("/m/api/batchdeleteadvice", &DialysisAPIController{}, "Get:BathDeleteAdviceList")
  108. //加减耗材数量
  109. beego.Router("/m/api/updateautoreducedetail", &DialysisAPIController{}, "Get:UpdateAutoReduceDetail")
  110. //删除数据
  111. beego.Router("/m/api/deleteautoreducedetail", &DialysisAPIController{}, "Get:DeleteAutoReduceDetail")
  112. //医嘱批量核对
  113. beego.Router("/m/api/batchadvicecheck", &DialysisAPIController{}, "Get:BatchAdviceCheck")
  114. //医嘱批量执行
  115. beego.Router("/m/api/batchadviceexecution", &DialysisAPIController{}, "Get:BatchAdviceExecution")
  116. beego.Router("/m/api/updatestockgoods", &DialysisAPIController{}, "Get:UpdateStockGoods")
  117. }