web-core-tcm 0.0.29 → 0.0.34
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/comprehensiveAlgorithm.d.ts +7 -0
- package/dist/src/api/algorithm/alova/implement/comprehensiveAlgorithm.js +31 -0
- package/dist/src/api/algorithm/alova/implement/index.d.ts +5 -0
- package/dist/src/api/algorithm/alova/implement/inquiriesAlgorithm.d.ts +16 -0
- package/dist/src/api/algorithm/alova/implement/inquiriesAlgorithm.js +26 -0
- package/dist/src/api/algorithm/alova/implement/inspectionsAlgorithm.d.ts +5 -0
- package/dist/src/api/algorithm/alova/implement/inspectionsAlgorithm.js +21 -0
- package/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.d.ts +5 -0
- package/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.js +26 -0
- package/dist/src/api/algorithm/alova/implement/pulsationsAlgorithm.d.ts +7 -0
- package/dist/src/api/algorithm/alova/implement/pulsationsAlgorithm.js +19 -0
- package/dist/src/api/algorithm/alova/index.d.ts +6 -0
- package/dist/src/api/algorithm/alova/index.js +47 -0
- package/dist/src/api/algorithm/comprehensiveAlgorithm.d.ts +11 -4
- package/dist/src/api/algorithm/comprehensiveAlgorithm.js +26 -14
- package/dist/src/api/algorithm/index.d.ts +1 -5
- package/dist/src/api/algorithm/index.js +26 -60
- package/dist/src/api/algorithm/inquiriesAlgorithm.d.ts +20 -13
- package/dist/src/api/algorithm/inquiriesAlgorithm.js +27 -7
- package/dist/src/api/algorithm/inspectionsAlgorithm.d.ts +9 -2
- package/dist/src/api/algorithm/inspectionsAlgorithm.js +18 -8
- package/dist/src/api/algorithm/lisemsAlgorithm.d.ts +9 -2
- package/dist/src/api/algorithm/lisemsAlgorithm.js +16 -11
- package/dist/src/api/algorithm/pulsationsAlgorithm.d.ts +11 -4
- package/dist/src/api/algorithm/pulsationsAlgorithm.js +18 -6
- package/dist/src/api/authorization/alova/globals.d.ts +377 -0
- package/dist/src/api/check/alova/globals.d.ts +1240 -0
- package/dist/src/api/check/alova/index.js +1 -1
- package/dist/src/api/check/check.d.ts +1 -1
- package/dist/src/api/check/check.js +1 -1
- package/dist/src/api/{patient → core}/core.d.ts +7 -2
- package/dist/src/api/{patient → core}/core.js +27 -17
- package/dist/src/api/device/device.d.ts +5 -0
- package/dist/src/api/doctor/alova/globals.d.ts +542 -0
- package/dist/src/api/doctor/alova/index.js +1 -1
- package/dist/src/api/doctor/doctor.d.ts +1 -1
- package/dist/src/api/doctor/doctor.js +1 -1
- package/dist/src/api/oauth/alova/globals.d.ts +443 -0
- package/dist/src/api/outpatient/alova/globals.d.ts +668 -0
- package/dist/src/api/outpatient/alova/implement/outpatient.d.ts +1 -1
- package/dist/src/api/outpatient/alova/index.js +1 -1
- package/dist/src/api/outpatient/outpatient.d.ts +1 -1
- package/dist/src/api/outpatient/outpatient.js +1 -1
- package/dist/src/api/patient/alova/globals.d.ts +1673 -0
- package/dist/src/api/patient/alova/implement/meta.d.ts +1 -1
- package/dist/src/api/patient/alova/implement/meta.js +58 -58
- package/dist/src/api/patient/alova/implement/patient.d.ts +1 -1
- package/dist/src/api/patient/alova/index.js +8 -6
- package/dist/src/api/patient/index.d.ts +1 -1
- package/dist/src/api/patient/index.js +36 -35
- package/dist/src/api/patient/meta.d.ts +1 -1
- package/dist/src/api/patient/meta.js +1 -1
- package/dist/src/api/patient/patient.d.ts +1 -1
- package/dist/src/api/patient/patient.js +1 -1
- package/dist/src/api/prescription/alova/globals.d.ts +951 -0
- package/dist/src/api/prescription/alova/index.js +1 -1
- package/dist/src/api/prescription/herbal.d.ts +1 -1
- package/dist/src/api/prescription/herbal.js +1 -1
- package/dist/src/api/prescription/prescription.d.ts +1 -1
- package/dist/src/api/prescription/prescription.js +1 -1
- package/dist/src/api/scientist/alova/globals.d.ts +430 -0
- package/dist/src/api/scientist/alova/index.js +1 -1
- package/dist/src/api/scientist/scientist.d.ts +1 -1
- package/dist/src/api/scientist/scientist.js +1 -1
- package/dist/src/env.d.ts +7 -0
- package/dist/src/pages/LoginPage.vue.d.ts +2 -0
- package/dist/src/util/s256.d.ts +2 -0
- package/package.json +2 -3
|
@@ -3,7 +3,7 @@ import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
|
3
3
|
import { createApis as r, mountApis as t, withConfigType as p } from "./createApis.js";
|
|
4
4
|
import { responded as i, onAuthRequired as a } from "../../config/alova/index.js";
|
|
5
5
|
import { getServiceEndpoint as m, ServiceType as n } from "../../config/index.js";
|
|
6
|
-
import "../../
|
|
6
|
+
import "../../core/core.js";
|
|
7
7
|
import "../../../../node_modules/pinyin/lib/esm/pinyin.js";
|
|
8
8
|
import "../../prescription/alova/index.js";
|
|
9
9
|
const s = e({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Patient } from '../patient/patient';
|
|
2
|
-
import { Page, Tag, NetworkObject, Sequence } from '../
|
|
2
|
+
import { Page, Tag, NetworkObject, Sequence } from '../core/core';
|
|
3
3
|
import { CheckState, PaymentState } from './alova/globals';
|
|
4
4
|
import { Metas } from '../patient/meta';
|
|
5
5
|
import { Prescription } from '../prescription/prescription';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Patient as S } from "../patient/patient.js";
|
|
2
|
-
import { NetworkObject as h, Sequence as m, Tag as y } from "../
|
|
2
|
+
import { NetworkObject as h, Sequence as m, Tag as y } from "../core/core.js";
|
|
3
3
|
import { Metas as n } from "../patient/meta.js";
|
|
4
4
|
import { Prescription as u } from "../prescription/prescription.js";
|
|
5
5
|
import { AlovaPrescription as g } from "../prescription/alova/implement/prescription.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnnotationState, TagState } from '
|
|
1
|
+
import { AnnotationState, TagState } from '../patient/alova/globals';
|
|
2
2
|
import { IBuilder } from 'builder-pattern';
|
|
3
3
|
export declare class Page<T> {
|
|
4
4
|
data: T[];
|
|
@@ -8,7 +8,12 @@ export declare class Page<T> {
|
|
|
8
8
|
pageCount: number;
|
|
9
9
|
isLastPage: boolean;
|
|
10
10
|
}
|
|
11
|
-
declare abstract class
|
|
11
|
+
export declare abstract class BaseObject {
|
|
12
|
+
static _default: typeof BaseObject;
|
|
13
|
+
static builder(): IBuilder<unknown>;
|
|
14
|
+
static default(): typeof BaseObject;
|
|
15
|
+
}
|
|
16
|
+
declare abstract class NetworkObject extends BaseObject {
|
|
12
17
|
static _default: typeof NetworkObject;
|
|
13
18
|
static builder(): IBuilder<unknown>;
|
|
14
19
|
static default(): typeof NetworkObject;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Builder as
|
|
2
|
-
class
|
|
1
|
+
import { Builder as n } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
2
|
+
class f {
|
|
3
3
|
data = [];
|
|
4
4
|
total = 0;
|
|
5
5
|
page = 0;
|
|
@@ -7,21 +7,30 @@ class d {
|
|
|
7
7
|
pageCount = 0;
|
|
8
8
|
isLastPage = !1;
|
|
9
9
|
}
|
|
10
|
-
class
|
|
10
|
+
class i {
|
|
11
|
+
static _default = i;
|
|
12
|
+
static builder() {
|
|
13
|
+
return n(this._default);
|
|
14
|
+
}
|
|
15
|
+
static default() {
|
|
16
|
+
return i;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
class a extends i {
|
|
11
20
|
static _default = a;
|
|
12
21
|
static builder() {
|
|
13
|
-
return
|
|
22
|
+
return n(this._default);
|
|
14
23
|
}
|
|
15
24
|
static default() {
|
|
16
25
|
return a;
|
|
17
26
|
}
|
|
18
27
|
}
|
|
19
|
-
class
|
|
28
|
+
class o extends a {
|
|
20
29
|
value = "";
|
|
21
30
|
actor = "";
|
|
22
31
|
timestamp = "";
|
|
23
32
|
static builder() {
|
|
24
|
-
return
|
|
33
|
+
return n(o);
|
|
25
34
|
}
|
|
26
35
|
constructor(t = "", e = "", s = "") {
|
|
27
36
|
super(), this.value = t, this.actor = e, this.timestamp = s;
|
|
@@ -37,12 +46,12 @@ class r extends a {
|
|
|
37
46
|
};
|
|
38
47
|
}
|
|
39
48
|
}
|
|
40
|
-
class
|
|
49
|
+
class r extends a {
|
|
41
50
|
static builder() {
|
|
42
|
-
return
|
|
51
|
+
return n(r);
|
|
43
52
|
}
|
|
44
53
|
static default() {
|
|
45
|
-
return
|
|
54
|
+
return r;
|
|
46
55
|
}
|
|
47
56
|
key = "";
|
|
48
57
|
annotations = [];
|
|
@@ -52,7 +61,7 @@ class n extends a {
|
|
|
52
61
|
async of(t) {
|
|
53
62
|
this.key = t.key;
|
|
54
63
|
for (const e of t.annotationsState)
|
|
55
|
-
this.annotations.push(await new
|
|
64
|
+
this.annotations.push(await new o().of(e));
|
|
56
65
|
return this;
|
|
57
66
|
}
|
|
58
67
|
state() {
|
|
@@ -70,9 +79,9 @@ class n extends a {
|
|
|
70
79
|
static getValueTagSet(t) {
|
|
71
80
|
const e = [];
|
|
72
81
|
return t.forEach((s) => {
|
|
73
|
-
const
|
|
82
|
+
const c = s.key, l = s.getLastAnnotation().value.slice(0, 10);
|
|
74
83
|
e.find(
|
|
75
|
-
(
|
|
84
|
+
(u) => u.key == c && u.getLastAnnotation().value.slice(0, 10) == l
|
|
76
85
|
) || e.push(s);
|
|
77
86
|
}), e;
|
|
78
87
|
}
|
|
@@ -80,7 +89,7 @@ class n extends a {
|
|
|
80
89
|
return this.key = t.key, this.annotations = t.annotations, this;
|
|
81
90
|
}
|
|
82
91
|
}
|
|
83
|
-
class
|
|
92
|
+
class p {
|
|
84
93
|
data = [];
|
|
85
94
|
current = {};
|
|
86
95
|
showed = !1;
|
|
@@ -101,9 +110,10 @@ class f {
|
|
|
101
110
|
}
|
|
102
111
|
}
|
|
103
112
|
export {
|
|
104
|
-
|
|
113
|
+
o as Annotation,
|
|
114
|
+
i as BaseObject,
|
|
105
115
|
a as NetworkObject,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
116
|
+
f as Page,
|
|
117
|
+
p as Sequence,
|
|
118
|
+
r as Tag
|
|
109
119
|
};
|
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
import { Alova, AlovaMethodCreateConfig, AlovaGenerics, Method } from 'alova';
|
|
2
|
+
import { $$userConfigMap, alovaInstance } from './index';
|
|
3
|
+
import { default as apiDefinitions } from './apiDefinitions';
|
|
4
|
+
type CollapsedAlova = typeof alovaInstance;
|
|
5
|
+
type UserMethodConfigMap = typeof $$userConfigMap;
|
|
6
|
+
|
|
7
|
+
type Alova2MethodConfig<Responded> =
|
|
8
|
+
CollapsedAlova extends Alova<
|
|
9
|
+
AlovaGenerics<
|
|
10
|
+
any,
|
|
11
|
+
any,
|
|
12
|
+
infer RequestConfig,
|
|
13
|
+
infer Response,
|
|
14
|
+
infer ResponseHeader,
|
|
15
|
+
infer L1Cache,
|
|
16
|
+
infer L2Cache,
|
|
17
|
+
infer SE
|
|
18
|
+
>
|
|
19
|
+
>
|
|
20
|
+
? Omit<
|
|
21
|
+
AlovaMethodCreateConfig<
|
|
22
|
+
AlovaGenerics<
|
|
23
|
+
Responded,
|
|
24
|
+
any,
|
|
25
|
+
RequestConfig,
|
|
26
|
+
Response,
|
|
27
|
+
ResponseHeader,
|
|
28
|
+
L1Cache,
|
|
29
|
+
L2Cache,
|
|
30
|
+
SE
|
|
31
|
+
>,
|
|
32
|
+
any,
|
|
33
|
+
Responded
|
|
34
|
+
>,
|
|
35
|
+
'params'
|
|
36
|
+
>
|
|
37
|
+
: never;
|
|
38
|
+
|
|
39
|
+
// Extract the return type of transform function that define in $$userConfigMap, if it not exists, use the default type.
|
|
40
|
+
type ExtractUserDefinedTransformed<
|
|
41
|
+
DefinitionKey extends keyof typeof apiDefinitions,
|
|
42
|
+
Default,
|
|
43
|
+
> = DefinitionKey extends keyof UserMethodConfigMap
|
|
44
|
+
? UserMethodConfigMap[DefinitionKey]['transform'] extends (...args: any[]) => any
|
|
45
|
+
? Awaited<ReturnType<UserMethodConfigMap[DefinitionKey]['transform']>>
|
|
46
|
+
: Default
|
|
47
|
+
: Default;
|
|
48
|
+
type Alova2Method<
|
|
49
|
+
Responded,
|
|
50
|
+
DefinitionKey extends keyof typeof apiDefinitions,
|
|
51
|
+
CurrentConfig extends Alova2MethodConfig<any>,
|
|
52
|
+
> =
|
|
53
|
+
CollapsedAlova extends Alova<
|
|
54
|
+
AlovaGenerics<
|
|
55
|
+
any,
|
|
56
|
+
any,
|
|
57
|
+
infer RequestConfig,
|
|
58
|
+
infer Response,
|
|
59
|
+
infer ResponseHeader,
|
|
60
|
+
infer L1Cache,
|
|
61
|
+
infer L2Cache,
|
|
62
|
+
infer SE
|
|
63
|
+
>
|
|
64
|
+
>
|
|
65
|
+
? Method<
|
|
66
|
+
AlovaGenerics<
|
|
67
|
+
CurrentConfig extends undefined
|
|
68
|
+
? ExtractUserDefinedTransformed<DefinitionKey, Responded>
|
|
69
|
+
: CurrentConfig['transform'] extends (...args: any[]) => any
|
|
70
|
+
? Awaited<ReturnType<CurrentConfig['transform']>>
|
|
71
|
+
: ExtractUserDefinedTransformed<DefinitionKey, Responded>,
|
|
72
|
+
any,
|
|
73
|
+
RequestConfig,
|
|
74
|
+
Response,
|
|
75
|
+
ResponseHeader,
|
|
76
|
+
L1Cache,
|
|
77
|
+
L2Cache,
|
|
78
|
+
SE
|
|
79
|
+
>
|
|
80
|
+
>
|
|
81
|
+
: never;
|
|
82
|
+
|
|
83
|
+
export interface DoctorState {
|
|
84
|
+
id?: string;
|
|
85
|
+
name?: string;
|
|
86
|
+
createdTimestamp?: string;
|
|
87
|
+
updatedTimestamp?: string;
|
|
88
|
+
gender?: string;
|
|
89
|
+
identityNumber?: string;
|
|
90
|
+
phoneNumber?: string;
|
|
91
|
+
birthdate?: string;
|
|
92
|
+
}
|
|
93
|
+
export interface QueryDoctorStateByExactMatchRequest {
|
|
94
|
+
id?: string[];
|
|
95
|
+
doctorId?: string[];
|
|
96
|
+
name?: string[];
|
|
97
|
+
phoneNumber?: string[];
|
|
98
|
+
gender?: string[];
|
|
99
|
+
identityNumber?: string[];
|
|
100
|
+
pageSize?: number;
|
|
101
|
+
page?: number;
|
|
102
|
+
startTime?: number;
|
|
103
|
+
endTime?: number;
|
|
104
|
+
sort?: string;
|
|
105
|
+
}
|
|
106
|
+
export interface DateDistribute {
|
|
107
|
+
date?: string;
|
|
108
|
+
count?: number;
|
|
109
|
+
}
|
|
110
|
+
export interface SortObject {
|
|
111
|
+
empty?: boolean;
|
|
112
|
+
sorted?: boolean;
|
|
113
|
+
unsorted?: boolean;
|
|
114
|
+
}
|
|
115
|
+
export interface PageableObject {
|
|
116
|
+
offset?: number;
|
|
117
|
+
sort?: SortObject;
|
|
118
|
+
pageSize?: number;
|
|
119
|
+
paged?: boolean;
|
|
120
|
+
pageNumber?: number;
|
|
121
|
+
unpaged?: boolean;
|
|
122
|
+
}
|
|
123
|
+
export interface PageDoctorState {
|
|
124
|
+
totalPages?: number;
|
|
125
|
+
totalElements?: number;
|
|
126
|
+
size?: number;
|
|
127
|
+
content?: DoctorState[];
|
|
128
|
+
number?: number;
|
|
129
|
+
sort?: SortObject;
|
|
130
|
+
first?: boolean;
|
|
131
|
+
last?: boolean;
|
|
132
|
+
numberOfElements?: number;
|
|
133
|
+
pageable?: PageableObject;
|
|
134
|
+
empty?: boolean;
|
|
135
|
+
}
|
|
136
|
+
declare global {
|
|
137
|
+
interface doctorApi {
|
|
138
|
+
doctorStateRestful: {
|
|
139
|
+
/**
|
|
140
|
+
* ---
|
|
141
|
+
*
|
|
142
|
+
* [GET]
|
|
143
|
+
*
|
|
144
|
+
* **path:** /医生/服务/{id}
|
|
145
|
+
*
|
|
146
|
+
* ---
|
|
147
|
+
*
|
|
148
|
+
* **Path Parameters**
|
|
149
|
+
* ```ts
|
|
150
|
+
* type PathParameters = {
|
|
151
|
+
* id: string
|
|
152
|
+
* }
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
155
|
+
* ---
|
|
156
|
+
*
|
|
157
|
+
* **Response**
|
|
158
|
+
* ```ts
|
|
159
|
+
* type Response = {
|
|
160
|
+
* id?: string
|
|
161
|
+
* name?: string
|
|
162
|
+
* createdTimestamp?: string
|
|
163
|
+
* updatedTimestamp?: string
|
|
164
|
+
* gender?: string
|
|
165
|
+
* identityNumber?: string
|
|
166
|
+
* phoneNumber?: string
|
|
167
|
+
* birthdate?: string
|
|
168
|
+
* }
|
|
169
|
+
* ```
|
|
170
|
+
*/
|
|
171
|
+
getDoctorState<
|
|
172
|
+
Config extends Alova2MethodConfig<DoctorState> & {
|
|
173
|
+
pathParams: {
|
|
174
|
+
id: string;
|
|
175
|
+
};
|
|
176
|
+
},
|
|
177
|
+
>(
|
|
178
|
+
config: Config,
|
|
179
|
+
): Alova2Method<DoctorState, 'doctorStateRestful.getDoctorState', Config>;
|
|
180
|
+
/**
|
|
181
|
+
* ---
|
|
182
|
+
*
|
|
183
|
+
* [PUT]
|
|
184
|
+
*
|
|
185
|
+
* **path:** /医生/服务/{id}
|
|
186
|
+
*
|
|
187
|
+
* ---
|
|
188
|
+
*
|
|
189
|
+
* **Path Parameters**
|
|
190
|
+
* ```ts
|
|
191
|
+
* type PathParameters = {
|
|
192
|
+
* id: string
|
|
193
|
+
* }
|
|
194
|
+
* ```
|
|
195
|
+
*
|
|
196
|
+
* ---
|
|
197
|
+
*
|
|
198
|
+
* **RequestBody**
|
|
199
|
+
* ```ts
|
|
200
|
+
* type RequestBody = {
|
|
201
|
+
* id?: string
|
|
202
|
+
* name?: string
|
|
203
|
+
* createdTimestamp?: string
|
|
204
|
+
* updatedTimestamp?: string
|
|
205
|
+
* gender?: string
|
|
206
|
+
* identityNumber?: string
|
|
207
|
+
* phoneNumber?: string
|
|
208
|
+
* birthdate?: string
|
|
209
|
+
* }
|
|
210
|
+
* ```
|
|
211
|
+
*
|
|
212
|
+
* ---
|
|
213
|
+
*
|
|
214
|
+
* **Response**
|
|
215
|
+
* ```ts
|
|
216
|
+
* type Response = {
|
|
217
|
+
* id?: string
|
|
218
|
+
* name?: string
|
|
219
|
+
* createdTimestamp?: string
|
|
220
|
+
* updatedTimestamp?: string
|
|
221
|
+
* gender?: string
|
|
222
|
+
* identityNumber?: string
|
|
223
|
+
* phoneNumber?: string
|
|
224
|
+
* birthdate?: string
|
|
225
|
+
* }
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
228
|
+
putDoctorState<
|
|
229
|
+
Config extends Alova2MethodConfig<DoctorState> & {
|
|
230
|
+
pathParams: {
|
|
231
|
+
id: string;
|
|
232
|
+
};
|
|
233
|
+
data: DoctorState;
|
|
234
|
+
},
|
|
235
|
+
>(
|
|
236
|
+
config: Config,
|
|
237
|
+
): Alova2Method<DoctorState, 'doctorStateRestful.putDoctorState', Config>;
|
|
238
|
+
/**
|
|
239
|
+
* ---
|
|
240
|
+
*
|
|
241
|
+
* [DELETE]
|
|
242
|
+
*
|
|
243
|
+
* **path:** /医生/服务/{id}
|
|
244
|
+
*
|
|
245
|
+
* ---
|
|
246
|
+
*
|
|
247
|
+
* **Path Parameters**
|
|
248
|
+
* ```ts
|
|
249
|
+
* type PathParameters = {
|
|
250
|
+
* id: string
|
|
251
|
+
* }
|
|
252
|
+
* ```
|
|
253
|
+
*
|
|
254
|
+
* ---
|
|
255
|
+
*
|
|
256
|
+
* **Response**
|
|
257
|
+
* ```ts
|
|
258
|
+
* type Response = null
|
|
259
|
+
* ```
|
|
260
|
+
*/
|
|
261
|
+
deleteDoctorState<
|
|
262
|
+
Config extends Alova2MethodConfig<null> & {
|
|
263
|
+
pathParams: {
|
|
264
|
+
id: string;
|
|
265
|
+
};
|
|
266
|
+
},
|
|
267
|
+
>(
|
|
268
|
+
config: Config,
|
|
269
|
+
): Alova2Method<null, 'doctorStateRestful.deleteDoctorState', Config>;
|
|
270
|
+
/**
|
|
271
|
+
* ---
|
|
272
|
+
*
|
|
273
|
+
* [GET]
|
|
274
|
+
*
|
|
275
|
+
* **path:** /医生/服务
|
|
276
|
+
*
|
|
277
|
+
* ---
|
|
278
|
+
*
|
|
279
|
+
* **Query Parameters**
|
|
280
|
+
* ```ts
|
|
281
|
+
* type QueryParameters = {
|
|
282
|
+
* id?: string
|
|
283
|
+
* name?: string
|
|
284
|
+
* phoneNumber?: string
|
|
285
|
+
* pageSize: number
|
|
286
|
+
* page: number
|
|
287
|
+
* }
|
|
288
|
+
* ```
|
|
289
|
+
*
|
|
290
|
+
* ---
|
|
291
|
+
*
|
|
292
|
+
* **Response**
|
|
293
|
+
* ```ts
|
|
294
|
+
* type Response = {
|
|
295
|
+
* totalPages?: number
|
|
296
|
+
* totalElements?: number
|
|
297
|
+
* size?: number
|
|
298
|
+
* // [items] start
|
|
299
|
+
* // [items] end
|
|
300
|
+
* content?: Array<{
|
|
301
|
+
* id?: string
|
|
302
|
+
* name?: string
|
|
303
|
+
* createdTimestamp?: string
|
|
304
|
+
* updatedTimestamp?: string
|
|
305
|
+
* gender?: string
|
|
306
|
+
* identityNumber?: string
|
|
307
|
+
* phoneNumber?: string
|
|
308
|
+
* birthdate?: string
|
|
309
|
+
* }>
|
|
310
|
+
* number?: number
|
|
311
|
+
* sort?: {
|
|
312
|
+
* empty?: boolean
|
|
313
|
+
* sorted?: boolean
|
|
314
|
+
* unsorted?: boolean
|
|
315
|
+
* }
|
|
316
|
+
* first?: boolean
|
|
317
|
+
* last?: boolean
|
|
318
|
+
* numberOfElements?: number
|
|
319
|
+
* pageable?: {
|
|
320
|
+
* offset?: number
|
|
321
|
+
* sort?: {
|
|
322
|
+
* empty?: boolean
|
|
323
|
+
* sorted?: boolean
|
|
324
|
+
* unsorted?: boolean
|
|
325
|
+
* }
|
|
326
|
+
* pageSize?: number
|
|
327
|
+
* paged?: boolean
|
|
328
|
+
* pageNumber?: number
|
|
329
|
+
* unpaged?: boolean
|
|
330
|
+
* }
|
|
331
|
+
* empty?: boolean
|
|
332
|
+
* }
|
|
333
|
+
* ```
|
|
334
|
+
*/
|
|
335
|
+
queryDoctorState<
|
|
336
|
+
Config extends Alova2MethodConfig<PageDoctorState> & {
|
|
337
|
+
params: {
|
|
338
|
+
id?: string;
|
|
339
|
+
name?: string;
|
|
340
|
+
phoneNumber?: string;
|
|
341
|
+
pageSize: number;
|
|
342
|
+
page: number;
|
|
343
|
+
};
|
|
344
|
+
},
|
|
345
|
+
>(
|
|
346
|
+
config: Config,
|
|
347
|
+
): Alova2Method<PageDoctorState, 'doctorStateRestful.queryDoctorState', Config>;
|
|
348
|
+
/**
|
|
349
|
+
* ---
|
|
350
|
+
*
|
|
351
|
+
* [POST]
|
|
352
|
+
*
|
|
353
|
+
* **path:** /医生/服务
|
|
354
|
+
*
|
|
355
|
+
* ---
|
|
356
|
+
*
|
|
357
|
+
* **RequestBody**
|
|
358
|
+
* ```ts
|
|
359
|
+
* type RequestBody = {
|
|
360
|
+
* id?: string
|
|
361
|
+
* name?: string
|
|
362
|
+
* createdTimestamp?: string
|
|
363
|
+
* updatedTimestamp?: string
|
|
364
|
+
* gender?: string
|
|
365
|
+
* identityNumber?: string
|
|
366
|
+
* phoneNumber?: string
|
|
367
|
+
* birthdate?: string
|
|
368
|
+
* }
|
|
369
|
+
* ```
|
|
370
|
+
*
|
|
371
|
+
* ---
|
|
372
|
+
*
|
|
373
|
+
* **Response**
|
|
374
|
+
* ```ts
|
|
375
|
+
* type Response = {
|
|
376
|
+
* id?: string
|
|
377
|
+
* name?: string
|
|
378
|
+
* createdTimestamp?: string
|
|
379
|
+
* updatedTimestamp?: string
|
|
380
|
+
* gender?: string
|
|
381
|
+
* identityNumber?: string
|
|
382
|
+
* phoneNumber?: string
|
|
383
|
+
* birthdate?: string
|
|
384
|
+
* }
|
|
385
|
+
* ```
|
|
386
|
+
*/
|
|
387
|
+
postDoctorState<
|
|
388
|
+
Config extends Alova2MethodConfig<DoctorState> & {
|
|
389
|
+
data: DoctorState;
|
|
390
|
+
},
|
|
391
|
+
>(
|
|
392
|
+
config: Config,
|
|
393
|
+
): Alova2Method<DoctorState, 'doctorStateRestful.postDoctorState', Config>;
|
|
394
|
+
/**
|
|
395
|
+
* ---
|
|
396
|
+
*
|
|
397
|
+
* [POST]
|
|
398
|
+
*
|
|
399
|
+
* **path:** /医生/服务/精确匹配
|
|
400
|
+
*
|
|
401
|
+
* ---
|
|
402
|
+
*
|
|
403
|
+
* **RequestBody**
|
|
404
|
+
* ```ts
|
|
405
|
+
* type RequestBody = {
|
|
406
|
+
* // [items] start
|
|
407
|
+
* // [items] end
|
|
408
|
+
* id?: string[]
|
|
409
|
+
* // [items] start
|
|
410
|
+
* // [items] end
|
|
411
|
+
* doctorId?: string[]
|
|
412
|
+
* // [items] start
|
|
413
|
+
* // [items] end
|
|
414
|
+
* name?: string[]
|
|
415
|
+
* // [items] start
|
|
416
|
+
* // [items] end
|
|
417
|
+
* phoneNumber?: string[]
|
|
418
|
+
* // [items] start
|
|
419
|
+
* // [items] end
|
|
420
|
+
* gender?: string[]
|
|
421
|
+
* // [items] start
|
|
422
|
+
* // [items] end
|
|
423
|
+
* identityNumber?: string[]
|
|
424
|
+
* pageSize?: number
|
|
425
|
+
* page?: number
|
|
426
|
+
* startTime?: number
|
|
427
|
+
* endTime?: number
|
|
428
|
+
* sort?: string
|
|
429
|
+
* }
|
|
430
|
+
* ```
|
|
431
|
+
*
|
|
432
|
+
* ---
|
|
433
|
+
*
|
|
434
|
+
* **Response**
|
|
435
|
+
* ```ts
|
|
436
|
+
* type Response = {
|
|
437
|
+
* totalPages?: number
|
|
438
|
+
* totalElements?: number
|
|
439
|
+
* size?: number
|
|
440
|
+
* // [items] start
|
|
441
|
+
* // [items] end
|
|
442
|
+
* content?: Array<{
|
|
443
|
+
* id?: string
|
|
444
|
+
* name?: string
|
|
445
|
+
* createdTimestamp?: string
|
|
446
|
+
* updatedTimestamp?: string
|
|
447
|
+
* gender?: string
|
|
448
|
+
* identityNumber?: string
|
|
449
|
+
* phoneNumber?: string
|
|
450
|
+
* birthdate?: string
|
|
451
|
+
* }>
|
|
452
|
+
* number?: number
|
|
453
|
+
* sort?: {
|
|
454
|
+
* empty?: boolean
|
|
455
|
+
* sorted?: boolean
|
|
456
|
+
* unsorted?: boolean
|
|
457
|
+
* }
|
|
458
|
+
* first?: boolean
|
|
459
|
+
* last?: boolean
|
|
460
|
+
* numberOfElements?: number
|
|
461
|
+
* pageable?: {
|
|
462
|
+
* offset?: number
|
|
463
|
+
* sort?: {
|
|
464
|
+
* empty?: boolean
|
|
465
|
+
* sorted?: boolean
|
|
466
|
+
* unsorted?: boolean
|
|
467
|
+
* }
|
|
468
|
+
* pageSize?: number
|
|
469
|
+
* paged?: boolean
|
|
470
|
+
* pageNumber?: number
|
|
471
|
+
* unpaged?: boolean
|
|
472
|
+
* }
|
|
473
|
+
* empty?: boolean
|
|
474
|
+
* }
|
|
475
|
+
* ```
|
|
476
|
+
*/
|
|
477
|
+
queryDoctorStateByExactMatch<
|
|
478
|
+
Config extends Alova2MethodConfig<PageDoctorState> & {
|
|
479
|
+
data: QueryDoctorStateByExactMatchRequest;
|
|
480
|
+
},
|
|
481
|
+
>(
|
|
482
|
+
config: Config,
|
|
483
|
+
): Alova2Method<PageDoctorState, 'doctorStateRestful.queryDoctorStateByExactMatch', Config>;
|
|
484
|
+
/**
|
|
485
|
+
* ---
|
|
486
|
+
*
|
|
487
|
+
* [GET]
|
|
488
|
+
*
|
|
489
|
+
* **path:** /医生/服务/统计/医生/日期
|
|
490
|
+
*
|
|
491
|
+
* ---
|
|
492
|
+
*
|
|
493
|
+
* **Response**
|
|
494
|
+
* ```ts
|
|
495
|
+
* type Response = Array<{
|
|
496
|
+
* date?: string
|
|
497
|
+
* count?: number
|
|
498
|
+
* }>
|
|
499
|
+
* ```
|
|
500
|
+
*/
|
|
501
|
+
datesOfDoctor<Config extends Alova2MethodConfig<DateDistribute[]>>(
|
|
502
|
+
config?: Config,
|
|
503
|
+
): Alova2Method<DateDistribute[], 'doctorStateRestful.datesOfDoctor', Config>;
|
|
504
|
+
/**
|
|
505
|
+
* ---
|
|
506
|
+
*
|
|
507
|
+
* [GET]
|
|
508
|
+
*
|
|
509
|
+
* **path:** /医生/服务/统计/医生/总数
|
|
510
|
+
*
|
|
511
|
+
* ---
|
|
512
|
+
*
|
|
513
|
+
* **Response**
|
|
514
|
+
* ```ts
|
|
515
|
+
* type Response = number
|
|
516
|
+
* ```
|
|
517
|
+
*/
|
|
518
|
+
totalOfDoctor<Config extends Alova2MethodConfig<number>>(
|
|
519
|
+
config?: Config,
|
|
520
|
+
): Alova2Method<number, 'doctorStateRestful.totalOfDoctor', Config>;
|
|
521
|
+
/**
|
|
522
|
+
* ---
|
|
523
|
+
*
|
|
524
|
+
* [GET]
|
|
525
|
+
*
|
|
526
|
+
* **path:** /医生/服务/统计/医生/今日
|
|
527
|
+
*
|
|
528
|
+
* ---
|
|
529
|
+
*
|
|
530
|
+
* **Response**
|
|
531
|
+
* ```ts
|
|
532
|
+
* type Response = number
|
|
533
|
+
* ```
|
|
534
|
+
*/
|
|
535
|
+
totalOfDoctorByToday<Config extends Alova2MethodConfig<number>>(
|
|
536
|
+
config?: Config,
|
|
537
|
+
): Alova2Method<number, 'doctorStateRestful.totalOfDoctorByToday', Config>;
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
var doctorApi: doctorApi;
|
|
542
|
+
}
|
|
@@ -3,7 +3,7 @@ import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
|
3
3
|
import { createApis as r, mountApis as t, withConfigType as p } from "./createApis.js";
|
|
4
4
|
import { responded as i, onAuthRequired as a } from "../../config/alova/index.js";
|
|
5
5
|
import { getServiceEndpoint as n, ServiceType as s } from "../../config/index.js";
|
|
6
|
-
import "../../
|
|
6
|
+
import "../../core/core.js";
|
|
7
7
|
const c = e({
|
|
8
8
|
baseURL: n(s.Doctor),
|
|
9
9
|
requestAdapter: o(),
|