web-core-tcm 0.0.23 → 0.0.24
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/package.json +41 -21
- package/.editorconfig +0 -7
- package/.github/workflows/test.yml +0 -29
- package/.prettierrc.json +0 -5
- package/.vscode/extensions.json +0 -15
- package/.vscode/settings.json +0 -9
- package/eslint.config.js +0 -83
- package/index.html +0 -24
- package/postcss.config.js +0 -29
- package/public/favicon.ico +0 -0
- package/public/icons/favicon-128x128.png +0 -0
- package/public/icons/favicon-16x16.png +0 -0
- package/public/icons/favicon-32x32.png +0 -0
- package/public/icons/favicon-96x96.png +0 -0
- package/quasar.config.ts +0 -220
- package/src/App.vue +0 -7
- package/src/api/algorithm/comprehensiveAlgorithm.ts +0 -20
- package/src/api/algorithm/index.ts +0 -50
- package/src/api/algorithm/inquiriesAlgorithm.ts +0 -19
- package/src/api/algorithm/inspectionsAlgorithm.ts +0 -11
- package/src/api/algorithm/lisemsAlgorithm.ts +0 -16
- package/src/api/algorithm/pulsationsAlgorithm.ts +0 -9
- package/src/api/authorization/alova/apiDefinitions.ts +0 -23
- package/src/api/authorization/alova/createApis.ts +0 -99
- package/src/api/authorization/alova/globals.d.ts +0 -373
- package/src/api/authorization/alova/implement/authorization.ts +0 -12
- package/src/api/authorization/alova/implement/index.ts +0 -1
- package/src/api/authorization/alova/index.ts +0 -23
- package/src/api/authorization/authorization.ts +0 -16
- package/src/api/authorization/index.ts +0 -2
- package/src/api/check/alova/apiDefinitions.ts +0 -30
- package/src/api/check/alova/createApis.ts +0 -99
- package/src/api/check/alova/globals.d.ts +0 -1248
- package/src/api/check/alova/implement/check.ts +0 -119
- package/src/api/check/alova/implement/index.ts +0 -1
- package/src/api/check/alova/index.ts +0 -23
- package/src/api/check/check.ts +0 -164
- package/src/api/check/index.ts +0 -2
- package/src/api/config/alova/index.ts +0 -72
- package/src/api/config/index.ts +0 -130
- package/src/api/device/device.js +0 -58
- package/src/api/doctor/alova/apiDefinitions.ts +0 -28
- package/src/api/doctor/alova/createApis.ts +0 -99
- package/src/api/doctor/alova/globals.d.ts +0 -550
- package/src/api/doctor/alova/implement/doctor.ts +0 -37
- package/src/api/doctor/alova/implement/index.ts +0 -1
- package/src/api/doctor/alova/index.ts +0 -23
- package/src/api/doctor/doctor.ts +0 -53
- package/src/api/doctor/index.ts +0 -2
- package/src/api/index.ts +0 -15
- package/src/api/metric/implement/index.ts +0 -1
- package/src/api/metric/implement/metric.ts +0 -98
- package/src/api/metric/index.ts +0 -2
- package/src/api/metric/metric.ts +0 -114
- package/src/api/oauth/alova/apiDefinitions.ts +0 -26
- package/src/api/oauth/alova/createApis.ts +0 -99
- package/src/api/oauth/alova/globals.d.ts +0 -451
- package/src/api/oauth/alova/implement/index.ts +0 -1
- package/src/api/oauth/alova/implement/oauth.ts +0 -19
- package/src/api/oauth/alova/index.ts +0 -22
- package/src/api/oauth/index.ts +0 -2
- package/src/api/oauth/oauth.ts +0 -15
- package/src/api/outpatient/alova/apiDefinitions.ts +0 -27
- package/src/api/outpatient/alova/createApis.ts +0 -99
- package/src/api/outpatient/alova/globals.d.ts +0 -676
- package/src/api/outpatient/alova/implement/index.ts +0 -1
- package/src/api/outpatient/alova/implement/outpatient.ts +0 -66
- package/src/api/outpatient/alova/index.ts +0 -23
- package/src/api/outpatient/index.ts +0 -2
- package/src/api/outpatient/outpatient.ts +0 -62
- package/src/api/patient/alova/apiDefinitions.ts +0 -41
- package/src/api/patient/alova/createApis.ts +0 -99
- package/src/api/patient/alova/globals.d.ts +0 -1677
- package/src/api/patient/alova/implement/index.ts +0 -2
- package/src/api/patient/alova/implement/meta.ts +0 -488
- package/src/api/patient/alova/implement/patient.ts +0 -77
- package/src/api/patient/alova/index.ts +0 -24
- package/src/api/patient/core.ts +0 -131
- package/src/api/patient/index.ts +0 -4
- package/src/api/patient/meta.ts +0 -466
- package/src/api/patient/patient.ts +0 -98
- package/src/api/prescription/alova/apiDefinitions.ts +0 -29
- package/src/api/prescription/alova/createApis.ts +0 -99
- package/src/api/prescription/alova/globals.d.ts +0 -959
- package/src/api/prescription/alova/implement/herbal.ts +0 -48
- package/src/api/prescription/alova/implement/index.ts +0 -2
- package/src/api/prescription/alova/implement/prescription.ts +0 -45
- package/src/api/prescription/alova/index.ts +0 -23
- package/src/api/prescription/herbal.ts +0 -44
- package/src/api/prescription/index.ts +0 -3
- package/src/api/prescription/prescription.ts +0 -68
- package/src/api/scientist/alova/apiDefinitions.ts +0 -27
- package/src/api/scientist/alova/createApis.ts +0 -99
- package/src/api/scientist/alova/globals.d.ts +0 -438
- package/src/api/scientist/alova/implement/index.ts +0 -1
- package/src/api/scientist/alova/implement/scientist.ts +0 -29
- package/src/api/scientist/alova/index.ts +0 -23
- package/src/api/scientist/index.ts +0 -2
- package/src/api/scientist/scientist.ts +0 -49
- package/src/assets/quasar-logo-vertical.svg +0 -15
- package/src/boot/.gitkeep +0 -0
- package/src/components/ExampleComponent.vue +0 -37
- package/src/components/models.ts +0 -8
- package/src/css/app.scss +0 -1
- package/src/css/quasar.variables.scss +0 -25
- package/src/env.d.ts +0 -7
- package/src/index.ts +0 -4
- package/src/layouts/UserLayout.vue +0 -106
- package/src/pages/LoginPage.vue +0 -32
- package/src/proto/Images.proto +0 -7
- package/src/proto/WaveMap.proto +0 -10
- package/src/proto/index.ts +0 -2
- package/src/proto/types/Images_pb.ts +0 -48
- package/src/proto/types/WaveMap_pb.ts +0 -59
- package/src/router/index.ts +0 -37
- package/src/router/routes.ts +0 -14
- package/src/util/RichTextUtil.ts +0 -5
- package/src/util/datetime.ts +0 -43
- package/src/util/export.ts +0 -46
- package/src/util/helper.ts +0 -159
- package/src/util/image.ts +0 -28
- package/src/util/number.ts +0 -146
- package/src/util/s256.js +0 -30
- package/src/util/secret.ts +0 -60
- package/src/util/string.ts +0 -121
- package/tsconfig.json +0 -3
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* OpenAPI definition - version v0
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* OpenAPI version: 3.1.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This file is auto generated by the alova's vscode plugin.
|
|
12
|
-
*
|
|
13
|
-
* https://alova.js.org/devtools/vscode
|
|
14
|
-
*
|
|
15
|
-
* **Do not edit the file manually.**
|
|
16
|
-
*/
|
|
17
|
-
import type { Alova, MethodType, AlovaGenerics, AlovaMethodCreateConfig } from 'alova';
|
|
18
|
-
import { Method } from 'alova';
|
|
19
|
-
import apiDefinitions from './apiDefinitions';
|
|
20
|
-
|
|
21
|
-
const cache = Object.create(null);
|
|
22
|
-
const createFunctionalProxy = (array: (string | symbol)[], alovaInstance: Alova<AlovaGenerics>, configMap: any) => {
|
|
23
|
-
const apiPathKey = array.join('.') as keyof typeof apiDefinitions;
|
|
24
|
-
if (cache[apiPathKey]) {
|
|
25
|
-
return cache[apiPathKey];
|
|
26
|
-
}
|
|
27
|
-
// create a new proxy instance
|
|
28
|
-
const proxy = new Proxy(function () {}, {
|
|
29
|
-
get(_, property) {
|
|
30
|
-
// record the target property, so that it can get the completed accessing paths
|
|
31
|
-
const newArray = [...array, property];
|
|
32
|
-
// always return a new proxy to continue recording accessing paths.
|
|
33
|
-
return createFunctionalProxy(newArray, alovaInstance, configMap);
|
|
34
|
-
},
|
|
35
|
-
apply(_, __, [config]) {
|
|
36
|
-
const apiItem = apiDefinitions[apiPathKey];
|
|
37
|
-
if (!apiItem) {
|
|
38
|
-
throw new Error(`the api path of \`${apiPathKey}\` is not found`);
|
|
39
|
-
}
|
|
40
|
-
const mergedConfig = {
|
|
41
|
-
...configMap[apiPathKey],
|
|
42
|
-
...config
|
|
43
|
-
};
|
|
44
|
-
const [method, url] = apiItem;
|
|
45
|
-
const pathParams = mergedConfig.pathParams;
|
|
46
|
-
const urlReplaced = url!.replace(/\{([^}]+)\}/g, (_, key) => {
|
|
47
|
-
const pathParam = pathParams[key];
|
|
48
|
-
return pathParam;
|
|
49
|
-
});
|
|
50
|
-
delete mergedConfig.pathParams;
|
|
51
|
-
let data = mergedConfig.data;
|
|
52
|
-
if (Object.prototype.toString.call(data) === '[object Object]' && typeof FormData !== 'undefined') {
|
|
53
|
-
let hasBlobData = false;
|
|
54
|
-
const formData = new FormData();
|
|
55
|
-
for (const key in data) {
|
|
56
|
-
formData.append(key, data[key]);
|
|
57
|
-
if (data[key] instanceof Blob) {
|
|
58
|
-
hasBlobData = true;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
data = hasBlobData ? formData : data;
|
|
62
|
-
}
|
|
63
|
-
return new Method(method!.toUpperCase() as MethodType, alovaInstance, urlReplaced, mergedConfig, data);
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
cache[apiPathKey] = proxy;
|
|
67
|
-
return proxy;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export const createApis = (alovaInstance: Alova<AlovaGenerics>, configMap: any) => {
|
|
71
|
-
const Apis = new Proxy({} as doctorApi, {
|
|
72
|
-
get(_, property) {
|
|
73
|
-
return createFunctionalProxy([property], alovaInstance, configMap);
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
return Apis;
|
|
77
|
-
};
|
|
78
|
-
export const mountApis = (Apis: doctorApi) => {
|
|
79
|
-
// define global variable `Apis`
|
|
80
|
-
(globalThis as any).doctorApi = Apis;
|
|
81
|
-
};
|
|
82
|
-
type MethodConfig<T> = AlovaMethodCreateConfig<
|
|
83
|
-
(typeof import('./index'))['alovaInstance'] extends Alova<infer AG> ? AG : any,
|
|
84
|
-
any,
|
|
85
|
-
T
|
|
86
|
-
>;
|
|
87
|
-
type APISofParameters<Tag extends string, Url extends string> = Tag extends keyof doctorApi
|
|
88
|
-
? Url extends keyof doctorApi[Tag]
|
|
89
|
-
? doctorApi[Tag][Url] extends (...args: any) => any
|
|
90
|
-
? Parameters<doctorApi[Tag][Url]>
|
|
91
|
-
: any
|
|
92
|
-
: any
|
|
93
|
-
: any;
|
|
94
|
-
type MethodsConfigMap = {
|
|
95
|
-
[P in keyof typeof import('./apiDefinitions').default]?: MethodConfig<
|
|
96
|
-
P extends `${infer Tag}.${infer Url}` ? Parameters<NonNullable<APISofParameters<Tag, Url>[0]>['transform']>[0] : any
|
|
97
|
-
>;
|
|
98
|
-
};
|
|
99
|
-
export const withConfigType = <Config extends MethodsConfigMap>(config: Config) => config;
|
|
@@ -1,550 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* OpenAPI definition - version v0
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* OpenAPI version: 3.1.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This file is auto generated by the alova's vscode plugin.
|
|
12
|
-
*
|
|
13
|
-
* https://alova.js.org/devtools/vscode
|
|
14
|
-
*
|
|
15
|
-
* **Do not edit the file manually.**
|
|
16
|
-
*/
|
|
17
|
-
import type { Alova, AlovaMethodCreateConfig, AlovaGenerics, Method } from 'alova';
|
|
18
|
-
import type { $$userConfigMap, alovaInstance } from './index';
|
|
19
|
-
import type apiDefinitions from './apiDefinitions';
|
|
20
|
-
|
|
21
|
-
type CollapsedAlova = typeof alovaInstance;
|
|
22
|
-
type UserMethodConfigMap = typeof $$userConfigMap;
|
|
23
|
-
|
|
24
|
-
type Alova2MethodConfig<Responded> =
|
|
25
|
-
CollapsedAlova extends Alova<
|
|
26
|
-
AlovaGenerics<
|
|
27
|
-
any,
|
|
28
|
-
any,
|
|
29
|
-
infer RequestConfig,
|
|
30
|
-
infer Response,
|
|
31
|
-
infer ResponseHeader,
|
|
32
|
-
infer L1Cache,
|
|
33
|
-
infer L2Cache,
|
|
34
|
-
infer SE
|
|
35
|
-
>
|
|
36
|
-
>
|
|
37
|
-
? Omit<
|
|
38
|
-
AlovaMethodCreateConfig<
|
|
39
|
-
AlovaGenerics<Responded, any, RequestConfig, Response, ResponseHeader, L1Cache, L2Cache, SE>,
|
|
40
|
-
any,
|
|
41
|
-
Responded
|
|
42
|
-
>,
|
|
43
|
-
'params'
|
|
44
|
-
>
|
|
45
|
-
: never;
|
|
46
|
-
|
|
47
|
-
// Extract the return type of transform function that define in $$userConfigMap, if it not exists, use the default type.
|
|
48
|
-
type ExtractUserDefinedTransformed<
|
|
49
|
-
DefinitionKey extends keyof typeof apiDefinitions,
|
|
50
|
-
Default
|
|
51
|
-
> = DefinitionKey extends keyof UserMethodConfigMap
|
|
52
|
-
? UserMethodConfigMap[DefinitionKey]['transform'] extends (...args: any[]) => any
|
|
53
|
-
? Awaited<ReturnType<UserMethodConfigMap[DefinitionKey]['transform']>>
|
|
54
|
-
: Default
|
|
55
|
-
: Default;
|
|
56
|
-
type Alova2Method<
|
|
57
|
-
Responded,
|
|
58
|
-
DefinitionKey extends keyof typeof apiDefinitions,
|
|
59
|
-
CurrentConfig extends Alova2MethodConfig<any>
|
|
60
|
-
> =
|
|
61
|
-
CollapsedAlova extends Alova<
|
|
62
|
-
AlovaGenerics<
|
|
63
|
-
any,
|
|
64
|
-
any,
|
|
65
|
-
infer RequestConfig,
|
|
66
|
-
infer Response,
|
|
67
|
-
infer ResponseHeader,
|
|
68
|
-
infer L1Cache,
|
|
69
|
-
infer L2Cache,
|
|
70
|
-
infer SE
|
|
71
|
-
>
|
|
72
|
-
>
|
|
73
|
-
? Method<
|
|
74
|
-
AlovaGenerics<
|
|
75
|
-
CurrentConfig extends undefined
|
|
76
|
-
? ExtractUserDefinedTransformed<DefinitionKey, Responded>
|
|
77
|
-
: CurrentConfig['transform'] extends (...args: any[]) => any
|
|
78
|
-
? Awaited<ReturnType<CurrentConfig['transform']>>
|
|
79
|
-
: ExtractUserDefinedTransformed<DefinitionKey, Responded>,
|
|
80
|
-
any,
|
|
81
|
-
RequestConfig,
|
|
82
|
-
Response,
|
|
83
|
-
ResponseHeader,
|
|
84
|
-
L1Cache,
|
|
85
|
-
L2Cache,
|
|
86
|
-
SE
|
|
87
|
-
>
|
|
88
|
-
>
|
|
89
|
-
: never;
|
|
90
|
-
|
|
91
|
-
export interface DoctorState {
|
|
92
|
-
id?: string;
|
|
93
|
-
name?: string;
|
|
94
|
-
createdTimestamp?: string;
|
|
95
|
-
updatedTimestamp?: string;
|
|
96
|
-
gender?: string;
|
|
97
|
-
identityNumber?: string;
|
|
98
|
-
phoneNumber?: string;
|
|
99
|
-
birthdate?: string;
|
|
100
|
-
}
|
|
101
|
-
export interface QueryDoctorStateByExactMatchRequest {
|
|
102
|
-
id?: string[];
|
|
103
|
-
doctorId?: string[];
|
|
104
|
-
name?: string[];
|
|
105
|
-
phoneNumber?: string[];
|
|
106
|
-
gender?: string[];
|
|
107
|
-
identityNumber?: string[];
|
|
108
|
-
pageSize?: number;
|
|
109
|
-
page?: number;
|
|
110
|
-
startTime?: number;
|
|
111
|
-
endTime?: number;
|
|
112
|
-
sort?: string;
|
|
113
|
-
}
|
|
114
|
-
export interface DateDistribute {
|
|
115
|
-
date?: string;
|
|
116
|
-
count?: number;
|
|
117
|
-
}
|
|
118
|
-
export interface SortObject {
|
|
119
|
-
empty?: boolean;
|
|
120
|
-
sorted?: boolean;
|
|
121
|
-
unsorted?: boolean;
|
|
122
|
-
}
|
|
123
|
-
export interface PageableObject {
|
|
124
|
-
offset?: number;
|
|
125
|
-
sort?: SortObject;
|
|
126
|
-
pageSize?: number;
|
|
127
|
-
paged?: boolean;
|
|
128
|
-
pageNumber?: number;
|
|
129
|
-
unpaged?: boolean;
|
|
130
|
-
}
|
|
131
|
-
export interface PageDoctorState {
|
|
132
|
-
totalPages?: number;
|
|
133
|
-
totalElements?: number;
|
|
134
|
-
size?: number;
|
|
135
|
-
content?: DoctorState[];
|
|
136
|
-
number?: number;
|
|
137
|
-
sort?: SortObject;
|
|
138
|
-
first?: boolean;
|
|
139
|
-
last?: boolean;
|
|
140
|
-
numberOfElements?: number;
|
|
141
|
-
pageable?: PageableObject;
|
|
142
|
-
empty?: boolean;
|
|
143
|
-
}
|
|
144
|
-
declare global {
|
|
145
|
-
interface doctorApi {
|
|
146
|
-
doctorStateRestful: {
|
|
147
|
-
/**
|
|
148
|
-
* ---
|
|
149
|
-
*
|
|
150
|
-
* [GET]
|
|
151
|
-
*
|
|
152
|
-
* **path:** /医生/服务/{id}
|
|
153
|
-
*
|
|
154
|
-
* ---
|
|
155
|
-
*
|
|
156
|
-
* **Path Parameters**
|
|
157
|
-
* ```ts
|
|
158
|
-
* type PathParameters = {
|
|
159
|
-
* id: string
|
|
160
|
-
* }
|
|
161
|
-
* ```
|
|
162
|
-
*
|
|
163
|
-
* ---
|
|
164
|
-
*
|
|
165
|
-
* **Response**
|
|
166
|
-
* ```ts
|
|
167
|
-
* type Response = {
|
|
168
|
-
* id?: string
|
|
169
|
-
* name?: string
|
|
170
|
-
* createdTimestamp?: string
|
|
171
|
-
* updatedTimestamp?: string
|
|
172
|
-
* gender?: string
|
|
173
|
-
* identityNumber?: string
|
|
174
|
-
* phoneNumber?: string
|
|
175
|
-
* birthdate?: string
|
|
176
|
-
* }
|
|
177
|
-
* ```
|
|
178
|
-
*/
|
|
179
|
-
getDoctorState<
|
|
180
|
-
Config extends Alova2MethodConfig<DoctorState> & {
|
|
181
|
-
pathParams: {
|
|
182
|
-
id: string;
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
>(
|
|
186
|
-
config: Config
|
|
187
|
-
): Alova2Method<DoctorState, 'doctorStateRestful.getDoctorState', Config>;
|
|
188
|
-
/**
|
|
189
|
-
* ---
|
|
190
|
-
*
|
|
191
|
-
* [PUT]
|
|
192
|
-
*
|
|
193
|
-
* **path:** /医生/服务/{id}
|
|
194
|
-
*
|
|
195
|
-
* ---
|
|
196
|
-
*
|
|
197
|
-
* **Path Parameters**
|
|
198
|
-
* ```ts
|
|
199
|
-
* type PathParameters = {
|
|
200
|
-
* id: string
|
|
201
|
-
* }
|
|
202
|
-
* ```
|
|
203
|
-
*
|
|
204
|
-
* ---
|
|
205
|
-
*
|
|
206
|
-
* **RequestBody**
|
|
207
|
-
* ```ts
|
|
208
|
-
* type RequestBody = {
|
|
209
|
-
* id?: string
|
|
210
|
-
* name?: string
|
|
211
|
-
* createdTimestamp?: string
|
|
212
|
-
* updatedTimestamp?: string
|
|
213
|
-
* gender?: string
|
|
214
|
-
* identityNumber?: string
|
|
215
|
-
* phoneNumber?: string
|
|
216
|
-
* birthdate?: string
|
|
217
|
-
* }
|
|
218
|
-
* ```
|
|
219
|
-
*
|
|
220
|
-
* ---
|
|
221
|
-
*
|
|
222
|
-
* **Response**
|
|
223
|
-
* ```ts
|
|
224
|
-
* type Response = {
|
|
225
|
-
* id?: string
|
|
226
|
-
* name?: string
|
|
227
|
-
* createdTimestamp?: string
|
|
228
|
-
* updatedTimestamp?: string
|
|
229
|
-
* gender?: string
|
|
230
|
-
* identityNumber?: string
|
|
231
|
-
* phoneNumber?: string
|
|
232
|
-
* birthdate?: string
|
|
233
|
-
* }
|
|
234
|
-
* ```
|
|
235
|
-
*/
|
|
236
|
-
putDoctorState<
|
|
237
|
-
Config extends Alova2MethodConfig<DoctorState> & {
|
|
238
|
-
pathParams: {
|
|
239
|
-
id: string;
|
|
240
|
-
};
|
|
241
|
-
data: DoctorState;
|
|
242
|
-
}
|
|
243
|
-
>(
|
|
244
|
-
config: Config
|
|
245
|
-
): Alova2Method<DoctorState, 'doctorStateRestful.putDoctorState', Config>;
|
|
246
|
-
/**
|
|
247
|
-
* ---
|
|
248
|
-
*
|
|
249
|
-
* [DELETE]
|
|
250
|
-
*
|
|
251
|
-
* **path:** /医生/服务/{id}
|
|
252
|
-
*
|
|
253
|
-
* ---
|
|
254
|
-
*
|
|
255
|
-
* **Path Parameters**
|
|
256
|
-
* ```ts
|
|
257
|
-
* type PathParameters = {
|
|
258
|
-
* id: string
|
|
259
|
-
* }
|
|
260
|
-
* ```
|
|
261
|
-
*
|
|
262
|
-
* ---
|
|
263
|
-
*
|
|
264
|
-
* **Response**
|
|
265
|
-
* ```ts
|
|
266
|
-
* type Response = null
|
|
267
|
-
* ```
|
|
268
|
-
*/
|
|
269
|
-
deleteDoctorState<
|
|
270
|
-
Config extends Alova2MethodConfig<null> & {
|
|
271
|
-
pathParams: {
|
|
272
|
-
id: string;
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
>(
|
|
276
|
-
config: Config
|
|
277
|
-
): Alova2Method<null, 'doctorStateRestful.deleteDoctorState', Config>;
|
|
278
|
-
/**
|
|
279
|
-
* ---
|
|
280
|
-
*
|
|
281
|
-
* [GET]
|
|
282
|
-
*
|
|
283
|
-
* **path:** /医生/服务
|
|
284
|
-
*
|
|
285
|
-
* ---
|
|
286
|
-
*
|
|
287
|
-
* **Query Parameters**
|
|
288
|
-
* ```ts
|
|
289
|
-
* type QueryParameters = {
|
|
290
|
-
* id?: string
|
|
291
|
-
* name?: string
|
|
292
|
-
* phoneNumber?: string
|
|
293
|
-
* pageSize: number
|
|
294
|
-
* page: number
|
|
295
|
-
* }
|
|
296
|
-
* ```
|
|
297
|
-
*
|
|
298
|
-
* ---
|
|
299
|
-
*
|
|
300
|
-
* **Response**
|
|
301
|
-
* ```ts
|
|
302
|
-
* type Response = {
|
|
303
|
-
* totalPages?: number
|
|
304
|
-
* totalElements?: number
|
|
305
|
-
* size?: number
|
|
306
|
-
* // [items] start
|
|
307
|
-
* // [items] end
|
|
308
|
-
* content?: Array<{
|
|
309
|
-
* id?: string
|
|
310
|
-
* name?: string
|
|
311
|
-
* createdTimestamp?: string
|
|
312
|
-
* updatedTimestamp?: string
|
|
313
|
-
* gender?: string
|
|
314
|
-
* identityNumber?: string
|
|
315
|
-
* phoneNumber?: string
|
|
316
|
-
* birthdate?: string
|
|
317
|
-
* }>
|
|
318
|
-
* number?: number
|
|
319
|
-
* sort?: {
|
|
320
|
-
* empty?: boolean
|
|
321
|
-
* sorted?: boolean
|
|
322
|
-
* unsorted?: boolean
|
|
323
|
-
* }
|
|
324
|
-
* first?: boolean
|
|
325
|
-
* last?: boolean
|
|
326
|
-
* numberOfElements?: number
|
|
327
|
-
* pageable?: {
|
|
328
|
-
* offset?: number
|
|
329
|
-
* sort?: {
|
|
330
|
-
* empty?: boolean
|
|
331
|
-
* sorted?: boolean
|
|
332
|
-
* unsorted?: boolean
|
|
333
|
-
* }
|
|
334
|
-
* pageSize?: number
|
|
335
|
-
* paged?: boolean
|
|
336
|
-
* pageNumber?: number
|
|
337
|
-
* unpaged?: boolean
|
|
338
|
-
* }
|
|
339
|
-
* empty?: boolean
|
|
340
|
-
* }
|
|
341
|
-
* ```
|
|
342
|
-
*/
|
|
343
|
-
queryDoctorState<
|
|
344
|
-
Config extends Alova2MethodConfig<PageDoctorState> & {
|
|
345
|
-
params: {
|
|
346
|
-
id?: string;
|
|
347
|
-
name?: string;
|
|
348
|
-
phoneNumber?: string;
|
|
349
|
-
pageSize: number;
|
|
350
|
-
page: number;
|
|
351
|
-
};
|
|
352
|
-
}
|
|
353
|
-
>(
|
|
354
|
-
config: Config
|
|
355
|
-
): Alova2Method<PageDoctorState, 'doctorStateRestful.queryDoctorState', Config>;
|
|
356
|
-
/**
|
|
357
|
-
* ---
|
|
358
|
-
*
|
|
359
|
-
* [POST]
|
|
360
|
-
*
|
|
361
|
-
* **path:** /医生/服务
|
|
362
|
-
*
|
|
363
|
-
* ---
|
|
364
|
-
*
|
|
365
|
-
* **RequestBody**
|
|
366
|
-
* ```ts
|
|
367
|
-
* type RequestBody = {
|
|
368
|
-
* id?: string
|
|
369
|
-
* name?: string
|
|
370
|
-
* createdTimestamp?: string
|
|
371
|
-
* updatedTimestamp?: string
|
|
372
|
-
* gender?: string
|
|
373
|
-
* identityNumber?: string
|
|
374
|
-
* phoneNumber?: string
|
|
375
|
-
* birthdate?: string
|
|
376
|
-
* }
|
|
377
|
-
* ```
|
|
378
|
-
*
|
|
379
|
-
* ---
|
|
380
|
-
*
|
|
381
|
-
* **Response**
|
|
382
|
-
* ```ts
|
|
383
|
-
* type Response = {
|
|
384
|
-
* id?: string
|
|
385
|
-
* name?: string
|
|
386
|
-
* createdTimestamp?: string
|
|
387
|
-
* updatedTimestamp?: string
|
|
388
|
-
* gender?: string
|
|
389
|
-
* identityNumber?: string
|
|
390
|
-
* phoneNumber?: string
|
|
391
|
-
* birthdate?: string
|
|
392
|
-
* }
|
|
393
|
-
* ```
|
|
394
|
-
*/
|
|
395
|
-
postDoctorState<
|
|
396
|
-
Config extends Alova2MethodConfig<DoctorState> & {
|
|
397
|
-
data: DoctorState;
|
|
398
|
-
}
|
|
399
|
-
>(
|
|
400
|
-
config: Config
|
|
401
|
-
): Alova2Method<DoctorState, 'doctorStateRestful.postDoctorState', Config>;
|
|
402
|
-
/**
|
|
403
|
-
* ---
|
|
404
|
-
*
|
|
405
|
-
* [POST]
|
|
406
|
-
*
|
|
407
|
-
* **path:** /医生/服务/精确匹配
|
|
408
|
-
*
|
|
409
|
-
* ---
|
|
410
|
-
*
|
|
411
|
-
* **RequestBody**
|
|
412
|
-
* ```ts
|
|
413
|
-
* type RequestBody = {
|
|
414
|
-
* // [items] start
|
|
415
|
-
* // [items] end
|
|
416
|
-
* id?: string[]
|
|
417
|
-
* // [items] start
|
|
418
|
-
* // [items] end
|
|
419
|
-
* doctorId?: string[]
|
|
420
|
-
* // [items] start
|
|
421
|
-
* // [items] end
|
|
422
|
-
* name?: string[]
|
|
423
|
-
* // [items] start
|
|
424
|
-
* // [items] end
|
|
425
|
-
* phoneNumber?: string[]
|
|
426
|
-
* // [items] start
|
|
427
|
-
* // [items] end
|
|
428
|
-
* gender?: string[]
|
|
429
|
-
* // [items] start
|
|
430
|
-
* // [items] end
|
|
431
|
-
* identityNumber?: string[]
|
|
432
|
-
* pageSize?: number
|
|
433
|
-
* page?: number
|
|
434
|
-
* startTime?: number
|
|
435
|
-
* endTime?: number
|
|
436
|
-
* sort?: string
|
|
437
|
-
* }
|
|
438
|
-
* ```
|
|
439
|
-
*
|
|
440
|
-
* ---
|
|
441
|
-
*
|
|
442
|
-
* **Response**
|
|
443
|
-
* ```ts
|
|
444
|
-
* type Response = {
|
|
445
|
-
* totalPages?: number
|
|
446
|
-
* totalElements?: number
|
|
447
|
-
* size?: number
|
|
448
|
-
* // [items] start
|
|
449
|
-
* // [items] end
|
|
450
|
-
* content?: Array<{
|
|
451
|
-
* id?: string
|
|
452
|
-
* name?: string
|
|
453
|
-
* createdTimestamp?: string
|
|
454
|
-
* updatedTimestamp?: string
|
|
455
|
-
* gender?: string
|
|
456
|
-
* identityNumber?: string
|
|
457
|
-
* phoneNumber?: string
|
|
458
|
-
* birthdate?: string
|
|
459
|
-
* }>
|
|
460
|
-
* number?: number
|
|
461
|
-
* sort?: {
|
|
462
|
-
* empty?: boolean
|
|
463
|
-
* sorted?: boolean
|
|
464
|
-
* unsorted?: boolean
|
|
465
|
-
* }
|
|
466
|
-
* first?: boolean
|
|
467
|
-
* last?: boolean
|
|
468
|
-
* numberOfElements?: number
|
|
469
|
-
* pageable?: {
|
|
470
|
-
* offset?: number
|
|
471
|
-
* sort?: {
|
|
472
|
-
* empty?: boolean
|
|
473
|
-
* sorted?: boolean
|
|
474
|
-
* unsorted?: boolean
|
|
475
|
-
* }
|
|
476
|
-
* pageSize?: number
|
|
477
|
-
* paged?: boolean
|
|
478
|
-
* pageNumber?: number
|
|
479
|
-
* unpaged?: boolean
|
|
480
|
-
* }
|
|
481
|
-
* empty?: boolean
|
|
482
|
-
* }
|
|
483
|
-
* ```
|
|
484
|
-
*/
|
|
485
|
-
queryDoctorStateByExactMatch<
|
|
486
|
-
Config extends Alova2MethodConfig<PageDoctorState> & {
|
|
487
|
-
data: QueryDoctorStateByExactMatchRequest;
|
|
488
|
-
}
|
|
489
|
-
>(
|
|
490
|
-
config: Config
|
|
491
|
-
): Alova2Method<PageDoctorState, 'doctorStateRestful.queryDoctorStateByExactMatch', Config>;
|
|
492
|
-
/**
|
|
493
|
-
* ---
|
|
494
|
-
*
|
|
495
|
-
* [GET]
|
|
496
|
-
*
|
|
497
|
-
* **path:** /医生/服务/统计/医生/日期
|
|
498
|
-
*
|
|
499
|
-
* ---
|
|
500
|
-
*
|
|
501
|
-
* **Response**
|
|
502
|
-
* ```ts
|
|
503
|
-
* type Response = Array<{
|
|
504
|
-
* date?: string
|
|
505
|
-
* count?: number
|
|
506
|
-
* }>
|
|
507
|
-
* ```
|
|
508
|
-
*/
|
|
509
|
-
datesOfDoctor<Config extends Alova2MethodConfig<DateDistribute[]>>(
|
|
510
|
-
config?: Config
|
|
511
|
-
): Alova2Method<DateDistribute[], 'doctorStateRestful.datesOfDoctor', Config>;
|
|
512
|
-
/**
|
|
513
|
-
* ---
|
|
514
|
-
*
|
|
515
|
-
* [GET]
|
|
516
|
-
*
|
|
517
|
-
* **path:** /医生/服务/统计/医生/总数
|
|
518
|
-
*
|
|
519
|
-
* ---
|
|
520
|
-
*
|
|
521
|
-
* **Response**
|
|
522
|
-
* ```ts
|
|
523
|
-
* type Response = number
|
|
524
|
-
* ```
|
|
525
|
-
*/
|
|
526
|
-
totalOfDoctor<Config extends Alova2MethodConfig<number>>(
|
|
527
|
-
config?: Config
|
|
528
|
-
): Alova2Method<number, 'doctorStateRestful.totalOfDoctor', Config>;
|
|
529
|
-
/**
|
|
530
|
-
* ---
|
|
531
|
-
*
|
|
532
|
-
* [GET]
|
|
533
|
-
*
|
|
534
|
-
* **path:** /医生/服务/统计/医生/今日
|
|
535
|
-
*
|
|
536
|
-
* ---
|
|
537
|
-
*
|
|
538
|
-
* **Response**
|
|
539
|
-
* ```ts
|
|
540
|
-
* type Response = number
|
|
541
|
-
* ```
|
|
542
|
-
*/
|
|
543
|
-
totalOfDoctorByToday<Config extends Alova2MethodConfig<number>>(
|
|
544
|
-
config?: Config
|
|
545
|
-
): Alova2Method<number, 'doctorStateRestful.totalOfDoctorByToday', Config>;
|
|
546
|
-
};
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
var doctorApi: doctorApi;
|
|
550
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Doctor } from '@core/api/doctor/doctor';
|
|
2
|
-
|
|
3
|
-
export class AlovaDoctor extends Doctor{
|
|
4
|
-
override async get() {
|
|
5
|
-
return this.of(await doctorApi.doctorStateRestful.getDoctorState({
|
|
6
|
-
pathParams: {
|
|
7
|
-
id: this.id,
|
|
8
|
-
},
|
|
9
|
-
async transform(res) {
|
|
10
|
-
return new AlovaDoctor().of(res);
|
|
11
|
-
},
|
|
12
|
-
}).send());
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
override async put() {
|
|
16
|
-
return this.of(await doctorApi.doctorStateRestful.putDoctorState({
|
|
17
|
-
pathParams: {
|
|
18
|
-
id: this.id,
|
|
19
|
-
},
|
|
20
|
-
data: this.state(),
|
|
21
|
-
}).send());
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
override async post() {
|
|
25
|
-
return this.of(await doctorApi.doctorStateRestful.postDoctorState({
|
|
26
|
-
data: this.state()
|
|
27
|
-
}).send());
|
|
28
|
-
}
|
|
29
|
-
override async delete() {
|
|
30
|
-
await doctorApi.doctorStateRestful.deleteDoctorState({
|
|
31
|
-
pathParams: {
|
|
32
|
-
id: this.id,
|
|
33
|
-
},
|
|
34
|
-
}).send()
|
|
35
|
-
return Promise.resolve();
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './doctor';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { createAlova } from 'alova';
|
|
2
|
-
import fetchAdapter from 'alova/fetch';
|
|
3
|
-
import { createApis, withConfigType, mountApis } from './createApis';
|
|
4
|
-
import { onAuthRequired, responded } from '@core/api/config/alova';
|
|
5
|
-
import { getServiceEndpoint, ServiceType } from '@core/api/config';
|
|
6
|
-
|
|
7
|
-
export const alovaInstance = createAlova({
|
|
8
|
-
baseURL: getServiceEndpoint(ServiceType.Doctor),
|
|
9
|
-
requestAdapter: fetchAdapter(),
|
|
10
|
-
beforeRequest: onAuthRequired(() => {}),
|
|
11
|
-
cacheFor: null,
|
|
12
|
-
responded: responded
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
export const $$userConfigMap = withConfigType({});
|
|
16
|
-
|
|
17
|
-
const Apis = createApis(alovaInstance, $$userConfigMap);
|
|
18
|
-
|
|
19
|
-
mountApis(Apis);
|
|
20
|
-
|
|
21
|
-
export default Apis;
|
|
22
|
-
|
|
23
|
-
|