web-core-tcm 0.0.71 → 0.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.js +10 -6
- package/dist/src/api/algorithm/pulsationsAlgorithm.js +1 -1
- package/dist/src/api/authorization/alova/index.d.ts +2 -3
- package/dist/src/api/authorization/alova/index.js +13 -16
- package/dist/src/api/authorization/authorization.d.ts +1 -1
- package/dist/src/api/authorization/index.js +6 -9
- package/dist/src/api/check/alova/index.d.ts +2 -1
- package/dist/src/api/check/alova/index.js +11 -10
- package/dist/src/api/check/check.d.ts +1 -1
- package/dist/src/api/check/index.js +10 -9
- package/dist/src/api/config/alova/index.js +10 -10
- package/dist/src/api/config/index.d.ts +3 -1
- package/dist/src/api/config/index.js +21 -9
- package/dist/src/api/core/core.d.ts +1 -1
- package/dist/src/api/doctor/alova/index.d.ts +2 -1
- package/dist/src/api/doctor/alova/index.js +8 -7
- package/dist/src/api/doctor/doctor.d.ts +1 -1
- package/dist/src/api/doctor/index.js +7 -6
- package/dist/src/api/index.d.ts +1 -0
- package/dist/src/api/index.js +2 -0
- package/dist/src/api/manager/alova/apiDefinitions.d.ts +77 -0
- package/dist/src/api/manager/alova/apiDefinitions.js +65 -0
- package/dist/src/api/manager/alova/createApis.d.ts +10 -0
- package/dist/src/api/manager/alova/createApis.js +49 -0
- package/dist/src/api/manager/alova/globals.d.ts +5524 -0
- package/dist/src/api/manager/alova/implement/department.d.ts +15 -0
- package/dist/src/api/manager/alova/implement/department.js +71 -0
- package/dist/src/api/manager/alova/implement/division.d.ts +15 -0
- package/dist/src/api/manager/alova/implement/division.js +71 -0
- package/dist/src/api/manager/alova/implement/hospital.d.ts +15 -0
- package/dist/src/api/manager/alova/implement/hospital.js +72 -0
- package/dist/src/api/manager/alova/implement/index.d.ts +3 -0
- package/dist/src/api/manager/alova/implement/index.js +8 -0
- package/dist/src/api/manager/alova/index.d.ts +7 -0
- package/dist/src/api/manager/alova/index.js +21 -0
- package/dist/src/api/manager/department.d.ts +23 -0
- package/dist/src/api/manager/department.js +49 -0
- package/dist/src/api/manager/division.d.ts +23 -0
- package/dist/src/api/manager/division.js +44 -0
- package/dist/src/api/manager/hospital.d.ts +24 -0
- package/dist/src/api/manager/hospital.js +51 -0
- package/dist/src/api/manager/index.d.ts +4 -0
- package/dist/src/api/manager/index.js +18 -0
- package/dist/src/api/metric/alova/implement/metric.d.ts +1 -1
- package/dist/src/api/metric/metric.d.ts +2 -2
- package/dist/src/api/oauth/alova/index.d.ts +2 -1
- package/dist/src/api/oauth/alova/index.js +12 -11
- package/dist/src/api/oauth/index.js +6 -5
- package/dist/src/api/outpatient/alova/index.d.ts +2 -1
- package/dist/src/api/outpatient/alova/index.js +11 -10
- package/dist/src/api/outpatient/index.js +10 -9
- package/dist/src/api/outpatient/outpatient.d.ts +1 -1
- package/dist/src/api/patient/alova/implement/meta.d.ts +1 -1
- package/dist/src/api/patient/alova/index.d.ts +2 -1
- package/dist/src/api/patient/alova/index.js +11 -10
- package/dist/src/api/patient/index.js +27 -26
- package/dist/src/api/patient/meta.d.ts +1 -1
- package/dist/src/api/patient/patient.d.ts +1 -1
- package/dist/src/api/prescription/alova/implement/prescription.d.ts +0 -1
- package/dist/src/api/prescription/alova/implement/prescription.js +9 -17
- package/dist/src/api/prescription/alova/index.d.ts +2 -1
- package/dist/src/api/prescription/alova/index.js +2 -1
- package/dist/src/api/prescription/herbal.d.ts +1 -1
- package/dist/src/api/prescription/index.js +12 -11
- package/dist/src/api/prescription/prescription.d.ts +1 -2
- package/dist/src/api/prescription/prescription.js +9 -12
- package/dist/src/api/scientist/alova/index.d.ts +2 -1
- package/dist/src/api/scientist/alova/index.js +6 -5
- package/dist/src/api/scientist/index.js +8 -7
- package/dist/src/api/scientist/scientist.d.ts +1 -1
- package/dist/src/api/user/alova/apiDefinitions.d.ts +26 -0
- package/dist/src/api/user/alova/apiDefinitions.js +14 -0
- package/dist/src/api/user/alova/createApis.d.ts +10 -0
- package/dist/src/api/user/alova/createApis.js +49 -0
- package/dist/src/api/user/alova/globals.d.ts +529 -0
- package/dist/src/api/user/alova/implement/index.d.ts +1 -0
- package/dist/src/api/user/alova/implement/index.js +1 -0
- package/dist/src/api/user/alova/implement/user.d.ts +10 -0
- package/dist/src/api/user/alova/index.d.ts +7 -0
- package/dist/src/api/user/alova/index.js +21 -0
- package/dist/src/api/user/index.d.ts +2 -0
- package/dist/src/api/user/index.js +8 -0
- package/dist/src/api/user/user.d.ts +23 -0
- package/dist/src/api/user/user.js +52 -0
- package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue.d.ts +14 -3
- package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue.js +2 -2
- package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue2.js +117 -129
- package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue.d.ts +14 -3
- package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue.js +2 -2
- package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue2.js +123 -139
- package/dist/src/components/tcm/lisems/EPPCollected.vue.js +1 -1
- package/dist/src/components/tcm/palpations/PulsationCollect.vue.js +2 -2
- package/dist/src/components/tcm/palpations/PulsationCollect.vue2.js +51 -54
- package/dist/src/index.js +42 -40
- package/dist/web-core-tcm.css +1 -1
- package/package.json +11 -1
|
@@ -2,13 +2,17 @@ import "../../index.js";
|
|
|
2
2
|
import { LisemsAlgorithm as i } from "../../lisemsAlgorithm.js";
|
|
3
3
|
import { lisemsAlgorithmService as s } from "../index.js";
|
|
4
4
|
class c extends i {
|
|
5
|
-
static analysisLisems(
|
|
6
|
-
return s.Post("/特征参数",
|
|
5
|
+
static analysisLisems(r) {
|
|
6
|
+
return s.Post("/特征参数", r, {
|
|
7
|
+
transform(t) {
|
|
8
|
+
return t.json();
|
|
9
|
+
}
|
|
10
|
+
}).send();
|
|
7
11
|
}
|
|
8
|
-
static getFrequencyDomainDiagram(
|
|
9
|
-
return s.Post("/频域图", JSON.stringify(
|
|
10
|
-
async transform(
|
|
11
|
-
const e = await
|
|
12
|
+
static getFrequencyDomainDiagram(r) {
|
|
13
|
+
return s.Post("/频域图", JSON.stringify(r), {
|
|
14
|
+
async transform(t) {
|
|
15
|
+
const e = await t.blob();
|
|
12
16
|
return URL.createObjectURL(e);
|
|
13
17
|
}
|
|
14
18
|
}).send();
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export declare const alovaInstance: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, any, any, any>>;
|
|
2
2
|
export declare const $$userConfigMap: {};
|
|
3
|
+
export { alovaInstance as authorizationAlovaInstance };
|
|
3
4
|
declare const Apis: authorizeApi;
|
|
4
5
|
export default Apis;
|
|
5
6
|
export * from './implement';
|
|
6
|
-
export type * from './globals
|
|
7
|
-
export * from './createApis';
|
|
8
|
-
export * from './apiDefinitions';
|
|
7
|
+
export type * from './globals';
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
2
|
import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
3
|
-
import { withConfigType as t, createApis as r, mountApis as
|
|
4
|
-
import { responded as
|
|
5
|
-
import { getServiceEndpoint as
|
|
3
|
+
import { withConfigType as t, createApis as r, mountApis as a } from "./createApis.js";
|
|
4
|
+
import { responded as i, onAuthRequired as n } from "../../config/alova/index.js";
|
|
5
|
+
import { getServiceEndpoint as p, ServiceType as s } from "../../config/index.js";
|
|
6
6
|
import "./implement/index.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
baseURL: n(m.Authorization),
|
|
7
|
+
const c = e({
|
|
8
|
+
baseURL: p(s.Authorization),
|
|
10
9
|
requestAdapter: o(),
|
|
11
|
-
beforeRequest:
|
|
10
|
+
beforeRequest: n(),
|
|
12
11
|
cacheFor: null,
|
|
13
|
-
responded:
|
|
14
|
-
}),
|
|
15
|
-
|
|
12
|
+
responded: i
|
|
13
|
+
}), m = t({}), u = r(c, m);
|
|
14
|
+
a(u);
|
|
16
15
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
i as mountApis,
|
|
22
|
-
t as withConfigType
|
|
16
|
+
m as $$userConfigMap,
|
|
17
|
+
c as alovaInstance,
|
|
18
|
+
c as authorizationAlovaInstance,
|
|
19
|
+
u as default
|
|
23
20
|
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { Authorization as t } from "./authorization.js";
|
|
2
|
-
import { $$userConfigMap as
|
|
3
|
-
import { AlovaAuthorization as
|
|
4
|
-
import { createApis as m, mountApis as A, withConfigType as s } from "./alova/createApis.js";
|
|
2
|
+
import { $$userConfigMap as r, alovaInstance as e, alovaInstance as i } from "./alova/index.js";
|
|
3
|
+
import { AlovaAuthorization as f } from "./alova/implement/authorization.js";
|
|
5
4
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
r as $$userConfigMap,
|
|
6
|
+
f as AlovaAuthorization,
|
|
8
7
|
t as Authorization,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
A as mountApis,
|
|
12
|
-
s as withConfigType
|
|
8
|
+
e as alovaInstance,
|
|
9
|
+
i as authorizationAlovaInstance
|
|
13
10
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const alovaInstance: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, any, any, any>>;
|
|
2
|
+
export { alovaInstance as checkAlovaInstance };
|
|
2
3
|
export declare const $$userConfigMap: {};
|
|
3
4
|
declare const Apis: checkApi;
|
|
4
5
|
export default Apis;
|
|
5
6
|
export * from './implement';
|
|
6
|
-
export type * from './globals
|
|
7
|
+
export type * from './globals';
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
2
|
import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
3
|
-
import { withConfigType as
|
|
4
|
-
import { responded as
|
|
5
|
-
import { getServiceEndpoint as
|
|
3
|
+
import { withConfigType as t, createApis as r, mountApis as a } from "./createApis.js";
|
|
4
|
+
import { responded as p, onAuthRequired as i } from "../../config/alova/index.js";
|
|
5
|
+
import { getServiceEndpoint as c, ServiceType as n } from "../../config/index.js";
|
|
6
6
|
import "./implement/index.js";
|
|
7
|
-
const
|
|
8
|
-
baseURL: n
|
|
7
|
+
const s = e({
|
|
8
|
+
baseURL: c(n.Check),
|
|
9
9
|
requestAdapter: o(),
|
|
10
|
-
beforeRequest:
|
|
10
|
+
beforeRequest: i(),
|
|
11
11
|
cacheFor: null,
|
|
12
|
-
responded:
|
|
13
|
-
}), m =
|
|
14
|
-
|
|
12
|
+
responded: p
|
|
13
|
+
}), m = t({}), f = r(s, m);
|
|
14
|
+
a(f);
|
|
15
15
|
export {
|
|
16
16
|
m as $$userConfigMap,
|
|
17
|
-
|
|
17
|
+
s as alovaInstance,
|
|
18
|
+
s as checkAlovaInstance,
|
|
18
19
|
f as default
|
|
19
20
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Patient } from '../patient/patient';
|
|
2
2
|
import { Page, Tag, NetworkObject, Sequence } from '../core/core';
|
|
3
|
-
import { CheckState, PaymentState } from './alova/globals
|
|
3
|
+
import { CheckState, PaymentState } from './alova/globals';
|
|
4
4
|
import { Metas } from '../patient/meta';
|
|
5
5
|
import { Prescription } from '../prescription/prescription';
|
|
6
6
|
import { Doctor } from '../doctor/doctor';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Check as
|
|
2
|
-
import { $$userConfigMap as
|
|
3
|
-
import { AlovaCheck as
|
|
1
|
+
import { Check as o, Payment as n } from "./check.js";
|
|
2
|
+
import { $$userConfigMap as c, alovaInstance as r, alovaInstance as l } from "./alova/index.js";
|
|
3
|
+
import { AlovaCheck as s, AlovaPayment as v } from "./alova/implement/check.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
c as $$userConfigMap,
|
|
6
|
+
s as AlovaCheck,
|
|
7
|
+
v as AlovaPayment,
|
|
8
|
+
o as Check,
|
|
9
|
+
n as Payment,
|
|
10
|
+
r as alovaInstance,
|
|
11
|
+
l as checkAlovaInstance
|
|
11
12
|
};
|
|
@@ -14,8 +14,8 @@ const { onAuthRequired: u } = n({
|
|
|
14
14
|
},
|
|
15
15
|
handler: async (t) => {
|
|
16
16
|
if (t.status != 200) throw new Error("登录失败" + await t.text());
|
|
17
|
-
await t.json().then((
|
|
18
|
-
e.setItem("token",
|
|
17
|
+
await t.json().then((r) => {
|
|
18
|
+
e.setItem("token", r.token);
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
},
|
|
@@ -25,26 +25,26 @@ const { onAuthRequired: u } = n({
|
|
|
25
25
|
if (!e.getItem("token")) return !1;
|
|
26
26
|
const t = i(e.getItem("token"));
|
|
27
27
|
if (t.exp === void 0) return !1;
|
|
28
|
-
const
|
|
29
|
-
return t.exp <
|
|
28
|
+
const r = Date.now() / 1e3;
|
|
29
|
+
return t.exp < r;
|
|
30
30
|
},
|
|
31
31
|
// 当token过期时触发,在此函数中触发刷新token
|
|
32
32
|
handler: async () => (e.removeItem("token"), window.location.href = "登录", await Promise.resolve())
|
|
33
33
|
}
|
|
34
34
|
}), m = {
|
|
35
|
-
onSuccess: async (t,
|
|
35
|
+
onSuccess: async (t, r) => {
|
|
36
36
|
if (t.status == 401) {
|
|
37
|
-
if (
|
|
37
|
+
if (r.meta.Login)
|
|
38
38
|
throw new Error(t.status.toString());
|
|
39
39
|
console.log("未登录"), e.removeItem("token"), window.location.href = process.env.APP_URL;
|
|
40
40
|
}
|
|
41
|
-
if (t.headers.get("Content-Type")
|
|
41
|
+
if (t.headers.get("Content-Type") == "application/octet-stream") return t;
|
|
42
42
|
if (t.status == 200 || t.status == 201 || t.status == 204) {
|
|
43
|
-
const
|
|
43
|
+
const o = await t.text();
|
|
44
44
|
try {
|
|
45
|
-
return JSON.parse(
|
|
45
|
+
return JSON.parse(o);
|
|
46
46
|
} catch {
|
|
47
|
-
return
|
|
47
|
+
return o;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -5,6 +5,7 @@ export declare enum ServiceType {
|
|
|
5
5
|
Patient = "Patient",
|
|
6
6
|
Scientist = "Scientist",
|
|
7
7
|
Outpatient = "Outpatient",
|
|
8
|
+
Manager = "Manager",
|
|
8
9
|
Check = "Check",
|
|
9
10
|
Prescription = "Prescription",
|
|
10
11
|
Authorization = "Authorization",
|
|
@@ -12,7 +13,8 @@ export declare enum ServiceType {
|
|
|
12
13
|
PulsationsAlgorithm = "PulsationsAlgorithm",
|
|
13
14
|
InquiriesAlgorithm = "InquiriesAlgorithm",
|
|
14
15
|
LisemsAlgorithm = "LisemsAlgorithm",
|
|
15
|
-
ComprehensiveAlgorithm = "ComprehensiveAlgorithm"
|
|
16
|
+
ComprehensiveAlgorithm = "ComprehensiveAlgorithm",
|
|
17
|
+
User = "User"
|
|
16
18
|
}
|
|
17
19
|
export declare enum EnvironmentType {
|
|
18
20
|
Dev = "Dev",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { onAuthRequired as
|
|
3
|
-
var e = /* @__PURE__ */ ((t) => (t.OAuth = "OAuth", t.OAuthRedirect = "OAuthRedirect", t.Doctor = "Doctor", t.Patient = "Patient", t.Scientist = "Scientist", t.Outpatient = "Outpatient", t.Check = "Check", t.Prescription = "Prescription", t.Authorization = "Authorization", t.InspectionsAlgorithm = "InspectionsAlgorithm", t.PulsationsAlgorithm = "PulsationsAlgorithm", t.InquiriesAlgorithm = "InquiriesAlgorithm", t.LisemsAlgorithm = "LisemsAlgorithm", t.ComprehensiveAlgorithm = "ComprehensiveAlgorithm", t))(e || {}), o = /* @__PURE__ */ ((t) => (t.Dev = "Dev", t.Prod = "Prod", t.Local = "Local", t))(o || {});
|
|
4
|
-
function
|
|
5
|
-
if (
|
|
1
|
+
import s from "../../../node_modules/punycode/punycode.es6.js";
|
|
2
|
+
import { onAuthRequired as c, responded as u } from "./alova/index.js";
|
|
3
|
+
var e = /* @__PURE__ */ ((t) => (t.OAuth = "OAuth", t.OAuthRedirect = "OAuthRedirect", t.Doctor = "Doctor", t.Patient = "Patient", t.Scientist = "Scientist", t.Outpatient = "Outpatient", t.Manager = "Manager", t.Check = "Check", t.Prescription = "Prescription", t.Authorization = "Authorization", t.InspectionsAlgorithm = "InspectionsAlgorithm", t.PulsationsAlgorithm = "PulsationsAlgorithm", t.InquiriesAlgorithm = "InquiriesAlgorithm", t.LisemsAlgorithm = "LisemsAlgorithm", t.ComprehensiveAlgorithm = "ComprehensiveAlgorithm", t.User = "User", t))(e || {}), o = /* @__PURE__ */ ((t) => (t.Dev = "Dev", t.Prod = "Prod", t.Local = "Local", t))(o || {});
|
|
4
|
+
function n(t, r) {
|
|
5
|
+
if (r == null && (s.toUnicode(window.location.hostname).includes("测试") ? r = "Dev" : (window.location.hostname.includes("localhost") || window.location.hostname.includes("127.0.0.1"), r = "Prod")), r == "Prod")
|
|
6
6
|
switch (t) {
|
|
7
7
|
case "OAuth":
|
|
8
8
|
return "https://用户.仪联中.中国";
|
|
@@ -32,8 +32,12 @@ function h(t, s) {
|
|
|
32
32
|
return "https://中医.仪联中.中国/闻诊/算法";
|
|
33
33
|
case "ComprehensiveAlgorithm":
|
|
34
34
|
return "https://中医.仪联中.中国/四诊合参/算法";
|
|
35
|
+
case "Manager":
|
|
36
|
+
return "https://中医.仪联中.中国/管理/服务";
|
|
37
|
+
case "User":
|
|
38
|
+
return "https://用户.仪联中.中国/用户/服务";
|
|
35
39
|
}
|
|
36
|
-
else if (
|
|
40
|
+
else if (r == "Dev")
|
|
37
41
|
switch (t) {
|
|
38
42
|
case "OAuth":
|
|
39
43
|
return "https://用户测试.仪联中.中国";
|
|
@@ -63,8 +67,12 @@ function h(t, s) {
|
|
|
63
67
|
return "https://中医测试.仪联中.中国/闻诊/算法";
|
|
64
68
|
case "ComprehensiveAlgorithm":
|
|
65
69
|
return "https://中医测试.仪联中.中国/四诊合参/算法";
|
|
70
|
+
case "Manager":
|
|
71
|
+
return "https://中医测试.仪联中.中国/管理/服务";
|
|
72
|
+
case "User":
|
|
73
|
+
return "https://用户测试.仪联中.中国/用户/服务";
|
|
66
74
|
}
|
|
67
|
-
else if (
|
|
75
|
+
else if (r == "Local")
|
|
68
76
|
switch (t) {
|
|
69
77
|
case "OAuth":
|
|
70
78
|
return "http://localhost:8080";
|
|
@@ -94,13 +102,17 @@ function h(t, s) {
|
|
|
94
102
|
return "http://localhost:8080";
|
|
95
103
|
case "ComprehensiveAlgorithm":
|
|
96
104
|
return "http://localhost:8080";
|
|
105
|
+
case "Manager":
|
|
106
|
+
return "http://localhost:8080";
|
|
107
|
+
case "User":
|
|
108
|
+
return "http://localhost:9090";
|
|
97
109
|
}
|
|
98
110
|
throw new Error("环境错误");
|
|
99
111
|
}
|
|
100
112
|
export {
|
|
101
113
|
o as EnvironmentType,
|
|
102
114
|
e as ServiceType,
|
|
103
|
-
|
|
104
|
-
|
|
115
|
+
n as getServiceEndpoint,
|
|
116
|
+
c as onAuthRequired,
|
|
105
117
|
u as responded
|
|
106
118
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const alovaInstance: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, any, any, any>>;
|
|
2
2
|
export declare const $$userConfigMap: {};
|
|
3
|
+
export { alovaInstance as doctorAlovaInstance };
|
|
3
4
|
declare const Apis: doctorApi;
|
|
4
5
|
export default Apis;
|
|
5
6
|
export * from './implement';
|
|
6
|
-
export type * from './globals
|
|
7
|
+
export type * from './globals';
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
2
|
import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
3
|
-
import { withConfigType as
|
|
4
|
-
import { responded as
|
|
3
|
+
import { withConfigType as t, createApis as r, mountApis as a } from "./createApis.js";
|
|
4
|
+
import { responded as p, onAuthRequired as i } from "../../config/alova/index.js";
|
|
5
5
|
import { getServiceEndpoint as n, ServiceType as s } from "../../config/index.js";
|
|
6
6
|
import "./implement/index.js";
|
|
7
7
|
const c = e({
|
|
8
8
|
baseURL: n(s.Doctor),
|
|
9
9
|
requestAdapter: o(),
|
|
10
|
-
beforeRequest:
|
|
10
|
+
beforeRequest: i(() => {
|
|
11
11
|
}),
|
|
12
12
|
cacheFor: null,
|
|
13
|
-
responded:
|
|
14
|
-
}), m =
|
|
15
|
-
|
|
13
|
+
responded: p
|
|
14
|
+
}), m = t({}), f = r(c, m);
|
|
15
|
+
a(f);
|
|
16
16
|
export {
|
|
17
17
|
m as $$userConfigMap,
|
|
18
18
|
c as alovaInstance,
|
|
19
|
-
f as default
|
|
19
|
+
f as default,
|
|
20
|
+
c as doctorAlovaInstance
|
|
20
21
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NetworkObject } from '../core/core';
|
|
2
|
-
import { DoctorState } from './alova/globals
|
|
2
|
+
import { DoctorState } from './alova/globals';
|
|
3
3
|
import { IBuilder } from 'builder-pattern';
|
|
4
4
|
export declare abstract class Doctor extends NetworkObject {
|
|
5
5
|
static builder(): IBuilder<Doctor>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Doctor as
|
|
2
|
-
import { $$userConfigMap as e, alovaInstance as
|
|
3
|
-
import { AlovaDoctor as
|
|
1
|
+
import { Doctor as r } from "./doctor.js";
|
|
2
|
+
import { $$userConfigMap as e, alovaInstance as n, alovaInstance as c } from "./alova/index.js";
|
|
3
|
+
import { AlovaDoctor as f } from "./alova/implement/doctor.js";
|
|
4
4
|
export {
|
|
5
5
|
e as $$userConfigMap,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
f as AlovaDoctor,
|
|
7
|
+
r as Doctor,
|
|
8
|
+
n as alovaInstance,
|
|
9
|
+
c as doctorAlovaInstance
|
|
9
10
|
};
|
package/dist/src/api/index.d.ts
CHANGED
package/dist/src/api/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import * as x from "./prescription/index.js";
|
|
|
11
11
|
import * as n from "./scientist/index.js";
|
|
12
12
|
import * as A from "./device/device.js";
|
|
13
13
|
import * as f from "./core/index.js";
|
|
14
|
+
import * as d from "./manager/index.js";
|
|
14
15
|
export {
|
|
15
16
|
i as AlgorithmApi,
|
|
16
17
|
o as AuthorizationApi,
|
|
@@ -19,6 +20,7 @@ export {
|
|
|
19
20
|
f as CoreApi,
|
|
20
21
|
A as DeviceApi,
|
|
21
22
|
t as DoctorApi,
|
|
23
|
+
d as ManagerApi,
|
|
22
24
|
e as MetricApi,
|
|
23
25
|
a as OAuthApi,
|
|
24
26
|
s as OutPatientApi,
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 管理服务 - version v1.0
|
|
3
|
+
*
|
|
4
|
+
* 支持Restful风格的患者服务
|
|
5
|
+
*
|
|
6
|
+
* OpenAPI version: 3.1.0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This file is auto generated by the alova's vscode plugin.
|
|
10
|
+
*
|
|
11
|
+
* https://alova.js.org/devtools/vscode
|
|
12
|
+
*
|
|
13
|
+
* **Do not edit the file manually.**
|
|
14
|
+
*/
|
|
15
|
+
declare const _default: {
|
|
16
|
+
'departmentStateRestful.getDepartmentState': string[];
|
|
17
|
+
'departmentStateRestful.putDepartmentState': string[];
|
|
18
|
+
'departmentStateRestful.deleteDepartmentState': string[];
|
|
19
|
+
'managerStateRestful.getManagerState': string[];
|
|
20
|
+
'managerStateRestful.putManagerState': string[];
|
|
21
|
+
'managerStateRestful.deleteManagerState': string[];
|
|
22
|
+
'divisionStateRestful.getDivisionState': string[];
|
|
23
|
+
'divisionStateRestful.putDivisionState': string[];
|
|
24
|
+
'divisionStateRestful.deleteDivisionState': string[];
|
|
25
|
+
'hospitalStateRestful.getHospitalState': string[];
|
|
26
|
+
'hospitalStateRestful.putHospitalState': string[];
|
|
27
|
+
'hospitalStateRestful.deleteHospitalState': string[];
|
|
28
|
+
'departmentStateRestful.postDepartmentState': string[];
|
|
29
|
+
'departmentStateRestful.getDepartmentStates': string[];
|
|
30
|
+
'managerStateRestful.postManagerState': string[];
|
|
31
|
+
'managerStateRestful.getManagerState_1': string[];
|
|
32
|
+
'divisionStateRestful.postDivisionState': string[];
|
|
33
|
+
'divisionStateRestful.getDivisionStates': string[];
|
|
34
|
+
'hospitalStateRestful.postHospitalState': string[];
|
|
35
|
+
'hospitalStateRestful.getHospitalStates': string[];
|
|
36
|
+
'general.deleteDepartmentState_POST': string[];
|
|
37
|
+
'general.deleteDepartmentState_GET': string[];
|
|
38
|
+
'general.deleteDivisionState_POST': string[];
|
|
39
|
+
'general.deleteDivisionState_GET': string[];
|
|
40
|
+
'general.deleteHospitalState_POST': string[];
|
|
41
|
+
'general.deleteHospitalState_GET': string[];
|
|
42
|
+
'general.deleteManagerState_POST': string[];
|
|
43
|
+
'general.deleteManagerState_GET': string[];
|
|
44
|
+
'general.getDepartmentState_POST': string[];
|
|
45
|
+
'general.getDepartmentState_GET': string[];
|
|
46
|
+
'general.getDivisionState_POST': string[];
|
|
47
|
+
'general.getDivisionState_GET': string[];
|
|
48
|
+
'general.getHospitalState_POST': string[];
|
|
49
|
+
'general.getHospitalState_GET': string[];
|
|
50
|
+
'general.getManagerState_POST': string[];
|
|
51
|
+
'general.getManagerState_GET': string[];
|
|
52
|
+
'general.postDepartmentState_POST': string[];
|
|
53
|
+
'general.postDepartmentState_GET': string[];
|
|
54
|
+
'general.postDivisionState_POST': string[];
|
|
55
|
+
'general.postDivisionState_GET': string[];
|
|
56
|
+
'general.postHospitalState_POST': string[];
|
|
57
|
+
'general.postHospitalState_GET': string[];
|
|
58
|
+
'general.postManagerState_POST': string[];
|
|
59
|
+
'general.postManagerState_GET': string[];
|
|
60
|
+
'general.putDepartmentState_POST': string[];
|
|
61
|
+
'general.putDepartmentState_GET': string[];
|
|
62
|
+
'general.putDivisionState_POST': string[];
|
|
63
|
+
'general.putDivisionState_GET': string[];
|
|
64
|
+
'general.putHospitalState_POST': string[];
|
|
65
|
+
'general.putHospitalState_GET': string[];
|
|
66
|
+
'general.putManagerState_POST': string[];
|
|
67
|
+
'general.putManagerState_GET': string[];
|
|
68
|
+
'general.queryDepartmentState_POST': string[];
|
|
69
|
+
'general.queryDepartmentState_GET': string[];
|
|
70
|
+
'general.queryDivisionState_POST': string[];
|
|
71
|
+
'general.queryDivisionState_GET': string[];
|
|
72
|
+
'general.queryHospitalState_POST': string[];
|
|
73
|
+
'general.queryHospitalState_GET': string[];
|
|
74
|
+
'general.queryManagerFunction_POST': string[];
|
|
75
|
+
'general.queryManagerFunction_GET': string[];
|
|
76
|
+
};
|
|
77
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
"departmentStateRestful.getDepartmentState": ["GET", "/管理/服务/部门/{id}"],
|
|
3
|
+
"departmentStateRestful.putDepartmentState": ["PUT", "/管理/服务/部门/{id}"],
|
|
4
|
+
"departmentStateRestful.deleteDepartmentState": ["DELETE", "/管理/服务/部门/{id}"],
|
|
5
|
+
"managerStateRestful.getManagerState": ["GET", "/管理/服务/管理/{id}"],
|
|
6
|
+
"managerStateRestful.putManagerState": ["PUT", "/管理/服务/管理/{id}"],
|
|
7
|
+
"managerStateRestful.deleteManagerState": ["DELETE", "/管理/服务/管理/{id}"],
|
|
8
|
+
"divisionStateRestful.getDivisionState": ["GET", "/管理/服务/科室/{id}"],
|
|
9
|
+
"divisionStateRestful.putDivisionState": ["PUT", "/管理/服务/科室/{id}"],
|
|
10
|
+
"divisionStateRestful.deleteDivisionState": ["DELETE", "/管理/服务/科室/{id}"],
|
|
11
|
+
"hospitalStateRestful.getHospitalState": ["GET", "/管理/服务/医院/{id}"],
|
|
12
|
+
"hospitalStateRestful.putHospitalState": ["PUT", "/管理/服务/医院/{id}"],
|
|
13
|
+
"hospitalStateRestful.deleteHospitalState": ["DELETE", "/管理/服务/医院/{id}"],
|
|
14
|
+
"departmentStateRestful.postDepartmentState": ["POST", "/管理/服务/部门"],
|
|
15
|
+
"departmentStateRestful.getDepartmentStates": ["POST", "/管理/服务/部门/查询"],
|
|
16
|
+
"managerStateRestful.postManagerState": ["POST", "/管理/服务/管理"],
|
|
17
|
+
"managerStateRestful.getManagerState_1": ["POST", "/管理/服务/管理/查询"],
|
|
18
|
+
"divisionStateRestful.postDivisionState": ["POST", "/管理/服务/科室"],
|
|
19
|
+
"divisionStateRestful.getDivisionStates": ["POST", "/管理/服务/科室/查询"],
|
|
20
|
+
"hospitalStateRestful.postHospitalState": ["POST", "/管理/服务/医院"],
|
|
21
|
+
"hospitalStateRestful.getHospitalStates": ["POST", "/管理/服务/医院/查询"],
|
|
22
|
+
"general.deleteDepartmentState_POST": ["POST", "/deleteDepartmentState"],
|
|
23
|
+
"general.deleteDepartmentState_GET": ["GET", "/deleteDepartmentState/{deleteDepartmentState}"],
|
|
24
|
+
"general.deleteDivisionState_POST": ["POST", "/deleteDivisionState"],
|
|
25
|
+
"general.deleteDivisionState_GET": ["GET", "/deleteDivisionState/{deleteDivisionState}"],
|
|
26
|
+
"general.deleteHospitalState_POST": ["POST", "/deleteHospitalState"],
|
|
27
|
+
"general.deleteHospitalState_GET": ["GET", "/deleteHospitalState/{deleteHospitalState}"],
|
|
28
|
+
"general.deleteManagerState_POST": ["POST", "/deleteManagerState"],
|
|
29
|
+
"general.deleteManagerState_GET": ["GET", "/deleteManagerState/{deleteManagerState}"],
|
|
30
|
+
"general.getDepartmentState_POST": ["POST", "/getDepartmentState"],
|
|
31
|
+
"general.getDepartmentState_GET": ["GET", "/getDepartmentState/{getDepartmentState}"],
|
|
32
|
+
"general.getDivisionState_POST": ["POST", "/getDivisionState"],
|
|
33
|
+
"general.getDivisionState_GET": ["GET", "/getDivisionState/{getDivisionState}"],
|
|
34
|
+
"general.getHospitalState_POST": ["POST", "/getHospitalState"],
|
|
35
|
+
"general.getHospitalState_GET": ["GET", "/getHospitalState/{getHospitalState}"],
|
|
36
|
+
"general.getManagerState_POST": ["POST", "/getManagerState"],
|
|
37
|
+
"general.getManagerState_GET": ["GET", "/getManagerState/{getManagerState}"],
|
|
38
|
+
"general.postDepartmentState_POST": ["POST", "/postDepartmentState"],
|
|
39
|
+
"general.postDepartmentState_GET": ["GET", "/postDepartmentState/{postDepartmentState}"],
|
|
40
|
+
"general.postDivisionState_POST": ["POST", "/postDivisionState"],
|
|
41
|
+
"general.postDivisionState_GET": ["GET", "/postDivisionState/{postDivisionState}"],
|
|
42
|
+
"general.postHospitalState_POST": ["POST", "/postHospitalState"],
|
|
43
|
+
"general.postHospitalState_GET": ["GET", "/postHospitalState/{postHospitalState}"],
|
|
44
|
+
"general.postManagerState_POST": ["POST", "/postManagerState"],
|
|
45
|
+
"general.postManagerState_GET": ["GET", "/postManagerState/{postManagerState}"],
|
|
46
|
+
"general.putDepartmentState_POST": ["POST", "/putDepartmentState"],
|
|
47
|
+
"general.putDepartmentState_GET": ["GET", "/putDepartmentState/{putDepartmentState}"],
|
|
48
|
+
"general.putDivisionState_POST": ["POST", "/putDivisionState"],
|
|
49
|
+
"general.putDivisionState_GET": ["GET", "/putDivisionState/{putDivisionState}"],
|
|
50
|
+
"general.putHospitalState_POST": ["POST", "/putHospitalState"],
|
|
51
|
+
"general.putHospitalState_GET": ["GET", "/putHospitalState/{putHospitalState}"],
|
|
52
|
+
"general.putManagerState_POST": ["POST", "/putManagerState"],
|
|
53
|
+
"general.putManagerState_GET": ["GET", "/putManagerState/{putManagerState}"],
|
|
54
|
+
"general.queryDepartmentState_POST": ["POST", "/queryDepartmentState"],
|
|
55
|
+
"general.queryDepartmentState_GET": ["GET", "/queryDepartmentState/{queryDepartmentState}"],
|
|
56
|
+
"general.queryDivisionState_POST": ["POST", "/queryDivisionState"],
|
|
57
|
+
"general.queryDivisionState_GET": ["GET", "/queryDivisionState/{queryDivisionState}"],
|
|
58
|
+
"general.queryHospitalState_POST": ["POST", "/queryHospitalState"],
|
|
59
|
+
"general.queryHospitalState_GET": ["GET", "/queryHospitalState/{queryHospitalState}"],
|
|
60
|
+
"general.queryManagerFunction_POST": ["POST", "/queryManagerFunction"],
|
|
61
|
+
"general.queryManagerFunction_GET": ["GET", "/queryManagerFunction/{queryManagerFunction}"]
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
t as default
|
|
65
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Alova, AlovaGenerics, AlovaMethodCreateConfig } from 'alova';
|
|
2
|
+
export declare const createApis: (alovaInstance: Alova<AlovaGenerics>, configMap: any) => managerApi;
|
|
3
|
+
export declare const mountApis: (Apis: managerApi) => void;
|
|
4
|
+
type MethodConfig<T> = AlovaMethodCreateConfig<(typeof import('./index'))['alovaInstance'] extends Alova<infer AG> ? AG : any, any, T>;
|
|
5
|
+
type APISofParameters<Tag extends string, Url extends string> = Tag extends keyof managerApi ? Url extends keyof managerApi[Tag] ? managerApi[Tag][Url] extends (...args: any) => any ? Parameters<managerApi[Tag][Url]> : any : any : any;
|
|
6
|
+
type MethodsConfigMap = {
|
|
7
|
+
[P in keyof typeof import('./apiDefinitions').default]?: MethodConfig<P extends `${infer Tag}.${infer Url}` ? Parameters<NonNullable<APISofParameters<Tag, Url>[0]>['transform']>[0] : any>;
|
|
8
|
+
};
|
|
9
|
+
export declare const withConfigType: <Config extends MethodsConfigMap>(config: Config) => Config;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Method as A } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
|
+
import _ from "./apiDefinitions.js";
|
|
3
|
+
const l = /* @__PURE__ */ Object.create(null), d = (e, a, p) => {
|
|
4
|
+
const o = e.join(".");
|
|
5
|
+
if (l[o])
|
|
6
|
+
return l[o];
|
|
7
|
+
const s = new Proxy(function() {
|
|
8
|
+
}, {
|
|
9
|
+
get(y, m) {
|
|
10
|
+
const f = [...e, m];
|
|
11
|
+
return d(f, a, p);
|
|
12
|
+
},
|
|
13
|
+
apply(y, m, [f]) {
|
|
14
|
+
const u = _[o];
|
|
15
|
+
if (!u)
|
|
16
|
+
throw new Error(`the api path of \`${o}\` is not found`);
|
|
17
|
+
const i = {
|
|
18
|
+
...p[o],
|
|
19
|
+
...f
|
|
20
|
+
}, [P, b] = u, g = i.pathParams, w = b.replace(/\{([^}]+)\}/g, (c, n) => g[n]);
|
|
21
|
+
delete i.pathParams;
|
|
22
|
+
let t = i.data;
|
|
23
|
+
if (Object.prototype.toString.call(t) === "[object Object]" && typeof FormData < "u") {
|
|
24
|
+
let c = !1;
|
|
25
|
+
const n = new FormData();
|
|
26
|
+
for (const r in t)
|
|
27
|
+
if (Array.isArray(t[r]))
|
|
28
|
+
for (const h of t[r])
|
|
29
|
+
n.append(r, h), h instanceof Blob && (c = !0);
|
|
30
|
+
else
|
|
31
|
+
n.append(r, t[r]), t[r] instanceof Blob && (c = !0);
|
|
32
|
+
t = c ? n : t;
|
|
33
|
+
}
|
|
34
|
+
return new A(P.toUpperCase(), a, w, i, t);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
return l[o] = s, s;
|
|
38
|
+
}, D = (e, a) => new Proxy({}, {
|
|
39
|
+
get(o, s) {
|
|
40
|
+
return d([s], e, a);
|
|
41
|
+
}
|
|
42
|
+
}), B = (e) => {
|
|
43
|
+
globalThis.managerApi = e;
|
|
44
|
+
}, C = (e) => e;
|
|
45
|
+
export {
|
|
46
|
+
D as createApis,
|
|
47
|
+
B as mountApis,
|
|
48
|
+
C as withConfigType
|
|
49
|
+
};
|