web-core-tcm 0.0.76 → 0.0.77
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/manager/alova/apiDefinitions.d.ts +3 -0
- package/dist/src/api/manager/alova/apiDefinitions.js +3 -0
- package/dist/src/api/manager/alova/globals.d.ts +320 -1
- package/dist/src/api/manager/alova/implement/hospital.d.ts +1 -0
- package/dist/src/api/manager/alova/implement/hospital.js +18 -10
- package/dist/src/api/manager/hospital.d.ts +1 -0
- package/package.json +1 -1
|
@@ -33,6 +33,7 @@ declare const _default: {
|
|
|
33
33
|
'divisionStateRestful.getDivisionStates': string[];
|
|
34
34
|
'hospitalStateRestful.postHospitalState': string[];
|
|
35
35
|
'hospitalStateRestful.getHospitalStates': string[];
|
|
36
|
+
'hospitalStateRestful.getHospitalStateInfo': string[];
|
|
36
37
|
'general.deleteDepartmentState_POST': string[];
|
|
37
38
|
'general.deleteDepartmentState_GET': string[];
|
|
38
39
|
'general.deleteDivisionState_POST': string[];
|
|
@@ -47,6 +48,8 @@ declare const _default: {
|
|
|
47
48
|
'general.getDivisionState_GET': string[];
|
|
48
49
|
'general.getHospitalState_POST': string[];
|
|
49
50
|
'general.getHospitalState_GET': string[];
|
|
51
|
+
'general.getHospitalStateInfo_POST': string[];
|
|
52
|
+
'general.getHospitalStateInfo_GET': string[];
|
|
50
53
|
'general.getManagerState_POST': string[];
|
|
51
54
|
'general.getManagerState_GET': string[];
|
|
52
55
|
'general.postDepartmentState_POST': string[];
|
|
@@ -19,6 +19,7 @@ const t = {
|
|
|
19
19
|
"divisionStateRestful.getDivisionStates": ["POST", "/管理/服务/科室/查询"],
|
|
20
20
|
"hospitalStateRestful.postHospitalState": ["POST", "/管理/服务/医院"],
|
|
21
21
|
"hospitalStateRestful.getHospitalStates": ["POST", "/管理/服务/医院/查询"],
|
|
22
|
+
"hospitalStateRestful.getHospitalStateInfo": ["GET", "/管理/服务/医院/信息/{id}"],
|
|
22
23
|
"general.deleteDepartmentState_POST": ["POST", "/deleteDepartmentState"],
|
|
23
24
|
"general.deleteDepartmentState_GET": ["GET", "/deleteDepartmentState/{deleteDepartmentState}"],
|
|
24
25
|
"general.deleteDivisionState_POST": ["POST", "/deleteDivisionState"],
|
|
@@ -33,6 +34,8 @@ const t = {
|
|
|
33
34
|
"general.getDivisionState_GET": ["GET", "/getDivisionState/{getDivisionState}"],
|
|
34
35
|
"general.getHospitalState_POST": ["POST", "/getHospitalState"],
|
|
35
36
|
"general.getHospitalState_GET": ["GET", "/getHospitalState/{getHospitalState}"],
|
|
37
|
+
"general.getHospitalStateInfo_POST": ["POST", "/getHospitalStateInfo"],
|
|
38
|
+
"general.getHospitalStateInfo_GET": ["GET", "/getHospitalStateInfo/{getHospitalStateInfo}"],
|
|
36
39
|
"general.getManagerState_POST": ["POST", "/getManagerState"],
|
|
37
40
|
"general.getManagerState_GET": ["GET", "/getManagerState/{getManagerState}"],
|
|
38
41
|
"general.postDepartmentState_POST": ["POST", "/postDepartmentState"],
|
|
@@ -117,7 +117,6 @@ export interface ManagerState {
|
|
|
117
117
|
createdTimestamp?: string;
|
|
118
118
|
updatedTimestamp?: string;
|
|
119
119
|
}
|
|
120
|
-
|
|
121
120
|
export interface QueryDepartmentStateRequest {
|
|
122
121
|
page?: number;
|
|
123
122
|
pageSize?: number;
|
|
@@ -2041,6 +2040,114 @@ declare global {
|
|
|
2041
2040
|
>(
|
|
2042
2041
|
config: Config
|
|
2043
2042
|
): Alova2Method<PageHospitalState, 'hospitalStateRestful.getHospitalStates', Config>;
|
|
2043
|
+
/**
|
|
2044
|
+
* ---
|
|
2045
|
+
*
|
|
2046
|
+
* [GET]
|
|
2047
|
+
*
|
|
2048
|
+
* **path:** /管理/服务/医院/信息/{id}
|
|
2049
|
+
*
|
|
2050
|
+
* ---
|
|
2051
|
+
*
|
|
2052
|
+
* **Path Parameters**
|
|
2053
|
+
* ```ts
|
|
2054
|
+
* type PathParameters = {
|
|
2055
|
+
* id: string
|
|
2056
|
+
* }
|
|
2057
|
+
* ```
|
|
2058
|
+
*
|
|
2059
|
+
* ---
|
|
2060
|
+
*
|
|
2061
|
+
* **Response**
|
|
2062
|
+
* ```ts
|
|
2063
|
+
* type Response = Array<{
|
|
2064
|
+
* id?: string
|
|
2065
|
+
* name?: string
|
|
2066
|
+
* level?: string
|
|
2067
|
+
* address?: string
|
|
2068
|
+
* note?: string
|
|
2069
|
+
* // [items] start
|
|
2070
|
+
* // [items] end
|
|
2071
|
+
* admins?: Array<{
|
|
2072
|
+
* id?: string
|
|
2073
|
+
* name?: string
|
|
2074
|
+
* createdTimestamp?: string
|
|
2075
|
+
* updatedTimestamp?: string
|
|
2076
|
+
* gender?: string
|
|
2077
|
+
* identityNumber?: string
|
|
2078
|
+
* phoneNumber?: string
|
|
2079
|
+
* birthdate?: string
|
|
2080
|
+
* }>
|
|
2081
|
+
* // [items] start
|
|
2082
|
+
* // [items] end
|
|
2083
|
+
* members?: Array<{
|
|
2084
|
+
* id?: string
|
|
2085
|
+
* hospitalStateId?: string
|
|
2086
|
+
* name?: string
|
|
2087
|
+
* note?: string
|
|
2088
|
+
* // [items] start
|
|
2089
|
+
* // [items] end
|
|
2090
|
+
* admins?: Array<{
|
|
2091
|
+
* id?: string
|
|
2092
|
+
* name?: string
|
|
2093
|
+
* createdTimestamp?: string
|
|
2094
|
+
* updatedTimestamp?: string
|
|
2095
|
+
* gender?: string
|
|
2096
|
+
* identityNumber?: string
|
|
2097
|
+
* phoneNumber?: string
|
|
2098
|
+
* birthdate?: string
|
|
2099
|
+
* }>
|
|
2100
|
+
* // [items] start
|
|
2101
|
+
* // [items] end
|
|
2102
|
+
* members?: Array<{
|
|
2103
|
+
* id?: string
|
|
2104
|
+
* departmentStateId?: string
|
|
2105
|
+
* name?: string
|
|
2106
|
+
* note?: string
|
|
2107
|
+
* // [items] start
|
|
2108
|
+
* // [items] end
|
|
2109
|
+
* admins?: Array<{
|
|
2110
|
+
* id?: string
|
|
2111
|
+
* name?: string
|
|
2112
|
+
* createdTimestamp?: string
|
|
2113
|
+
* updatedTimestamp?: string
|
|
2114
|
+
* gender?: string
|
|
2115
|
+
* identityNumber?: string
|
|
2116
|
+
* phoneNumber?: string
|
|
2117
|
+
* birthdate?: string
|
|
2118
|
+
* }>
|
|
2119
|
+
* // [items] start
|
|
2120
|
+
* // [items] end
|
|
2121
|
+
* members?: Array<{
|
|
2122
|
+
* id?: string
|
|
2123
|
+
* name?: string
|
|
2124
|
+
* createdTimestamp?: string
|
|
2125
|
+
* updatedTimestamp?: string
|
|
2126
|
+
* gender?: string
|
|
2127
|
+
* identityNumber?: string
|
|
2128
|
+
* phoneNumber?: string
|
|
2129
|
+
* birthdate?: string
|
|
2130
|
+
* }>
|
|
2131
|
+
* createdTimestamp?: string
|
|
2132
|
+
* updatedTimestamp?: string
|
|
2133
|
+
* }>
|
|
2134
|
+
* createdTimestamp?: string
|
|
2135
|
+
* updatedTimestamp?: string
|
|
2136
|
+
* }>
|
|
2137
|
+
* createdTimestamp?: string
|
|
2138
|
+
* updatedTimestamp?: string
|
|
2139
|
+
* }>
|
|
2140
|
+
* ```
|
|
2141
|
+
*/
|
|
2142
|
+
getHospitalStateInfo<
|
|
2143
|
+
Config extends Alova2MethodConfig<HospitalState[]> & {
|
|
2144
|
+
pathParams: {
|
|
2145
|
+
id: string;
|
|
2146
|
+
};
|
|
2147
|
+
}
|
|
2148
|
+
>(
|
|
2149
|
+
config: Config
|
|
2150
|
+
): Alova2Method<HospitalState[], 'hospitalStateRestful.getHospitalStateInfo', Config>;
|
|
2044
2151
|
};
|
|
2045
2152
|
general: {
|
|
2046
2153
|
/**
|
|
@@ -2783,6 +2890,218 @@ declare global {
|
|
|
2783
2890
|
>(
|
|
2784
2891
|
config: Config
|
|
2785
2892
|
): Alova2Method<HospitalState, 'general.getHospitalState_GET', Config>;
|
|
2893
|
+
/**
|
|
2894
|
+
* ---
|
|
2895
|
+
*
|
|
2896
|
+
* [POST]
|
|
2897
|
+
*
|
|
2898
|
+
* **path:** /getHospitalStateInfo
|
|
2899
|
+
*
|
|
2900
|
+
* ---
|
|
2901
|
+
*
|
|
2902
|
+
* **RequestBody**
|
|
2903
|
+
* ```ts
|
|
2904
|
+
* type RequestBody = string
|
|
2905
|
+
* ```
|
|
2906
|
+
*
|
|
2907
|
+
* ---
|
|
2908
|
+
*
|
|
2909
|
+
* **Response**
|
|
2910
|
+
* ```ts
|
|
2911
|
+
* type Response = Array<{
|
|
2912
|
+
* id?: string
|
|
2913
|
+
* name?: string
|
|
2914
|
+
* level?: string
|
|
2915
|
+
* address?: string
|
|
2916
|
+
* note?: string
|
|
2917
|
+
* // [items] start
|
|
2918
|
+
* // [items] end
|
|
2919
|
+
* admins?: Array<{
|
|
2920
|
+
* id?: string
|
|
2921
|
+
* name?: string
|
|
2922
|
+
* createdTimestamp?: string
|
|
2923
|
+
* updatedTimestamp?: string
|
|
2924
|
+
* gender?: string
|
|
2925
|
+
* identityNumber?: string
|
|
2926
|
+
* phoneNumber?: string
|
|
2927
|
+
* birthdate?: string
|
|
2928
|
+
* }>
|
|
2929
|
+
* // [items] start
|
|
2930
|
+
* // [items] end
|
|
2931
|
+
* members?: Array<{
|
|
2932
|
+
* id?: string
|
|
2933
|
+
* hospitalStateId?: string
|
|
2934
|
+
* name?: string
|
|
2935
|
+
* note?: string
|
|
2936
|
+
* // [items] start
|
|
2937
|
+
* // [items] end
|
|
2938
|
+
* admins?: Array<{
|
|
2939
|
+
* id?: string
|
|
2940
|
+
* name?: string
|
|
2941
|
+
* createdTimestamp?: string
|
|
2942
|
+
* updatedTimestamp?: string
|
|
2943
|
+
* gender?: string
|
|
2944
|
+
* identityNumber?: string
|
|
2945
|
+
* phoneNumber?: string
|
|
2946
|
+
* birthdate?: string
|
|
2947
|
+
* }>
|
|
2948
|
+
* // [items] start
|
|
2949
|
+
* // [items] end
|
|
2950
|
+
* members?: Array<{
|
|
2951
|
+
* id?: string
|
|
2952
|
+
* departmentStateId?: string
|
|
2953
|
+
* name?: string
|
|
2954
|
+
* note?: string
|
|
2955
|
+
* // [items] start
|
|
2956
|
+
* // [items] end
|
|
2957
|
+
* admins?: Array<{
|
|
2958
|
+
* id?: string
|
|
2959
|
+
* name?: string
|
|
2960
|
+
* createdTimestamp?: string
|
|
2961
|
+
* updatedTimestamp?: string
|
|
2962
|
+
* gender?: string
|
|
2963
|
+
* identityNumber?: string
|
|
2964
|
+
* phoneNumber?: string
|
|
2965
|
+
* birthdate?: string
|
|
2966
|
+
* }>
|
|
2967
|
+
* // [items] start
|
|
2968
|
+
* // [items] end
|
|
2969
|
+
* members?: Array<{
|
|
2970
|
+
* id?: string
|
|
2971
|
+
* name?: string
|
|
2972
|
+
* createdTimestamp?: string
|
|
2973
|
+
* updatedTimestamp?: string
|
|
2974
|
+
* gender?: string
|
|
2975
|
+
* identityNumber?: string
|
|
2976
|
+
* phoneNumber?: string
|
|
2977
|
+
* birthdate?: string
|
|
2978
|
+
* }>
|
|
2979
|
+
* createdTimestamp?: string
|
|
2980
|
+
* updatedTimestamp?: string
|
|
2981
|
+
* }>
|
|
2982
|
+
* createdTimestamp?: string
|
|
2983
|
+
* updatedTimestamp?: string
|
|
2984
|
+
* }>
|
|
2985
|
+
* createdTimestamp?: string
|
|
2986
|
+
* updatedTimestamp?: string
|
|
2987
|
+
* }>
|
|
2988
|
+
* ```
|
|
2989
|
+
*/
|
|
2990
|
+
getHospitalStateInfo_POST<
|
|
2991
|
+
Config extends Alova2MethodConfig<HospitalState[]> & {
|
|
2992
|
+
data: string;
|
|
2993
|
+
}
|
|
2994
|
+
>(
|
|
2995
|
+
config: Config
|
|
2996
|
+
): Alova2Method<HospitalState[], 'general.getHospitalStateInfo_POST', Config>;
|
|
2997
|
+
/**
|
|
2998
|
+
* ---
|
|
2999
|
+
*
|
|
3000
|
+
* [GET]
|
|
3001
|
+
*
|
|
3002
|
+
* **path:** /getHospitalStateInfo/{getHospitalStateInfo}
|
|
3003
|
+
*
|
|
3004
|
+
* ---
|
|
3005
|
+
*
|
|
3006
|
+
* **Path Parameters**
|
|
3007
|
+
* ```ts
|
|
3008
|
+
* type PathParameters = {
|
|
3009
|
+
* getHospitalStateInfo: string
|
|
3010
|
+
* }
|
|
3011
|
+
* ```
|
|
3012
|
+
*
|
|
3013
|
+
* ---
|
|
3014
|
+
*
|
|
3015
|
+
* **Response**
|
|
3016
|
+
* ```ts
|
|
3017
|
+
* type Response = Array<{
|
|
3018
|
+
* id?: string
|
|
3019
|
+
* name?: string
|
|
3020
|
+
* level?: string
|
|
3021
|
+
* address?: string
|
|
3022
|
+
* note?: string
|
|
3023
|
+
* // [items] start
|
|
3024
|
+
* // [items] end
|
|
3025
|
+
* admins?: Array<{
|
|
3026
|
+
* id?: string
|
|
3027
|
+
* name?: string
|
|
3028
|
+
* createdTimestamp?: string
|
|
3029
|
+
* updatedTimestamp?: string
|
|
3030
|
+
* gender?: string
|
|
3031
|
+
* identityNumber?: string
|
|
3032
|
+
* phoneNumber?: string
|
|
3033
|
+
* birthdate?: string
|
|
3034
|
+
* }>
|
|
3035
|
+
* // [items] start
|
|
3036
|
+
* // [items] end
|
|
3037
|
+
* members?: Array<{
|
|
3038
|
+
* id?: string
|
|
3039
|
+
* hospitalStateId?: string
|
|
3040
|
+
* name?: string
|
|
3041
|
+
* note?: string
|
|
3042
|
+
* // [items] start
|
|
3043
|
+
* // [items] end
|
|
3044
|
+
* admins?: Array<{
|
|
3045
|
+
* id?: string
|
|
3046
|
+
* name?: string
|
|
3047
|
+
* createdTimestamp?: string
|
|
3048
|
+
* updatedTimestamp?: string
|
|
3049
|
+
* gender?: string
|
|
3050
|
+
* identityNumber?: string
|
|
3051
|
+
* phoneNumber?: string
|
|
3052
|
+
* birthdate?: string
|
|
3053
|
+
* }>
|
|
3054
|
+
* // [items] start
|
|
3055
|
+
* // [items] end
|
|
3056
|
+
* members?: Array<{
|
|
3057
|
+
* id?: string
|
|
3058
|
+
* departmentStateId?: string
|
|
3059
|
+
* name?: string
|
|
3060
|
+
* note?: string
|
|
3061
|
+
* // [items] start
|
|
3062
|
+
* // [items] end
|
|
3063
|
+
* admins?: Array<{
|
|
3064
|
+
* id?: string
|
|
3065
|
+
* name?: string
|
|
3066
|
+
* createdTimestamp?: string
|
|
3067
|
+
* updatedTimestamp?: string
|
|
3068
|
+
* gender?: string
|
|
3069
|
+
* identityNumber?: string
|
|
3070
|
+
* phoneNumber?: string
|
|
3071
|
+
* birthdate?: string
|
|
3072
|
+
* }>
|
|
3073
|
+
* // [items] start
|
|
3074
|
+
* // [items] end
|
|
3075
|
+
* members?: Array<{
|
|
3076
|
+
* id?: string
|
|
3077
|
+
* name?: string
|
|
3078
|
+
* createdTimestamp?: string
|
|
3079
|
+
* updatedTimestamp?: string
|
|
3080
|
+
* gender?: string
|
|
3081
|
+
* identityNumber?: string
|
|
3082
|
+
* phoneNumber?: string
|
|
3083
|
+
* birthdate?: string
|
|
3084
|
+
* }>
|
|
3085
|
+
* createdTimestamp?: string
|
|
3086
|
+
* updatedTimestamp?: string
|
|
3087
|
+
* }>
|
|
3088
|
+
* createdTimestamp?: string
|
|
3089
|
+
* updatedTimestamp?: string
|
|
3090
|
+
* }>
|
|
3091
|
+
* createdTimestamp?: string
|
|
3092
|
+
* updatedTimestamp?: string
|
|
3093
|
+
* }>
|
|
3094
|
+
* ```
|
|
3095
|
+
*/
|
|
3096
|
+
getHospitalStateInfo_GET<
|
|
3097
|
+
Config extends Alova2MethodConfig<HospitalState[]> & {
|
|
3098
|
+
pathParams: {
|
|
3099
|
+
getHospitalStateInfo: string;
|
|
3100
|
+
};
|
|
3101
|
+
}
|
|
3102
|
+
>(
|
|
3103
|
+
config: Config
|
|
3104
|
+
): Alova2Method<HospitalState[], 'general.getHospitalStateInfo_GET', Config>;
|
|
2786
3105
|
/**
|
|
2787
3106
|
* ---
|
|
2788
3107
|
*
|
|
@@ -4,6 +4,7 @@ export declare class AlovaHospital extends Hospital {
|
|
|
4
4
|
put(): Promise<this>;
|
|
5
5
|
post(): Promise<this>;
|
|
6
6
|
delete(): Promise<this>;
|
|
7
|
+
getHospitalInfo(id: string): Promise<Hospital[]>;
|
|
7
8
|
static query(page: number, pageSize: number, sort: string, hospitalStateId?: string, hospitalStateName?: string, hospitalStateLevel?: string, hospitalStateAddress?: string, hospitalStateNote?: string, startTime?: string, endTime?: string): Promise<{
|
|
8
9
|
data: AlovaHospital[];
|
|
9
10
|
total: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Hospital as
|
|
2
|
-
class e extends
|
|
1
|
+
import { Hospital as d } from "../../hospital.js";
|
|
2
|
+
class e extends d {
|
|
3
3
|
async get() {
|
|
4
4
|
return this.of(
|
|
5
5
|
await managerApi.hospitalStateRestful.getHospitalState({
|
|
@@ -38,25 +38,33 @@ class e extends m {
|
|
|
38
38
|
}).send(!0)
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
async getHospitalInfo(a) {
|
|
42
|
+
const s = await managerApi.hospitalStateRestful.getHospitalStateInfo({
|
|
43
|
+
pathParams: {
|
|
44
|
+
id: a
|
|
45
|
+
}
|
|
46
|
+
}).send(), i = await Promise.all(
|
|
47
|
+
s.map(async (n) => await new e().of(n))
|
|
48
|
+
);
|
|
49
|
+
return Promise.resolve(i);
|
|
50
|
+
}
|
|
51
|
+
static query(a, s, i, n, o, r, p, l, h, u) {
|
|
42
52
|
return managerApi.hospitalStateRestful.getHospitalStates({
|
|
43
53
|
data: {
|
|
44
54
|
page: a,
|
|
45
55
|
pageSize: s,
|
|
46
56
|
sort: i,
|
|
47
57
|
hospitalStateId: n,
|
|
48
|
-
hospitalStateName:
|
|
49
|
-
hospitalStateLevel:
|
|
58
|
+
hospitalStateName: o,
|
|
59
|
+
hospitalStateLevel: r,
|
|
50
60
|
hospitalStateAddress: p,
|
|
51
61
|
hospitalStateNote: l,
|
|
52
|
-
startTime:
|
|
53
|
-
endTime:
|
|
62
|
+
startTime: h,
|
|
63
|
+
endTime: u
|
|
54
64
|
},
|
|
55
65
|
async transform(t) {
|
|
56
66
|
return {
|
|
57
|
-
data: await Promise.all(
|
|
58
|
-
t.content.map((h) => new e().of(h))
|
|
59
|
-
),
|
|
67
|
+
data: await Promise.all(t.content.map((m) => new e().of(m))),
|
|
60
68
|
total: t.totalElements,
|
|
61
69
|
page: t.number,
|
|
62
70
|
pageSize: t.size,
|
|
@@ -20,5 +20,6 @@ export declare abstract class Hospital extends NetworkObject {
|
|
|
20
20
|
abstract post(): Promise<this>;
|
|
21
21
|
abstract put(): Promise<this>;
|
|
22
22
|
abstract delete(): Promise<this>;
|
|
23
|
+
abstract getHospitalInfo(id: string): Promise<Hospital[]>;
|
|
23
24
|
static query(page: number, pageSize: number, sort: string, hospitalStateId?: string, hospitalStateName?: string, hospitalStateLevel?: string, hospitalStateAddress?: string, hospitalStateNote?: string, startTime?: string, endTime?: string): Promise<Page<Hospital>>;
|
|
24
25
|
}
|