web-core-tcm 0.0.63 → 0.0.65

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.
Files changed (79) hide show
  1. package/dist/src/api/authorization/alova/createApis.js +1 -7
  2. package/dist/src/api/authorization/alova/globals.d.ts +331 -250
  3. package/dist/src/api/authorization/alova/index.d.ts +2 -1
  4. package/dist/src/api/authorization/alova/index.js +13 -13
  5. package/dist/src/api/authorization/index.js +4 -3
  6. package/dist/src/api/check/alova/createApis.js +1 -7
  7. package/dist/src/api/check/alova/globals.d.ts +1227 -1126
  8. package/dist/src/api/check/alova/index.d.ts +2 -1
  9. package/dist/src/api/check/alova/index.js +10 -10
  10. package/dist/src/api/check/index.js +10 -9
  11. package/dist/src/api/config/index.d.ts +1 -0
  12. package/dist/src/api/config/index.js +15 -9
  13. package/dist/src/api/doctor/alova/createApis.js +1 -7
  14. package/dist/src/api/doctor/alova/globals.d.ts +510 -419
  15. package/dist/src/api/doctor/alova/index.d.ts +2 -1
  16. package/dist/src/api/doctor/alova/index.js +13 -13
  17. package/dist/src/api/doctor/index.js +7 -6
  18. package/dist/src/api/index.d.ts +1 -0
  19. package/dist/src/api/index.js +2 -0
  20. package/dist/src/api/manager/alova/apiDefinitions.d.ts +62 -0
  21. package/dist/src/api/manager/alova/apiDefinitions.js +50 -0
  22. package/dist/src/api/manager/alova/createApis.d.ts +10 -0
  23. package/dist/src/api/manager/alova/createApis.js +49 -0
  24. package/dist/src/api/manager/alova/globals.d.ts +4890 -0
  25. package/dist/src/api/manager/alova/implement/department.d.ts +7 -0
  26. package/dist/src/api/manager/alova/implement/department.js +44 -0
  27. package/dist/src/api/manager/alova/implement/division.d.ts +7 -0
  28. package/dist/src/api/manager/alova/implement/division.js +44 -0
  29. package/dist/src/api/manager/alova/implement/hospital.d.ts +7 -0
  30. package/dist/src/api/manager/alova/implement/hospital.js +44 -0
  31. package/dist/src/api/manager/alova/implement/index.d.ts +3 -0
  32. package/dist/src/api/manager/alova/implement/index.js +8 -0
  33. package/dist/src/api/manager/alova/index.d.ts +7 -0
  34. package/dist/src/api/manager/alova/index.js +20 -0
  35. package/dist/src/api/manager/department.d.ts +30 -0
  36. package/dist/src/api/manager/department.js +35 -0
  37. package/dist/src/api/manager/division.d.ts +30 -0
  38. package/dist/src/api/manager/division.js +34 -0
  39. package/dist/src/api/manager/hospital.d.ts +32 -0
  40. package/dist/src/api/manager/hospital.js +36 -0
  41. package/dist/src/api/manager/index.d.ts +4 -0
  42. package/dist/src/api/manager/index.js +18 -0
  43. package/dist/src/api/oauth/alova/createApis.js +1 -7
  44. package/dist/src/api/oauth/alova/globals.d.ts +403 -312
  45. package/dist/src/api/oauth/alova/index.d.ts +2 -1
  46. package/dist/src/api/oauth/alova/index.js +12 -12
  47. package/dist/src/api/oauth/index.js +6 -5
  48. package/dist/src/api/outpatient/alova/createApis.js +1 -7
  49. package/dist/src/api/outpatient/alova/globals.d.ts +634 -543
  50. package/dist/src/api/outpatient/alova/index.d.ts +2 -1
  51. package/dist/src/api/outpatient/alova/index.js +13 -13
  52. package/dist/src/api/outpatient/index.js +10 -9
  53. package/dist/src/api/patient/alova/createApis.js +1 -7
  54. package/dist/src/api/patient/alova/globals.d.ts +1627 -1480
  55. package/dist/src/api/patient/alova/index.d.ts +2 -1
  56. package/dist/src/api/patient/alova/index.js +13 -13
  57. package/dist/src/api/patient/index.js +27 -26
  58. package/dist/src/api/prescription/alova/apiDefinitions.d.ts +1 -0
  59. package/dist/src/api/prescription/alova/apiDefinitions.js +1 -0
  60. package/dist/src/api/prescription/alova/createApis.js +1 -7
  61. package/dist/src/api/prescription/alova/globals.d.ts +959 -812
  62. package/dist/src/api/prescription/alova/index.d.ts +2 -1
  63. package/dist/src/api/prescription/alova/index.js +6 -6
  64. package/dist/src/api/prescription/index.js +12 -11
  65. package/dist/src/api/scientist/alova/createApis.js +1 -7
  66. package/dist/src/api/scientist/alova/globals.d.ts +406 -315
  67. package/dist/src/api/scientist/alova/index.d.ts +2 -1
  68. package/dist/src/api/scientist/alova/index.js +10 -10
  69. package/dist/src/api/scientist/index.js +8 -7
  70. package/dist/src/index.js +42 -40
  71. package/package.json +1 -1
  72. package/dist/src/api/authorization/alova/globals.js +0 -1
  73. package/dist/src/api/check/alova/globals.js +0 -1
  74. package/dist/src/api/doctor/alova/globals.js +0 -1
  75. package/dist/src/api/oauth/alova/globals.js +0 -1
  76. package/dist/src/api/outpatient/alova/globals.js +0 -1
  77. package/dist/src/api/patient/alova/globals.js +0 -1
  78. package/dist/src/api/prescription/alova/globals.js +0 -1
  79. package/dist/src/api/scientist/alova/globals.js +0 -1
@@ -3,835 +3,982 @@ import { $$userConfigMap, alovaInstance } from './index';
3
3
  import { default as apiDefinitions } from './apiDefinitions';
4
4
  type CollapsedAlova = typeof alovaInstance;
5
5
  type UserMethodConfigMap = typeof $$userConfigMap;
6
- type Alova2MethodConfig<Responded> = CollapsedAlova extends Alova<AlovaGenerics<any, any, infer RequestConfig, infer Response, infer ResponseHeader, infer L1Cache, infer L2Cache, infer SE>> ? Omit<AlovaMethodCreateConfig<AlovaGenerics<Responded, any, RequestConfig, Response, ResponseHeader, L1Cache, L2Cache, SE>, any, Responded>, 'params'> : never;
7
- type ExtractUserDefinedTransformed<DefinitionKey extends keyof typeof apiDefinitions, Default> = DefinitionKey extends keyof UserMethodConfigMap ? UserMethodConfigMap[DefinitionKey]['transform'] extends (...args: any[]) => any ? Awaited<ReturnType<UserMethodConfigMap[DefinitionKey]['transform']>> : Default : Default;
8
- type Alova2Method<Responded, DefinitionKey extends keyof typeof apiDefinitions, CurrentConfig extends Alova2MethodConfig<any>> = CollapsedAlova extends Alova<AlovaGenerics<any, any, infer RequestConfig, infer Response, infer ResponseHeader, infer L1Cache, infer L2Cache, infer SE>> ? Method<AlovaGenerics<CurrentConfig extends undefined ? ExtractUserDefinedTransformed<DefinitionKey, Responded> : CurrentConfig['transform'] extends (...args: any[]) => any ? Awaited<ReturnType<CurrentConfig['transform']>> : ExtractUserDefinedTransformed<DefinitionKey, Responded>, any, RequestConfig, Response, ResponseHeader, L1Cache, L2Cache, SE>> : never;
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<Responded, any, RequestConfig, Response, ResponseHeader, L1Cache, L2Cache, SE>,
23
+ any,
24
+ Responded
25
+ >,
26
+ 'params'
27
+ >
28
+ : never;
29
+
30
+ // Extract the return type of transform function that define in $$userConfigMap, if it not exists, use the default type.
31
+ type ExtractUserDefinedTransformed<
32
+ DefinitionKey extends keyof typeof apiDefinitions,
33
+ Default
34
+ > = DefinitionKey extends keyof UserMethodConfigMap
35
+ ? UserMethodConfigMap[DefinitionKey]['transform'] extends (...args: any[]) => any
36
+ ? Awaited<ReturnType<UserMethodConfigMap[DefinitionKey]['transform']>>
37
+ : Default
38
+ : Default;
39
+ type Alova2Method<
40
+ Responded,
41
+ DefinitionKey extends keyof typeof apiDefinitions,
42
+ CurrentConfig extends Alova2MethodConfig<any>
43
+ > =
44
+ CollapsedAlova extends Alova<
45
+ AlovaGenerics<
46
+ any,
47
+ any,
48
+ infer RequestConfig,
49
+ infer Response,
50
+ infer ResponseHeader,
51
+ infer L1Cache,
52
+ infer L2Cache,
53
+ infer SE
54
+ >
55
+ >
56
+ ? Method<
57
+ AlovaGenerics<
58
+ CurrentConfig extends undefined
59
+ ? ExtractUserDefinedTransformed<DefinitionKey, Responded>
60
+ : CurrentConfig['transform'] extends (...args: any[]) => any
61
+ ? Awaited<ReturnType<CurrentConfig['transform']>>
62
+ : ExtractUserDefinedTransformed<DefinitionKey, Responded>,
63
+ any,
64
+ RequestConfig,
65
+ Response,
66
+ ResponseHeader,
67
+ L1Cache,
68
+ L2Cache,
69
+ SE
70
+ >
71
+ >
72
+ : never;
73
+
9
74
  export interface DoctorState {
10
- id?: string;
11
- name?: string;
12
- createdTimestamp?: string;
13
- updatedTimestamp?: string;
14
- gender?: string;
15
- identityNumber?: string;
16
- phoneNumber?: string;
17
- birthdate?: string;
75
+ id?: string;
76
+ name?: string;
77
+ createdTimestamp?: string;
78
+ updatedTimestamp?: string;
79
+ gender?: string;
80
+ identityNumber?: string;
81
+ phoneNumber?: string;
82
+ birthdate?: string;
18
83
  }
19
84
  export interface HerbalState {
20
- id?: string;
21
- name?: string;
22
- price?: number;
23
- weight?: number;
24
- ownerState?: DoctorState;
25
- createdTimestamp?: string;
26
- updatedTimestamp?: string;
85
+ id?: string;
86
+ name?: string;
87
+ price?: number;
88
+ weight?: number;
89
+ ownerState?: DoctorState;
90
+ createdTimestamp?: string;
91
+ updatedTimestamp?: string;
27
92
  }
28
93
  export interface PrescriptionState {
29
- id?: string;
30
- createdTimestamp?: string;
31
- updatedTimestamp?: string;
32
- name?: string;
33
- ownerState?: DoctorState;
34
- totalAmount?: number;
35
- useAmount?: number;
36
- craftType?: string;
37
- useWay?: string[];
38
- useTime?: string[];
39
- herbalsState?: HerbalState[];
94
+ id?: string;
95
+ createdTimestamp?: string;
96
+ updatedTimestamp?: string;
97
+ name?: string;
98
+ ownerState?: DoctorState;
99
+ totalAmount?: number;
100
+ useAmount?: number;
101
+ craftType?: string;
102
+ useWay?: string[];
103
+ useTime?: string[];
104
+ herbalsState?: HerbalState[];
40
105
  }
41
106
  export interface QueryPrescriptionRequest {
42
- ownerState?: DoctorState;
43
- name?: string;
44
- startTime?: string;
45
- endTime?: string;
46
- page?: number;
47
- pageSize?: number;
107
+ ownerState?: DoctorState;
108
+ name?: string;
109
+ startTime?: string;
110
+ endTime?: string;
111
+ page?: number;
112
+ pageSize?: number;
113
+ }
114
+ export interface InitPrescriptionRequest {
115
+ ownerState?: DoctorState;
48
116
  }
49
117
  export interface QueryHerbalRequest {
50
- ownerState?: DoctorState;
51
- name?: string;
52
- page?: number;
53
- pageSize?: number;
118
+ ownerState?: DoctorState;
119
+ name?: string;
120
+ page?: number;
121
+ pageSize?: number;
54
122
  }
55
123
  export interface SortObject {
56
- sorted?: boolean;
57
- empty?: boolean;
58
- unsorted?: boolean;
124
+ sorted?: boolean;
125
+ empty?: boolean;
126
+ unsorted?: boolean;
59
127
  }
60
128
  export interface PageableObject {
61
- paged?: boolean;
62
- pageNumber?: number;
63
- offset?: number;
64
- sort?: SortObject;
65
- pageSize?: number;
66
- unpaged?: boolean;
129
+ paged?: boolean;
130
+ pageNumber?: number;
131
+ offset?: number;
132
+ sort?: SortObject;
133
+ pageSize?: number;
134
+ unpaged?: boolean;
67
135
  }
68
136
  export interface PagePrescriptionState {
69
- totalPages?: number;
70
- totalElements?: number;
71
- pageable?: PageableObject;
72
- size?: number;
73
- content?: PrescriptionState[];
74
- number?: number;
75
- sort?: SortObject;
76
- first?: boolean;
77
- last?: boolean;
78
- numberOfElements?: number;
79
- empty?: boolean;
137
+ totalPages?: number;
138
+ totalElements?: number;
139
+ pageable?: PageableObject;
140
+ size?: number;
141
+ content?: PrescriptionState[];
142
+ number?: number;
143
+ sort?: SortObject;
144
+ numberOfElements?: number;
145
+ first?: boolean;
146
+ last?: boolean;
147
+ empty?: boolean;
80
148
  }
81
149
  export interface PageHerbalState {
82
- totalPages?: number;
83
- totalElements?: number;
84
- pageable?: PageableObject;
85
- size?: number;
86
- content?: HerbalState[];
87
- number?: number;
88
- sort?: SortObject;
89
- first?: boolean;
90
- last?: boolean;
91
- numberOfElements?: number;
92
- empty?: boolean;
150
+ totalPages?: number;
151
+ totalElements?: number;
152
+ pageable?: PageableObject;
153
+ size?: number;
154
+ content?: HerbalState[];
155
+ number?: number;
156
+ sort?: SortObject;
157
+ numberOfElements?: number;
158
+ first?: boolean;
159
+ last?: boolean;
160
+ empty?: boolean;
93
161
  }
94
162
  declare global {
95
- interface prescriptionApi {
96
- prescriptionRestful: {
97
- /**
98
- * ---
99
- *
100
- * [GET]
101
- *
102
- * **path:** /药材/服务/药方/{id}
103
- *
104
- * ---
105
- *
106
- * **Path Parameters**
107
- * ```ts
108
- * type PathParameters = {
109
- * id: string
110
- * }
111
- * ```
112
- *
113
- * ---
114
- *
115
- * **Response**
116
- * ```ts
117
- * type Response = {
118
- * id?: string
119
- * createdTimestamp?: string
120
- * updatedTimestamp?: string
121
- * name?: string
122
- * ownerState?: {
123
- * id?: string
124
- * name?: string
125
- * createdTimestamp?: string
126
- * updatedTimestamp?: string
127
- * gender?: string
128
- * identityNumber?: string
129
- * phoneNumber?: string
130
- * birthdate?: string
131
- * }
132
- * totalAmount?: number
133
- * useAmount?: number
134
- * craftType?: string
135
- * // [items] start
136
- * // [items] end
137
- * useWay?: string[]
138
- * // [items] start
139
- * // [items] end
140
- * useTime?: string[]
141
- * // [items] start
142
- * // [items] end
143
- * herbalsState?: Array<{
144
- * id?: string
145
- * name?: string
146
- * price?: number
147
- * weight?: number
148
- * ownerState?: {
149
- * id?: string
150
- * name?: string
151
- * createdTimestamp?: string
152
- * updatedTimestamp?: string
153
- * gender?: string
154
- * identityNumber?: string
155
- * phoneNumber?: string
156
- * birthdate?: string
157
- * }
158
- * createdTimestamp?: string
159
- * updatedTimestamp?: string
160
- * }>
161
- * }
162
- * ```
163
- */
164
- getPrescriptionState<Config extends Alova2MethodConfig<PrescriptionState> & {
165
- pathParams: {
166
- id: string;
167
- };
168
- }>(config: Config): Alova2Method<PrescriptionState, 'prescriptionRestful.getPrescriptionState', Config>;
169
- /**
170
- * ---
171
- *
172
- * [PUT]
173
- *
174
- * **path:** /药材/服务/药方/{id}
175
- *
176
- * ---
177
- *
178
- * **Path Parameters**
179
- * ```ts
180
- * type PathParameters = {
181
- * id: string
182
- * }
183
- * ```
184
- *
185
- * ---
186
- *
187
- * **RequestBody**
188
- * ```ts
189
- * type RequestBody = {
190
- * id?: string
191
- * createdTimestamp?: string
192
- * updatedTimestamp?: string
193
- * name?: string
194
- * ownerState?: {
195
- * id?: string
196
- * name?: string
197
- * createdTimestamp?: string
198
- * updatedTimestamp?: string
199
- * gender?: string
200
- * identityNumber?: string
201
- * phoneNumber?: string
202
- * birthdate?: string
203
- * }
204
- * totalAmount?: number
205
- * useAmount?: number
206
- * craftType?: string
207
- * // [items] start
208
- * // [items] end
209
- * useWay?: string[]
210
- * // [items] start
211
- * // [items] end
212
- * useTime?: string[]
213
- * // [items] start
214
- * // [items] end
215
- * herbalsState?: Array<{
216
- * id?: string
217
- * name?: string
218
- * price?: number
219
- * weight?: number
220
- * ownerState?: {
221
- * id?: string
222
- * name?: string
223
- * createdTimestamp?: string
224
- * updatedTimestamp?: string
225
- * gender?: string
226
- * identityNumber?: string
227
- * phoneNumber?: string
228
- * birthdate?: string
229
- * }
230
- * createdTimestamp?: string
231
- * updatedTimestamp?: string
232
- * }>
233
- * }
234
- * ```
235
- *
236
- * ---
237
- *
238
- * **Response**
239
- * ```ts
240
- * type Response = {
241
- * id?: string
242
- * createdTimestamp?: string
243
- * updatedTimestamp?: string
244
- * name?: string
245
- * ownerState?: {
246
- * id?: string
247
- * name?: string
248
- * createdTimestamp?: string
249
- * updatedTimestamp?: string
250
- * gender?: string
251
- * identityNumber?: string
252
- * phoneNumber?: string
253
- * birthdate?: string
254
- * }
255
- * totalAmount?: number
256
- * useAmount?: number
257
- * craftType?: string
258
- * // [items] start
259
- * // [items] end
260
- * useWay?: string[]
261
- * // [items] start
262
- * // [items] end
263
- * useTime?: string[]
264
- * // [items] start
265
- * // [items] end
266
- * herbalsState?: Array<{
267
- * id?: string
268
- * name?: string
269
- * price?: number
270
- * weight?: number
271
- * ownerState?: {
272
- * id?: string
273
- * name?: string
274
- * createdTimestamp?: string
275
- * updatedTimestamp?: string
276
- * gender?: string
277
- * identityNumber?: string
278
- * phoneNumber?: string
279
- * birthdate?: string
280
- * }
281
- * createdTimestamp?: string
282
- * updatedTimestamp?: string
283
- * }>
284
- * }
285
- * ```
286
- */
287
- putPrescriptionState<Config extends Alova2MethodConfig<PrescriptionState> & {
288
- pathParams: {
289
- id: string;
290
- };
291
- data: PrescriptionState;
292
- }>(config: Config): Alova2Method<PrescriptionState, 'prescriptionRestful.putPrescriptionState', Config>;
293
- /**
294
- * ---
295
- *
296
- * [DELETE]
297
- *
298
- * **path:** /药材/服务/药方/{id}
299
- *
300
- * ---
301
- *
302
- * **Path Parameters**
303
- * ```ts
304
- * type PathParameters = {
305
- * id: string
306
- * }
307
- * ```
308
- *
309
- * ---
310
- *
311
- * **Response**
312
- * ```ts
313
- * type Response = null
314
- * ```
315
- */
316
- deletePrescriptionState<Config extends Alova2MethodConfig<null> & {
317
- pathParams: {
318
- id: string;
319
- };
320
- }>(config: Config): Alova2Method<null, 'prescriptionRestful.deletePrescriptionState', Config>;
321
- /**
322
- * ---
323
- *
324
- * [POST]
325
- *
326
- * **path:** /药材/服务/药方
327
- *
328
- * ---
329
- *
330
- * **RequestBody**
331
- * ```ts
332
- * type RequestBody = {
333
- * id?: string
334
- * createdTimestamp?: string
335
- * updatedTimestamp?: string
336
- * name?: string
337
- * ownerState?: {
338
- * id?: string
339
- * name?: string
340
- * createdTimestamp?: string
341
- * updatedTimestamp?: string
342
- * gender?: string
343
- * identityNumber?: string
344
- * phoneNumber?: string
345
- * birthdate?: string
346
- * }
347
- * totalAmount?: number
348
- * useAmount?: number
349
- * craftType?: string
350
- * // [items] start
351
- * // [items] end
352
- * useWay?: string[]
353
- * // [items] start
354
- * // [items] end
355
- * useTime?: string[]
356
- * // [items] start
357
- * // [items] end
358
- * herbalsState?: Array<{
359
- * id?: string
360
- * name?: string
361
- * price?: number
362
- * weight?: number
363
- * ownerState?: {
364
- * id?: string
365
- * name?: string
366
- * createdTimestamp?: string
367
- * updatedTimestamp?: string
368
- * gender?: string
369
- * identityNumber?: string
370
- * phoneNumber?: string
371
- * birthdate?: string
372
- * }
373
- * createdTimestamp?: string
374
- * updatedTimestamp?: string
375
- * }>
376
- * }
377
- * ```
378
- *
379
- * ---
380
- *
381
- * **Response**
382
- * ```ts
383
- * type Response = {
384
- * id?: string
385
- * createdTimestamp?: string
386
- * updatedTimestamp?: string
387
- * name?: string
388
- * ownerState?: {
389
- * id?: string
390
- * name?: string
391
- * createdTimestamp?: string
392
- * updatedTimestamp?: string
393
- * gender?: string
394
- * identityNumber?: string
395
- * phoneNumber?: string
396
- * birthdate?: string
397
- * }
398
- * totalAmount?: number
399
- * useAmount?: number
400
- * craftType?: string
401
- * // [items] start
402
- * // [items] end
403
- * useWay?: string[]
404
- * // [items] start
405
- * // [items] end
406
- * useTime?: string[]
407
- * // [items] start
408
- * // [items] end
409
- * herbalsState?: Array<{
410
- * id?: string
411
- * name?: string
412
- * price?: number
413
- * weight?: number
414
- * ownerState?: {
415
- * id?: string
416
- * name?: string
417
- * createdTimestamp?: string
418
- * updatedTimestamp?: string
419
- * gender?: string
420
- * identityNumber?: string
421
- * phoneNumber?: string
422
- * birthdate?: string
423
- * }
424
- * createdTimestamp?: string
425
- * updatedTimestamp?: string
426
- * }>
427
- * }
428
- * ```
429
- */
430
- postPrescriptionState<Config extends Alova2MethodConfig<PrescriptionState> & {
431
- data: PrescriptionState;
432
- }>(config: Config): Alova2Method<PrescriptionState, 'prescriptionRestful.postPrescriptionState', Config>;
433
- /**
434
- * ---
435
- *
436
- * [POST]
437
- *
438
- * **path:** /药材/服务/药方/条件查询
439
- *
440
- * ---
441
- *
442
- * **RequestBody**
443
- * ```ts
444
- * type RequestBody = {
445
- * ownerState?: {
446
- * id?: string
447
- * name?: string
448
- * createdTimestamp?: string
449
- * updatedTimestamp?: string
450
- * gender?: string
451
- * identityNumber?: string
452
- * phoneNumber?: string
453
- * birthdate?: string
454
- * }
455
- * name?: string
456
- * startTime?: string
457
- * endTime?: string
458
- * page?: number
459
- * pageSize?: number
460
- * }
461
- * ```
462
- *
463
- * ---
464
- *
465
- * **Response**
466
- * ```ts
467
- * type Response = {
468
- * totalPages?: number
469
- * totalElements?: number
470
- * pageable?: {
471
- * paged?: boolean
472
- * pageNumber?: number
473
- * offset?: number
474
- * sort?: {
475
- * sorted?: boolean
476
- * empty?: boolean
477
- * unsorted?: boolean
478
- * }
479
- * pageSize?: number
480
- * unpaged?: boolean
481
- * }
482
- * size?: number
483
- * // [items] start
484
- * // [items] end
485
- * content?: Array<{
486
- * id?: string
487
- * createdTimestamp?: string
488
- * updatedTimestamp?: string
489
- * name?: string
490
- * ownerState?: {
491
- * id?: string
492
- * name?: string
493
- * createdTimestamp?: string
494
- * updatedTimestamp?: string
495
- * gender?: string
496
- * identityNumber?: string
497
- * phoneNumber?: string
498
- * birthdate?: string
499
- * }
500
- * totalAmount?: number
501
- * useAmount?: number
502
- * craftType?: string
503
- * // [items] start
504
- * // [items] end
505
- * useWay?: string[]
506
- * // [items] start
507
- * // [items] end
508
- * useTime?: string[]
509
- * // [items] start
510
- * // [items] end
511
- * herbalsState?: Array<{
512
- * id?: string
513
- * name?: string
514
- * price?: number
515
- * weight?: number
516
- * ownerState?: {
517
- * id?: string
518
- * name?: string
519
- * createdTimestamp?: string
520
- * updatedTimestamp?: string
521
- * gender?: string
522
- * identityNumber?: string
523
- * phoneNumber?: string
524
- * birthdate?: string
525
- * }
526
- * createdTimestamp?: string
527
- * updatedTimestamp?: string
528
- * }>
529
- * }>
530
- * number?: number
531
- * sort?: {
532
- * sorted?: boolean
533
- * empty?: boolean
534
- * unsorted?: boolean
535
- * }
536
- * first?: boolean
537
- * last?: boolean
538
- * numberOfElements?: number
539
- * empty?: boolean
540
- * }
541
- * ```
542
- */
543
- queryPrescriptionState<Config extends Alova2MethodConfig<PagePrescriptionState> & {
544
- data: QueryPrescriptionRequest;
545
- }>(config: Config): Alova2Method<PagePrescriptionState, 'prescriptionRestful.queryPrescriptionState', Config>;
546
- };
547
- herbalRestful: {
548
- /**
549
- * ---
550
- *
551
- * [GET]
552
- *
553
- * **path:** /药材/服务/{id}
554
- *
555
- * ---
556
- *
557
- * **Path Parameters**
558
- * ```ts
559
- * type PathParameters = {
560
- * id: string
561
- * }
562
- * ```
563
- *
564
- * ---
565
- *
566
- * **Response**
567
- * ```ts
568
- * type Response = {
569
- * id?: string
570
- * name?: string
571
- * price?: number
572
- * weight?: number
573
- * ownerState?: {
574
- * id?: string
575
- * name?: string
576
- * createdTimestamp?: string
577
- * updatedTimestamp?: string
578
- * gender?: string
579
- * identityNumber?: string
580
- * phoneNumber?: string
581
- * birthdate?: string
582
- * }
583
- * createdTimestamp?: string
584
- * updatedTimestamp?: string
585
- * }
586
- * ```
587
- */
588
- getHerbalState<Config extends Alova2MethodConfig<HerbalState> & {
589
- pathParams: {
590
- id: string;
591
- };
592
- }>(config: Config): Alova2Method<HerbalState, 'herbalRestful.getHerbalState', Config>;
593
- /**
594
- * ---
595
- *
596
- * [PUT]
597
- *
598
- * **path:** /药材/服务/{id}
599
- *
600
- * ---
601
- *
602
- * **Path Parameters**
603
- * ```ts
604
- * type PathParameters = {
605
- * id: string
606
- * }
607
- * ```
608
- *
609
- * ---
610
- *
611
- * **RequestBody**
612
- * ```ts
613
- * type RequestBody = {
614
- * id?: string
615
- * name?: string
616
- * price?: number
617
- * weight?: number
618
- * ownerState?: {
619
- * id?: string
620
- * name?: string
621
- * createdTimestamp?: string
622
- * updatedTimestamp?: string
623
- * gender?: string
624
- * identityNumber?: string
625
- * phoneNumber?: string
626
- * birthdate?: string
627
- * }
628
- * createdTimestamp?: string
629
- * updatedTimestamp?: string
630
- * }
631
- * ```
632
- *
633
- * ---
634
- *
635
- * **Response**
636
- * ```ts
637
- * type Response = {
638
- * id?: string
639
- * name?: string
640
- * price?: number
641
- * weight?: number
642
- * ownerState?: {
643
- * id?: string
644
- * name?: string
645
- * createdTimestamp?: string
646
- * updatedTimestamp?: string
647
- * gender?: string
648
- * identityNumber?: string
649
- * phoneNumber?: string
650
- * birthdate?: string
651
- * }
652
- * createdTimestamp?: string
653
- * updatedTimestamp?: string
654
- * }
655
- * ```
656
- */
657
- putHerbalState<Config extends Alova2MethodConfig<HerbalState> & {
658
- pathParams: {
659
- id: string;
660
- };
661
- data: HerbalState;
662
- }>(config: Config): Alova2Method<HerbalState, 'herbalRestful.putHerbalState', Config>;
663
- /**
664
- * ---
665
- *
666
- * [DELETE]
667
- *
668
- * **path:** /药材/服务/{id}
669
- *
670
- * ---
671
- *
672
- * **Path Parameters**
673
- * ```ts
674
- * type PathParameters = {
675
- * id: string
676
- * }
677
- * ```
678
- *
679
- * ---
680
- *
681
- * **Response**
682
- * ```ts
683
- * type Response = null
684
- * ```
685
- */
686
- deleteHerbalState<Config extends Alova2MethodConfig<null> & {
687
- pathParams: {
688
- id: string;
689
- };
690
- }>(config: Config): Alova2Method<null, 'herbalRestful.deleteHerbalState', Config>;
691
- /**
692
- * ---
693
- *
694
- * [POST]
695
- *
696
- * **path:** /药材/服务
697
- *
698
- * ---
699
- *
700
- * **RequestBody**
701
- * ```ts
702
- * type RequestBody = {
703
- * id?: string
704
- * name?: string
705
- * price?: number
706
- * weight?: number
707
- * ownerState?: {
708
- * id?: string
709
- * name?: string
710
- * createdTimestamp?: string
711
- * updatedTimestamp?: string
712
- * gender?: string
713
- * identityNumber?: string
714
- * phoneNumber?: string
715
- * birthdate?: string
716
- * }
717
- * createdTimestamp?: string
718
- * updatedTimestamp?: string
719
- * }
720
- * ```
721
- *
722
- * ---
723
- *
724
- * **Response**
725
- * ```ts
726
- * type Response = {
727
- * id?: string
728
- * name?: string
729
- * price?: number
730
- * weight?: number
731
- * ownerState?: {
732
- * id?: string
733
- * name?: string
734
- * createdTimestamp?: string
735
- * updatedTimestamp?: string
736
- * gender?: string
737
- * identityNumber?: string
738
- * phoneNumber?: string
739
- * birthdate?: string
740
- * }
741
- * createdTimestamp?: string
742
- * updatedTimestamp?: string
743
- * }
744
- * ```
745
- */
746
- postHerbalState<Config extends Alova2MethodConfig<HerbalState> & {
747
- data: HerbalState;
748
- }>(config: Config): Alova2Method<HerbalState, 'herbalRestful.postHerbalState', Config>;
749
- /**
750
- * ---
751
- *
752
- * [POST]
753
- *
754
- * **path:** /药材/服务/条件查询
755
- *
756
- * ---
757
- *
758
- * **RequestBody**
759
- * ```ts
760
- * type RequestBody = {
761
- * ownerState?: {
762
- * id?: string
763
- * name?: string
764
- * createdTimestamp?: string
765
- * updatedTimestamp?: string
766
- * gender?: string
767
- * identityNumber?: string
768
- * phoneNumber?: string
769
- * birthdate?: string
770
- * }
771
- * name?: string
772
- * page?: number
773
- * pageSize?: number
774
- * }
775
- * ```
776
- *
777
- * ---
778
- *
779
- * **Response**
780
- * ```ts
781
- * type Response = {
782
- * totalPages?: number
783
- * totalElements?: number
784
- * pageable?: {
785
- * paged?: boolean
786
- * pageNumber?: number
787
- * offset?: number
788
- * sort?: {
789
- * sorted?: boolean
790
- * empty?: boolean
791
- * unsorted?: boolean
792
- * }
793
- * pageSize?: number
794
- * unpaged?: boolean
795
- * }
796
- * size?: number
797
- * // [items] start
798
- * // [items] end
799
- * content?: Array<{
800
- * id?: string
801
- * name?: string
802
- * price?: number
803
- * weight?: number
804
- * ownerState?: {
805
- * id?: string
806
- * name?: string
807
- * createdTimestamp?: string
808
- * updatedTimestamp?: string
809
- * gender?: string
810
- * identityNumber?: string
811
- * phoneNumber?: string
812
- * birthdate?: string
813
- * }
814
- * createdTimestamp?: string
815
- * updatedTimestamp?: string
816
- * }>
817
- * number?: number
818
- * sort?: {
819
- * sorted?: boolean
820
- * empty?: boolean
821
- * unsorted?: boolean
822
- * }
823
- * first?: boolean
824
- * last?: boolean
825
- * numberOfElements?: number
826
- * empty?: boolean
827
- * }
828
- * ```
829
- */
830
- queryHerbalState<Config extends Alova2MethodConfig<PageHerbalState> & {
831
- data: QueryHerbalRequest;
832
- }>(config: Config): Alova2Method<PageHerbalState, 'herbalRestful.queryHerbalState', Config>;
833
- };
834
- }
835
- var prescriptionApi: prescriptionApi;
163
+ interface prescriptionApi {
164
+ prescriptionRestful: {
165
+ /**
166
+ * ---
167
+ *
168
+ * [GET]
169
+ *
170
+ * **path:** /药材/服务/药方/{id}
171
+ *
172
+ * ---
173
+ *
174
+ * **Path Parameters**
175
+ * ```ts
176
+ * type PathParameters = {
177
+ * id: string
178
+ * }
179
+ * ```
180
+ *
181
+ * ---
182
+ *
183
+ * **Response**
184
+ * ```ts
185
+ * type Response = {
186
+ * id?: string
187
+ * createdTimestamp?: string
188
+ * updatedTimestamp?: string
189
+ * name?: string
190
+ * ownerState?: {
191
+ * id?: string
192
+ * name?: string
193
+ * createdTimestamp?: string
194
+ * updatedTimestamp?: string
195
+ * gender?: string
196
+ * identityNumber?: string
197
+ * phoneNumber?: string
198
+ * birthdate?: string
199
+ * }
200
+ * totalAmount?: number
201
+ * useAmount?: number
202
+ * craftType?: string
203
+ * // [items] start
204
+ * // [items] end
205
+ * useWay?: string[]
206
+ * // [items] start
207
+ * // [items] end
208
+ * useTime?: string[]
209
+ * // [items] start
210
+ * // [items] end
211
+ * herbalsState?: Array<{
212
+ * id?: string
213
+ * name?: string
214
+ * price?: number
215
+ * weight?: number
216
+ * ownerState?: {
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
+ * createdTimestamp?: string
227
+ * updatedTimestamp?: string
228
+ * }>
229
+ * }
230
+ * ```
231
+ */
232
+ getPrescriptionState<
233
+ Config extends Alova2MethodConfig<PrescriptionState> & {
234
+ pathParams: {
235
+ id: string;
236
+ };
237
+ }
238
+ >(
239
+ config: Config
240
+ ): Alova2Method<PrescriptionState, 'prescriptionRestful.getPrescriptionState', Config>;
241
+ /**
242
+ * ---
243
+ *
244
+ * [PUT]
245
+ *
246
+ * **path:** /药材/服务/药方/{id}
247
+ *
248
+ * ---
249
+ *
250
+ * **Path Parameters**
251
+ * ```ts
252
+ * type PathParameters = {
253
+ * id: string
254
+ * }
255
+ * ```
256
+ *
257
+ * ---
258
+ *
259
+ * **RequestBody**
260
+ * ```ts
261
+ * type RequestBody = {
262
+ * id?: string
263
+ * createdTimestamp?: string
264
+ * updatedTimestamp?: string
265
+ * name?: string
266
+ * ownerState?: {
267
+ * id?: string
268
+ * name?: string
269
+ * createdTimestamp?: string
270
+ * updatedTimestamp?: string
271
+ * gender?: string
272
+ * identityNumber?: string
273
+ * phoneNumber?: string
274
+ * birthdate?: string
275
+ * }
276
+ * totalAmount?: number
277
+ * useAmount?: number
278
+ * craftType?: string
279
+ * // [items] start
280
+ * // [items] end
281
+ * useWay?: string[]
282
+ * // [items] start
283
+ * // [items] end
284
+ * useTime?: string[]
285
+ * // [items] start
286
+ * // [items] end
287
+ * herbalsState?: Array<{
288
+ * id?: string
289
+ * name?: string
290
+ * price?: number
291
+ * weight?: number
292
+ * ownerState?: {
293
+ * id?: string
294
+ * name?: string
295
+ * createdTimestamp?: string
296
+ * updatedTimestamp?: string
297
+ * gender?: string
298
+ * identityNumber?: string
299
+ * phoneNumber?: string
300
+ * birthdate?: string
301
+ * }
302
+ * createdTimestamp?: string
303
+ * updatedTimestamp?: string
304
+ * }>
305
+ * }
306
+ * ```
307
+ *
308
+ * ---
309
+ *
310
+ * **Response**
311
+ * ```ts
312
+ * type Response = {
313
+ * id?: string
314
+ * createdTimestamp?: string
315
+ * updatedTimestamp?: string
316
+ * name?: string
317
+ * ownerState?: {
318
+ * id?: string
319
+ * name?: string
320
+ * createdTimestamp?: string
321
+ * updatedTimestamp?: string
322
+ * gender?: string
323
+ * identityNumber?: string
324
+ * phoneNumber?: string
325
+ * birthdate?: string
326
+ * }
327
+ * totalAmount?: number
328
+ * useAmount?: number
329
+ * craftType?: string
330
+ * // [items] start
331
+ * // [items] end
332
+ * useWay?: string[]
333
+ * // [items] start
334
+ * // [items] end
335
+ * useTime?: string[]
336
+ * // [items] start
337
+ * // [items] end
338
+ * herbalsState?: Array<{
339
+ * id?: string
340
+ * name?: string
341
+ * price?: number
342
+ * weight?: number
343
+ * ownerState?: {
344
+ * id?: string
345
+ * name?: string
346
+ * createdTimestamp?: string
347
+ * updatedTimestamp?: string
348
+ * gender?: string
349
+ * identityNumber?: string
350
+ * phoneNumber?: string
351
+ * birthdate?: string
352
+ * }
353
+ * createdTimestamp?: string
354
+ * updatedTimestamp?: string
355
+ * }>
356
+ * }
357
+ * ```
358
+ */
359
+ putPrescriptionState<
360
+ Config extends Alova2MethodConfig<PrescriptionState> & {
361
+ pathParams: {
362
+ id: string;
363
+ };
364
+ data: PrescriptionState;
365
+ }
366
+ >(
367
+ config: Config
368
+ ): Alova2Method<PrescriptionState, 'prescriptionRestful.putPrescriptionState', Config>;
369
+ /**
370
+ * ---
371
+ *
372
+ * [DELETE]
373
+ *
374
+ * **path:** /药材/服务/药方/{id}
375
+ *
376
+ * ---
377
+ *
378
+ * **Path Parameters**
379
+ * ```ts
380
+ * type PathParameters = {
381
+ * id: string
382
+ * }
383
+ * ```
384
+ *
385
+ * ---
386
+ *
387
+ * **Response**
388
+ * ```ts
389
+ * type Response = null
390
+ * ```
391
+ */
392
+ deletePrescriptionState<
393
+ Config extends Alova2MethodConfig<null> & {
394
+ pathParams: {
395
+ id: string;
396
+ };
397
+ }
398
+ >(
399
+ config: Config
400
+ ): Alova2Method<null, 'prescriptionRestful.deletePrescriptionState', Config>;
401
+ /**
402
+ * ---
403
+ *
404
+ * [POST]
405
+ *
406
+ * **path:** /药材/服务/药方
407
+ *
408
+ * ---
409
+ *
410
+ * **RequestBody**
411
+ * ```ts
412
+ * type RequestBody = {
413
+ * id?: string
414
+ * createdTimestamp?: string
415
+ * updatedTimestamp?: string
416
+ * name?: string
417
+ * ownerState?: {
418
+ * id?: string
419
+ * name?: string
420
+ * createdTimestamp?: string
421
+ * updatedTimestamp?: string
422
+ * gender?: string
423
+ * identityNumber?: string
424
+ * phoneNumber?: string
425
+ * birthdate?: string
426
+ * }
427
+ * totalAmount?: number
428
+ * useAmount?: number
429
+ * craftType?: string
430
+ * // [items] start
431
+ * // [items] end
432
+ * useWay?: string[]
433
+ * // [items] start
434
+ * // [items] end
435
+ * useTime?: string[]
436
+ * // [items] start
437
+ * // [items] end
438
+ * herbalsState?: Array<{
439
+ * id?: string
440
+ * name?: string
441
+ * price?: number
442
+ * weight?: number
443
+ * ownerState?: {
444
+ * id?: string
445
+ * name?: string
446
+ * createdTimestamp?: string
447
+ * updatedTimestamp?: string
448
+ * gender?: string
449
+ * identityNumber?: string
450
+ * phoneNumber?: string
451
+ * birthdate?: string
452
+ * }
453
+ * createdTimestamp?: string
454
+ * updatedTimestamp?: string
455
+ * }>
456
+ * }
457
+ * ```
458
+ *
459
+ * ---
460
+ *
461
+ * **Response**
462
+ * ```ts
463
+ * type Response = {
464
+ * id?: string
465
+ * createdTimestamp?: string
466
+ * updatedTimestamp?: string
467
+ * name?: string
468
+ * ownerState?: {
469
+ * id?: string
470
+ * name?: string
471
+ * createdTimestamp?: string
472
+ * updatedTimestamp?: string
473
+ * gender?: string
474
+ * identityNumber?: string
475
+ * phoneNumber?: string
476
+ * birthdate?: string
477
+ * }
478
+ * totalAmount?: number
479
+ * useAmount?: number
480
+ * craftType?: string
481
+ * // [items] start
482
+ * // [items] end
483
+ * useWay?: string[]
484
+ * // [items] start
485
+ * // [items] end
486
+ * useTime?: string[]
487
+ * // [items] start
488
+ * // [items] end
489
+ * herbalsState?: Array<{
490
+ * id?: string
491
+ * name?: string
492
+ * price?: number
493
+ * weight?: number
494
+ * ownerState?: {
495
+ * id?: string
496
+ * name?: string
497
+ * createdTimestamp?: string
498
+ * updatedTimestamp?: string
499
+ * gender?: string
500
+ * identityNumber?: string
501
+ * phoneNumber?: string
502
+ * birthdate?: string
503
+ * }
504
+ * createdTimestamp?: string
505
+ * updatedTimestamp?: string
506
+ * }>
507
+ * }
508
+ * ```
509
+ */
510
+ postPrescriptionState<
511
+ Config extends Alova2MethodConfig<PrescriptionState> & {
512
+ data: PrescriptionState;
513
+ }
514
+ >(
515
+ config: Config
516
+ ): Alova2Method<PrescriptionState, 'prescriptionRestful.postPrescriptionState', Config>;
517
+ /**
518
+ * ---
519
+ *
520
+ * [POST]
521
+ *
522
+ * **path:** /药材/服务/药方/条件查询
523
+ *
524
+ * ---
525
+ *
526
+ * **RequestBody**
527
+ * ```ts
528
+ * type RequestBody = {
529
+ * ownerState?: {
530
+ * id?: string
531
+ * name?: string
532
+ * createdTimestamp?: string
533
+ * updatedTimestamp?: string
534
+ * gender?: string
535
+ * identityNumber?: string
536
+ * phoneNumber?: string
537
+ * birthdate?: string
538
+ * }
539
+ * name?: string
540
+ * startTime?: string
541
+ * endTime?: string
542
+ * page?: number
543
+ * pageSize?: number
544
+ * }
545
+ * ```
546
+ *
547
+ * ---
548
+ *
549
+ * **Response**
550
+ * ```ts
551
+ * type Response = {
552
+ * totalPages?: number
553
+ * totalElements?: number
554
+ * pageable?: {
555
+ * paged?: boolean
556
+ * pageNumber?: number
557
+ * offset?: number
558
+ * sort?: {
559
+ * sorted?: boolean
560
+ * empty?: boolean
561
+ * unsorted?: boolean
562
+ * }
563
+ * pageSize?: number
564
+ * unpaged?: boolean
565
+ * }
566
+ * size?: number
567
+ * // [items] start
568
+ * // [items] end
569
+ * content?: Array<{
570
+ * id?: string
571
+ * createdTimestamp?: string
572
+ * updatedTimestamp?: string
573
+ * name?: string
574
+ * ownerState?: {
575
+ * id?: string
576
+ * name?: string
577
+ * createdTimestamp?: string
578
+ * updatedTimestamp?: string
579
+ * gender?: string
580
+ * identityNumber?: string
581
+ * phoneNumber?: string
582
+ * birthdate?: string
583
+ * }
584
+ * totalAmount?: number
585
+ * useAmount?: number
586
+ * craftType?: string
587
+ * // [items] start
588
+ * // [items] end
589
+ * useWay?: string[]
590
+ * // [items] start
591
+ * // [items] end
592
+ * useTime?: string[]
593
+ * // [items] start
594
+ * // [items] end
595
+ * herbalsState?: Array<{
596
+ * id?: string
597
+ * name?: string
598
+ * price?: number
599
+ * weight?: number
600
+ * ownerState?: {
601
+ * id?: string
602
+ * name?: string
603
+ * createdTimestamp?: string
604
+ * updatedTimestamp?: string
605
+ * gender?: string
606
+ * identityNumber?: string
607
+ * phoneNumber?: string
608
+ * birthdate?: string
609
+ * }
610
+ * createdTimestamp?: string
611
+ * updatedTimestamp?: string
612
+ * }>
613
+ * }>
614
+ * number?: number
615
+ * sort?: {
616
+ * sorted?: boolean
617
+ * empty?: boolean
618
+ * unsorted?: boolean
619
+ * }
620
+ * numberOfElements?: number
621
+ * first?: boolean
622
+ * last?: boolean
623
+ * empty?: boolean
624
+ * }
625
+ * ```
626
+ */
627
+ queryPrescriptionState<
628
+ Config extends Alova2MethodConfig<PagePrescriptionState> & {
629
+ data: QueryPrescriptionRequest;
630
+ }
631
+ >(
632
+ config: Config
633
+ ): Alova2Method<PagePrescriptionState, 'prescriptionRestful.queryPrescriptionState', Config>;
634
+ /**
635
+ * ---
636
+ *
637
+ * [POST]
638
+ *
639
+ * **path:** /药材/服务/药方/初始化药方库
640
+ *
641
+ * ---
642
+ *
643
+ * **RequestBody**
644
+ * ```ts
645
+ * type RequestBody = {
646
+ * ownerState?: {
647
+ * id?: string
648
+ * name?: string
649
+ * createdTimestamp?: string
650
+ * updatedTimestamp?: string
651
+ * gender?: string
652
+ * identityNumber?: string
653
+ * phoneNumber?: string
654
+ * birthdate?: string
655
+ * }
656
+ * }
657
+ * ```
658
+ *
659
+ * ---
660
+ *
661
+ * **Response**
662
+ * ```ts
663
+ * type Response = null
664
+ * ```
665
+ */
666
+ initPrescriptions<
667
+ Config extends Alova2MethodConfig<null> & {
668
+ data: InitPrescriptionRequest;
669
+ }
670
+ >(
671
+ config: Config
672
+ ): Alova2Method<null, 'prescriptionRestful.initPrescriptions', Config>;
673
+ };
674
+ herbalRestful: {
675
+ /**
676
+ * ---
677
+ *
678
+ * [GET]
679
+ *
680
+ * **path:** /药材/服务/{id}
681
+ *
682
+ * ---
683
+ *
684
+ * **Path Parameters**
685
+ * ```ts
686
+ * type PathParameters = {
687
+ * id: string
688
+ * }
689
+ * ```
690
+ *
691
+ * ---
692
+ *
693
+ * **Response**
694
+ * ```ts
695
+ * type Response = {
696
+ * id?: string
697
+ * name?: string
698
+ * price?: number
699
+ * weight?: number
700
+ * ownerState?: {
701
+ * id?: string
702
+ * name?: string
703
+ * createdTimestamp?: string
704
+ * updatedTimestamp?: string
705
+ * gender?: string
706
+ * identityNumber?: string
707
+ * phoneNumber?: string
708
+ * birthdate?: string
709
+ * }
710
+ * createdTimestamp?: string
711
+ * updatedTimestamp?: string
712
+ * }
713
+ * ```
714
+ */
715
+ getHerbalState<
716
+ Config extends Alova2MethodConfig<HerbalState> & {
717
+ pathParams: {
718
+ id: string;
719
+ };
720
+ }
721
+ >(
722
+ config: Config
723
+ ): Alova2Method<HerbalState, 'herbalRestful.getHerbalState', Config>;
724
+ /**
725
+ * ---
726
+ *
727
+ * [PUT]
728
+ *
729
+ * **path:** /药材/服务/{id}
730
+ *
731
+ * ---
732
+ *
733
+ * **Path Parameters**
734
+ * ```ts
735
+ * type PathParameters = {
736
+ * id: string
737
+ * }
738
+ * ```
739
+ *
740
+ * ---
741
+ *
742
+ * **RequestBody**
743
+ * ```ts
744
+ * type RequestBody = {
745
+ * id?: string
746
+ * name?: string
747
+ * price?: number
748
+ * weight?: number
749
+ * ownerState?: {
750
+ * id?: string
751
+ * name?: string
752
+ * createdTimestamp?: string
753
+ * updatedTimestamp?: string
754
+ * gender?: string
755
+ * identityNumber?: string
756
+ * phoneNumber?: string
757
+ * birthdate?: string
758
+ * }
759
+ * createdTimestamp?: string
760
+ * updatedTimestamp?: string
761
+ * }
762
+ * ```
763
+ *
764
+ * ---
765
+ *
766
+ * **Response**
767
+ * ```ts
768
+ * type Response = {
769
+ * id?: string
770
+ * name?: string
771
+ * price?: number
772
+ * weight?: number
773
+ * ownerState?: {
774
+ * id?: string
775
+ * name?: string
776
+ * createdTimestamp?: string
777
+ * updatedTimestamp?: string
778
+ * gender?: string
779
+ * identityNumber?: string
780
+ * phoneNumber?: string
781
+ * birthdate?: string
782
+ * }
783
+ * createdTimestamp?: string
784
+ * updatedTimestamp?: string
785
+ * }
786
+ * ```
787
+ */
788
+ putHerbalState<
789
+ Config extends Alova2MethodConfig<HerbalState> & {
790
+ pathParams: {
791
+ id: string;
792
+ };
793
+ data: HerbalState;
794
+ }
795
+ >(
796
+ config: Config
797
+ ): Alova2Method<HerbalState, 'herbalRestful.putHerbalState', Config>;
798
+ /**
799
+ * ---
800
+ *
801
+ * [DELETE]
802
+ *
803
+ * **path:** /药材/服务/{id}
804
+ *
805
+ * ---
806
+ *
807
+ * **Path Parameters**
808
+ * ```ts
809
+ * type PathParameters = {
810
+ * id: string
811
+ * }
812
+ * ```
813
+ *
814
+ * ---
815
+ *
816
+ * **Response**
817
+ * ```ts
818
+ * type Response = null
819
+ * ```
820
+ */
821
+ deleteHerbalState<
822
+ Config extends Alova2MethodConfig<null> & {
823
+ pathParams: {
824
+ id: string;
825
+ };
826
+ }
827
+ >(
828
+ config: Config
829
+ ): Alova2Method<null, 'herbalRestful.deleteHerbalState', Config>;
830
+ /**
831
+ * ---
832
+ *
833
+ * [POST]
834
+ *
835
+ * **path:** /药材/服务
836
+ *
837
+ * ---
838
+ *
839
+ * **RequestBody**
840
+ * ```ts
841
+ * type RequestBody = {
842
+ * id?: string
843
+ * name?: string
844
+ * price?: number
845
+ * weight?: number
846
+ * ownerState?: {
847
+ * id?: string
848
+ * name?: string
849
+ * createdTimestamp?: string
850
+ * updatedTimestamp?: string
851
+ * gender?: string
852
+ * identityNumber?: string
853
+ * phoneNumber?: string
854
+ * birthdate?: string
855
+ * }
856
+ * createdTimestamp?: string
857
+ * updatedTimestamp?: string
858
+ * }
859
+ * ```
860
+ *
861
+ * ---
862
+ *
863
+ * **Response**
864
+ * ```ts
865
+ * type Response = {
866
+ * id?: string
867
+ * name?: string
868
+ * price?: number
869
+ * weight?: number
870
+ * ownerState?: {
871
+ * id?: string
872
+ * name?: string
873
+ * createdTimestamp?: string
874
+ * updatedTimestamp?: string
875
+ * gender?: string
876
+ * identityNumber?: string
877
+ * phoneNumber?: string
878
+ * birthdate?: string
879
+ * }
880
+ * createdTimestamp?: string
881
+ * updatedTimestamp?: string
882
+ * }
883
+ * ```
884
+ */
885
+ postHerbalState<
886
+ Config extends Alova2MethodConfig<HerbalState> & {
887
+ data: HerbalState;
888
+ }
889
+ >(
890
+ config: Config
891
+ ): Alova2Method<HerbalState, 'herbalRestful.postHerbalState', Config>;
892
+ /**
893
+ * ---
894
+ *
895
+ * [POST]
896
+ *
897
+ * **path:** /药材/服务/条件查询
898
+ *
899
+ * ---
900
+ *
901
+ * **RequestBody**
902
+ * ```ts
903
+ * type RequestBody = {
904
+ * ownerState?: {
905
+ * id?: string
906
+ * name?: string
907
+ * createdTimestamp?: string
908
+ * updatedTimestamp?: string
909
+ * gender?: string
910
+ * identityNumber?: string
911
+ * phoneNumber?: string
912
+ * birthdate?: string
913
+ * }
914
+ * name?: string
915
+ * page?: number
916
+ * pageSize?: number
917
+ * }
918
+ * ```
919
+ *
920
+ * ---
921
+ *
922
+ * **Response**
923
+ * ```ts
924
+ * type Response = {
925
+ * totalPages?: number
926
+ * totalElements?: number
927
+ * pageable?: {
928
+ * paged?: boolean
929
+ * pageNumber?: number
930
+ * offset?: number
931
+ * sort?: {
932
+ * sorted?: boolean
933
+ * empty?: boolean
934
+ * unsorted?: boolean
935
+ * }
936
+ * pageSize?: number
937
+ * unpaged?: boolean
938
+ * }
939
+ * size?: number
940
+ * // [items] start
941
+ * // [items] end
942
+ * content?: Array<{
943
+ * id?: string
944
+ * name?: string
945
+ * price?: number
946
+ * weight?: number
947
+ * ownerState?: {
948
+ * id?: string
949
+ * name?: string
950
+ * createdTimestamp?: string
951
+ * updatedTimestamp?: string
952
+ * gender?: string
953
+ * identityNumber?: string
954
+ * phoneNumber?: string
955
+ * birthdate?: string
956
+ * }
957
+ * createdTimestamp?: string
958
+ * updatedTimestamp?: string
959
+ * }>
960
+ * number?: number
961
+ * sort?: {
962
+ * sorted?: boolean
963
+ * empty?: boolean
964
+ * unsorted?: boolean
965
+ * }
966
+ * numberOfElements?: number
967
+ * first?: boolean
968
+ * last?: boolean
969
+ * empty?: boolean
970
+ * }
971
+ * ```
972
+ */
973
+ queryHerbalState<
974
+ Config extends Alova2MethodConfig<PageHerbalState> & {
975
+ data: QueryHerbalRequest;
976
+ }
977
+ >(
978
+ config: Config
979
+ ): Alova2Method<PageHerbalState, 'herbalRestful.queryHerbalState', Config>;
980
+ };
981
+ }
982
+
983
+ var prescriptionApi: prescriptionApi;
836
984
  }
837
- export {};