mobile_api_router_register.go 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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/checkdialysis", &CheckWeightApiController{}, "get:GetPatientInfoDialysis")
  12. beego.Router("/m/api/savecheckdialysis", &CheckWeightApiController{}, "Post:SavePatientInfoDialysis")
  13. beego.Router("/m/api/scheduals", &DialysisAPIController{}, "get:Scheduals")
  14. beego.Router("/m/api/waiting_scheduals", &DialysisAPIController{}, "get:WaitingScheduals")
  15. beego.Router("/m/api/solution/create", &PatientApiController{}, "Post:CreateDialysisSolution")
  16. beego.Router("/m/api/solution/edit", &PatientApiController{}, "Post:EditDialysisSolution")
  17. beego.Router("/m/api/assessmentbefore/commit", &PatientApiController{}, "Post:EditAssessmentBeforeDislysis")
  18. beego.Router("/m/api/dialysisglobalconfig", &DialysisAPIController{}, "Get:GetDialysisGlobalConfig")
  19. beego.Router("/m/api/dialysis/record", &DialysisAPIController{}, "get:DialysisRecord")
  20. beego.Router("/m/api/dialysis/dialysisPrescription", &DialysisAPIController{}, "post:PostDialysisPrescription")
  21. beego.Router("/m/api/dialysis/treatmentSummary", &DialysisAPIController{}, "post:PostAtreatmentInfo")
  22. beego.Router("/m/api/dialysis/doublecheck", &DialysisAPIController{}, "post:PostDoubleCheck")
  23. beego.Router("/m/api/dialysis/acceptsAssessment", &DialysisAPIController{}, "post:PostAcceptsAssessment")
  24. beego.Router("/m/api/dialysis/assessmentAfterDislysis", &DialysisAPIController{}, "post:PostAssessmentAfterDislysis")
  25. beego.Router("/m/api/dialysis/finish", &DialysisAPIController{}, "post:Finish")
  26. beego.Router("/m/api/dialysis/allzone", &DialysisAPIController{}, "get:GetAllZone")
  27. beego.Router("/m/api/dialysis/patients", &DialysisAPIController{}, "get:GetSchedualPatientsList")
  28. beego.Router("/m/api/startOrder/edit", &DialysisAPIController{}, "post:ModifyStartDialysisOrder")
  29. beego.Router("/m/api/finishOrder/edit", &DialysisAPIController{}, "post:ModifyFinishDialysisOrder")
  30. beego.Router("/m/api/advice/create", &PatientApiController{}, "Post:CreateDoctorAdvice")
  31. beego.Router("/m/api/advice/edit", &PatientApiController{}, "Put:EditDoctorAdvice")
  32. beego.Router("/m/api/advice/stop", &PatientApiController{}, "Post:StopDoctorAdvice")
  33. beego.Router("/m/api/advice/creategroup", &PatientApiController{}, "Post:CreateGroupAdvice")
  34. beego.Router("/m/api/advice/group/modify_starttime", &PatientApiController{}, "Post:ModifyAdviceGroupStartTime")
  35. beego.Router("/m/api/advice/delete", &PatientApiController{}, "Delete:DeleteDoctorAdvice")
  36. beego.Router("/m/api/advice/exec", &PatientApiController{}, "Post:ExecDoctorAdvice")
  37. beego.Router("/m/api/advice/exec/modify", &PatientApiController{}, "Post:ModifyExecDoctorAdvice")
  38. beego.Router("/m/api/advice/check", &PatientApiController{}, "Post:CheckDoctorAdvice")
  39. beego.Router("/m/api/patient/info", &PatientApiController{}, "Get:GetPatientInfoWithDiseases")
  40. beego.Router("/m/api/monitor/add", &DialysisAPIController{}, "post:AddMonitorRecord")
  41. beego.Router("/m/api/monitor/edit", &DialysisAPIController{}, "post:EditMonitorRecord")
  42. beego.Router("/m/api/monitor/delete", &DialysisAPIController{}, "post:DeleteMonitor")
  43. beego.Router("/m/api/accepts/get", &DialysisAPIController{}, "Get:GetAcceptsAssessment")
  44. beego.Router("/m/api/patient/education", &PatientApiController{}, "get:GetPatientEducation")
  45. beego.Router("/m/api/patients/schedules", &PatientApiController{}, "Get:GetPatientSchedulesList")
  46. beego.Router("/m/api/patients/record", &PatientApiController{}, "Get:GetRecords")
  47. beego.Router("/m/api/patients/solutions", &PatientApiController{}, "Get:GetPatientDialysisSolutionList")
  48. beego.Router("/m/api/patients/doctoradvices", &PatientApiController{}, "Get:GetDoctorAdvices")
  49. beego.Router("/m/api/monitor", &PatientApiController{}, "Get:GetPatientMonitor")
  50. beego.Router("/m/api/monitor/patient", &PatientApiController{}, "get:SearchMonitorPatient")
  51. beego.Router("/m/api/alldoctors", &DoctorsApiController{}, "Get:GetAllDoctorAndNurse")
  52. beego.Router("/m/api/admin/users", &DoctorsApiController{}, "Get:GetAllAdminUsers")
  53. beego.Router("/m/api/solution", &DialysisAPIController{}, "Post:PostSolution")
  54. beego.Router("/m/api/schedule/advices", &DoctorAdviceAPIController{}, "Get:ScheduleAdvices")
  55. beego.Router("/m/api/dialysis/start", &DialysisAPIController{}, "Post:StartDialysis")
  56. beego.Router("/m/api/getelectronicsignature", &AdminUserApiController{}, "Get:GetAdminUserElectronicSignature")
  57. beego.Router("/m/api/savelectronicsignature", &AdminUserApiController{}, "Post:SaveAdminUserElectronicSignature")
  58. beego.Router("/m/api/my", &AdminUserApiController{}, "Get:GetMyInfo")
  59. beego.Router("/m/api/qiniu/uptoken", &QiNiuApiController{}, "get:GetQNUpToken")
  60. beego.Router("/m/api/getadviceconfigs", &DoctorAdviceAPIController{}, "Get:GetAdviceConfigs")
  61. beego.Router("/m/api/inspection/reference", &CheckApiController{}, "Get:GetInspectionReference")
  62. beego.Router("/m/api/inspection/list", &CheckApiController{}, "Get:GetInspections")
  63. beego.Router("/m/api/print/dialysisorder", &PatientApiController{}, "Get:GetPrintDialysisOrder")
  64. beego.Router("/m/api/schedule/urgentinit", &DialysisAPIController{}, "Get:UrgentScheduleInitData")
  65. beego.Router("/m/api/schedule/urgentadd", &DialysisAPIController{}, "Post:AddUrgentSchedule")
  66. beego.Router("/m/api/dialysis/sign", &DialysisAPIController{}, "Post:PostSignInfo")
  67. beego.Router("/m/api/monitor/get", &DialysisAPIController{}, "Get:GetLastMonitorRecord")
  68. beego.Router("/m/api/monitor/gettodaylast", &DialysisAPIController{}, "Get:GetLastMonitorRecordTody")
  69. beego.Router("/m/api/newadvice/delete", &PatientApiController{}, "Delete:DelDoctorAdvice")
  70. beego.Router("/m/api/delete/subadvice", &PatientApiController{}, "Delete:DelSubDoctorAdvice")
  71. beego.Router("/m/api/advice/unread", &PatientApiController{}, "Get:GetAdviceUnReadMessage")
  72. beego.Router("/m/api/patients/search", &PatientApiController{}, "Post:GetPatientsByKeyWord")
  73. beego.Router("/m/api/warehouse/query", &StockApiController{}, "get:GetWarehouse")
  74. beego.Router("/m/api/dialysis/advice_remind", &DialysisAPIController{}, "Get:GetLongAdvice")
  75. beego.Router("/m/api/advice_remind/create", &DialysisAPIController{}, "Post:CreateRemindDoctorAdvice")
  76. beego.Router("/m/api/dryweight/commit", &DialysisAPIController{}, "Post:UploadDryWeight")
  77. beego.Router("/m/api/solution/get", &DialysisAPIController{}, "Get:GetSolution")
  78. beego.Router("/m/api/schedule/get", &DialysisAPIController{}, "Get:GetSchedule")
  79. }