patient.js 859 B

1234567891011121314151617181920212223
  1. "use strict";
  2. var common_request = require("../common/request.js");
  3. let request = new common_request.Request().http;
  4. function getPatientList() {
  5. return request("/app/patient/getPatientList", null, "GET");
  6. }
  7. function getPatientById(data) {
  8. return request("/app/patient/getPatientById", data, "GET");
  9. }
  10. function delPatient(data) {
  11. return request("/app/patient/delPatient", data, "POST", "application/json;charset=UTF-8");
  12. }
  13. function addPatient(data) {
  14. return request("/app/patient/addPatient", data, "POST", "application/json;charset=UTF-8");
  15. }
  16. function editPatient(data) {
  17. return request("/app/patient/editPatient", data, "POST", "application/json;charset=UTF-8");
  18. }
  19. exports.addPatient = addPatient;
  20. exports.delPatient = delPatient;
  21. exports.editPatient = editPatient;
  22. exports.getPatientById = getPatientById;
  23. exports.getPatientList = getPatientList;