jmash-core-mp 0.1.76 → 0.1.78
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/.editorconfig +9 -9
- package/.gitignore +8 -0
- package/.npmignore +44 -0
- package/README.md +60 -60
- package/babel.config.json +34 -34
- package/eslint.config.mjs +7 -7
- package/lib/api/auth/index.d.ts +22 -22
- package/lib/api/auth/index.js +211 -211
- package/lib/api/auth/types.d.ts +90 -90
- package/lib/api/auth/types.js +9 -9
- package/lib/api/cms/index.d.ts +20 -20
- package/lib/api/cms/index.js +161 -161
- package/lib/api/cms/types.d.ts +201 -201
- package/lib/api/cms/types.js +1 -1
- package/lib/api/constant.d.ts +6 -6
- package/lib/api/constant.js +8 -8
- package/lib/api/dict/index.d.ts +24 -24
- package/lib/api/dict/index.js +51 -51
- package/lib/api/dict/types.d.ts +40 -40
- package/lib/api/dict/types.js +1 -1
- package/lib/api/dicts.d.ts +32 -32
- package/lib/api/dicts.js +118 -118
- package/lib/api/files/index.d.ts +25 -25
- package/lib/api/files/index.js +134 -134
- package/lib/api/files/types.d.ts +38 -38
- package/lib/api/files/types.js +1 -1
- package/lib/api/index.d.ts +5 -5
- package/lib/api/index.js +8 -8
- package/lib/api/myorgan/index.d.ts +8 -8
- package/lib/api/myorgan/index.js +24 -24
- package/lib/api/myorgan/types.d.ts +22 -22
- package/lib/api/myorgan/types.js +1 -1
- package/lib/api/region/index.d.ts +7 -7
- package/lib/api/region/index.js +20 -20
- package/lib/api/region/types.d.ts +19 -19
- package/lib/api/region/types.js +1 -1
- package/lib/api/shop/index.d.ts +11 -11
- package/lib/api/shop/index.js +53 -53
- package/lib/api/shop/types.d.ts +123 -123
- package/lib/api/shop/types.js +1 -1
- package/lib/api/storage/index.d.ts +11 -11
- package/lib/api/storage/index.js +53 -53
- package/lib/api/storage/types.d.ts +39 -39
- package/lib/api/storage/types.js +1 -1
- package/lib/api/types.d.ts +43 -43
- package/lib/api/types.js +1 -1
- package/lib/components/organ/browser-organ-list.mpx.d.ts +1 -1
- package/lib/components/organ/my-organ-list.mpx.d.ts +1 -1
- package/lib/components/{auth-user/jmash-update-user.mpx.d.ts → organ/organ-search.mpx.d.ts} +1 -1
- package/lib/components/{auth-user/jmash-user.mpx.d.ts → shop/branch-search.mpx.d.ts} +1 -1
- package/lib/components/{core/jmash-login.mpx.d.ts → shop/shop-search.mpx.d.ts} +1 -1
- package/lib/index.d.ts +28 -28
- package/lib/index.js +23 -23
- package/lib/{packages/pages/auth/setting-page.mpx.d.ts → pages/branch-search.mpx.d.ts} +1 -1
- package/lib/pages/organ-search.mpx.d.ts +1 -0
- package/lib/pages/organ.mpx.d.ts +1 -1
- package/lib/pages/shop-search.mpx.d.ts +1 -0
- package/lib/store/organ.d.ts +19 -19
- package/lib/store/organ.js +83 -83
- package/lib/store/shop.d.ts +18 -18
- package/lib/store/shop.js +104 -104
- package/lib/store/user.d.ts +35 -35
- package/lib/store/user.js +243 -243
- package/lib/utils/common.d.ts +37 -35
- package/lib/utils/common.js +178 -165
- package/lib/utils/config.d.ts +5 -5
- package/lib/utils/config.js +36 -36
- package/lib/utils/db.d.ts +52 -52
- package/lib/utils/db.js +202 -202
- package/lib/utils/grpc.d.ts +5 -5
- package/lib/utils/grpc.js +20 -20
- package/lib/utils/net.d.ts +7 -7
- package/lib/utils/net.js +15 -15
- package/lib/utils/request.d.ts +2 -2
- package/lib/utils/request.js +114 -114
- package/lib/utils/share.d.ts +16 -16
- package/lib/utils/share.js +196 -196
- package/mpx.config.js +38 -38
- package/package.json +1 -1
- package/pnpm-workspace.yaml +5 -0
- package/postcss.config.js +11 -11
- package/project.config.json +24 -24
- package/project.private.config.json +13 -13
- package/public/index.html +15 -15
- package/src/api/auth/index.ts +241 -241
- package/src/api/auth/types.ts +173 -173
- package/src/api/cms/index.ts +218 -218
- package/src/api/cms/types.ts +385 -385
- package/src/api/constant.ts +8 -8
- package/src/api/dict/index.ts +68 -68
- package/src/api/dict/types.ts +73 -73
- package/src/api/dicts.ts +132 -132
- package/src/api/files/index.ts +162 -162
- package/src/api/files/types.ts +67 -67
- package/src/api/index.ts +15 -15
- package/src/api/myorgan/index.ts +29 -29
- package/src/api/myorgan/types.ts +42 -42
- package/src/api/region/index.ts +24 -24
- package/src/api/region/types.ts +36 -36
- package/src/api/shop/index.ts +74 -74
- package/src/api/shop/types.ts +244 -244
- package/src/api/storage/index.ts +74 -74
- package/src/api/storage/types.ts +74 -74
- package/src/api/types.ts +74 -74
- package/src/app.mpx +78 -78
- package/src/components/auth-user/jmash-logout.mpx +93 -93
- package/src/components/auth-user/jmash-update-user.mpx +387 -387
- package/src/components/auth-user/jmash-update-user.web.mpx +367 -367
- package/src/components/auth-user/jmash-user.mpx +310 -310
- package/src/components/cms/jmash-cms-activity-item.mpx +207 -207
- package/src/components/cms/jmash-cms-activity-list.mpx +357 -357
- package/src/components/cms/jmash-cms-article-item.mpx +221 -221
- package/src/components/cms/jmash-cms-article-list.mpx +248 -248
- package/src/components/cms/jmash-cms-article-view.mpx +131 -131
- package/src/components/cms/jmash-cms-article.mpx +231 -231
- package/src/components/cms/jmash-cms-like.mpx +151 -151
- package/src/components/cms/jmash-cms-location-list.mpx +286 -286
- package/src/components/cms/jmash-cms-location.mpx +256 -256
- package/src/components/cms/jmash-cms-product-item.mpx +185 -185
- package/src/components/cms/jmash-cms-product-list.mpx +230 -230
- package/src/components/common/jmash-avatar-edit.mpx +154 -154
- package/src/components/common/jmash-cascader-region.mpx +118 -118
- package/src/components/common/jmash-cell-group.mpx +206 -206
- package/src/components/common/jmash-code-interest-popup.mpx +223 -223
- package/src/components/common/jmash-form-cell.mpx +491 -525
- package/src/components/common/jmash-menu.mpx +129 -129
- package/src/components/common/jmash-none-data.mpx +95 -95
- package/src/components/common/jmash-pic-swiper.mpx +72 -72
- package/src/components/common/jmash-popup.mpx +138 -138
- package/src/components/common/jmash-search.mpx +130 -130
- package/src/components/common/jmash-single-btn.mpx +53 -53
- package/src/components/common/jmash-stepper.mpx +236 -236
- package/src/components/common/jmash-swipe-cell.mpx +153 -153
- package/src/components/common/jmash-tab-bar.mpx +58 -58
- package/src/components/common/jmash-textarea.mpx +88 -88
- package/src/components/common/jmash-top-navigation.mpx +203 -203
- package/src/components/common/jmash-upload-picture.mpx +199 -199
- package/src/components/core/jmash-cms-protocol.mpx +72 -72
- package/src/components/core/jmash-login.ali.mpx +284 -284
- package/src/components/core/jmash-login.mpx +378 -378
- package/src/components/core/jmash-login.web.mpx +420 -420
- package/src/components/core/jmash-popup-login.ali.mpx +312 -312
- package/src/components/core/jmash-popup-login.mpx +414 -416
- package/src/components/core/jmash-popup-login.web.mpx +389 -389
- package/src/components/organ/browser-organ-list.mpx +66 -66
- package/src/components/organ/my-organ-list.mpx +67 -67
- package/src/components/organ/organ-item.mpx +124 -124
- package/src/components/organ/organ-search.mpx +148 -148
- package/src/components/organ/organ-selected-item.mpx +88 -88
- package/src/components/shop/branch-item.mpx +111 -111
- package/src/components/shop/branch-search.mpx +142 -142
- package/src/components/shop/shop-item.mpx +112 -112
- package/src/components/shop/shop-search.mpx +142 -142
- package/src/components/shop/shop-selected-item.mpx +89 -89
- package/src/custom-tab-bar/index.mpx +10 -10
- package/src/global.d.ts +11 -11
- package/src/index.ts +94 -94
- package/src/packages/index.mpx +16 -16
- package/src/packages/pages/auth/cms-protocol.mpx +35 -35
- package/src/packages/pages/auth/login.mpx +62 -62
- package/src/packages/pages/auth/setting-page.mpx +134 -134
- package/src/packages/pages/auth/update-user.mpx +17 -17
- package/src/packages/pages/cms/cms-activity-list.mpx +86 -86
- package/src/packages/pages/cms/cms-article-list.mpx +88 -88
- package/src/packages/pages/cms/cms-article.mpx +32 -32
- package/src/packages/pages/cms/cms-location-list.mpx +83 -83
- package/src/packages/pages/cms/cms-location.mpx +32 -32
- package/src/packages/pages/cms/cms-product-list.mpx +88 -88
- package/src/packages/pages/share/scan.mpx +103 -103
- package/src/pages/basic-component.mpx +30 -30
- package/src/pages/branch-search.mpx +60 -60
- package/src/pages/half-home.mpx +58 -58
- package/src/pages/home.mpx +54 -54
- package/src/pages/home2.mpx +45 -45
- package/src/pages/index.mpx +43 -43
- package/src/pages/organ-search.mpx +60 -60
- package/src/pages/organ.mpx +105 -105
- package/src/pages/shop-search.mpx +60 -60
- package/src/pages/tabbar/home.mpx +114 -114
- package/src/pages/tabbar/mall.mpx +87 -87
- package/src/pages/tabbar/my.mpx +79 -79
- package/src/pages/tabbar/organ.mpx +86 -86
- package/src/store/organ.ts +100 -100
- package/src/store/shop.ts +130 -130
- package/src/store/user.ts +288 -288
- package/src/styles/index.scss +20 -20
- package/src/styles/vars.scss +27 -27
- package/src/utils/common.ts +196 -178
- package/src/utils/config.ts +43 -43
- package/src/utils/db.ts +229 -229
- package/src/utils/grpc.ts +21 -21
- package/src/utils/net.ts +18 -18
- package/src/utils/request.ts +126 -126
- package/src/utils/share.ts +194 -194
- package/static/ali/mini.project.json +4 -4
- package/static/dd/project.config.json +15 -15
- package/static/swan/project.swan.json +14 -14
- package/static/tt/project.config.json +11 -11
- package/static/wx/project.config.json +40 -40
- package/uno.config.js +9 -9
- package/lib/packages/pages/share/scan.mpx.d.ts +0 -1
package/lib/api/shop/types.d.ts
CHANGED
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
export interface ShopInfoModel {
|
|
2
|
-
shopId?: string;
|
|
3
|
-
shopName?: string;
|
|
4
|
-
shopType?: boolean;
|
|
5
|
-
contacts?: string;
|
|
6
|
-
mobilePhone?: string;
|
|
7
|
-
mobilePhoneIns?: string;
|
|
8
|
-
picUrl?: string;
|
|
9
|
-
city?: string;
|
|
10
|
-
country?: string;
|
|
11
|
-
province?: string;
|
|
12
|
-
address?: string;
|
|
13
|
-
longitude?: string;
|
|
14
|
-
latitude?: string;
|
|
15
|
-
note?: string;
|
|
16
|
-
businessPicUrl?: string;
|
|
17
|
-
status?: boolean;
|
|
18
|
-
businessId?: string;
|
|
19
|
-
regionCode?: string;
|
|
20
|
-
adPics?: string;
|
|
21
|
-
organId?: string;
|
|
22
|
-
organTenant?: string;
|
|
23
|
-
createBy?: string;
|
|
24
|
-
createTime?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface ShopPageReq {
|
|
27
|
-
curPage?: number;
|
|
28
|
-
pageSize?: number;
|
|
29
|
-
orderName?: string;
|
|
30
|
-
orderAsc?: boolean;
|
|
31
|
-
likeShopName?: string;
|
|
32
|
-
hasStatus?: boolean;
|
|
33
|
-
status?: boolean;
|
|
34
|
-
shopName?: string;
|
|
35
|
-
organId?: string;
|
|
36
|
-
sceneId?: string;
|
|
37
|
-
excludeSceneId?: string;
|
|
38
|
-
}
|
|
39
|
-
export interface ShopPage {
|
|
40
|
-
results: Array<ShopInfoModel>;
|
|
41
|
-
curPage: number;
|
|
42
|
-
pageSize: number;
|
|
43
|
-
totalSize: number;
|
|
44
|
-
pageCount: number;
|
|
45
|
-
}
|
|
46
|
-
export interface BranchModel {
|
|
47
|
-
tenantId?: string;
|
|
48
|
-
branchId?: string;
|
|
49
|
-
shopId?: string;
|
|
50
|
-
facadeName?: string;
|
|
51
|
-
isHq?: boolean;
|
|
52
|
-
contacts?: string;
|
|
53
|
-
mobilePhone?: string;
|
|
54
|
-
mobilePhoneIns?: string;
|
|
55
|
-
businessPicUrl?: string;
|
|
56
|
-
picUrl?: string;
|
|
57
|
-
regionCode?: string;
|
|
58
|
-
regionName?: string;
|
|
59
|
-
address?: string;
|
|
60
|
-
longitude?: string;
|
|
61
|
-
latitude?: string;
|
|
62
|
-
note?: string;
|
|
63
|
-
businessStartHour?: string;
|
|
64
|
-
businessEndHour?: string;
|
|
65
|
-
status?: boolean;
|
|
66
|
-
createBy?: string;
|
|
67
|
-
createTime?: string;
|
|
68
|
-
category?: string;
|
|
69
|
-
isBusiness?: boolean;
|
|
70
|
-
distanceMeter?: string;
|
|
71
|
-
organTenant?: string;
|
|
72
|
-
}
|
|
73
|
-
export interface BranchKey {
|
|
74
|
-
tenant?: string;
|
|
75
|
-
branchId?: string;
|
|
76
|
-
}
|
|
77
|
-
export interface BranchPageReq {
|
|
78
|
-
tenant?: string;
|
|
79
|
-
curPage?: number;
|
|
80
|
-
pageSize?: number;
|
|
81
|
-
orderName?: string;
|
|
82
|
-
orderAsc?: boolean;
|
|
83
|
-
shopId?: string;
|
|
84
|
-
likeFacadeName?: string;
|
|
85
|
-
facadeName?: string;
|
|
86
|
-
likeRegionCode?: string;
|
|
87
|
-
shopIds?: string[];
|
|
88
|
-
hasIsHq?: boolean;
|
|
89
|
-
isHq?: boolean;
|
|
90
|
-
hasStatus?: boolean;
|
|
91
|
-
status?: boolean;
|
|
92
|
-
longitude?: number;
|
|
93
|
-
latitude?: number;
|
|
94
|
-
likeCategory?: string;
|
|
95
|
-
}
|
|
96
|
-
export interface BranchPage {
|
|
97
|
-
results: Array<BranchModel>;
|
|
98
|
-
curPage: number;
|
|
99
|
-
pageSize: number;
|
|
100
|
-
totalSize: number;
|
|
101
|
-
pageCount: number;
|
|
102
|
-
}
|
|
103
|
-
export interface ShopBranchsUsersModel {
|
|
104
|
-
tenantId?: string;
|
|
105
|
-
userId?: string;
|
|
106
|
-
shopBranchId?: string;
|
|
107
|
-
realName?: string;
|
|
108
|
-
nickName?: string;
|
|
109
|
-
headImage?: string;
|
|
110
|
-
mobilePhone?: string;
|
|
111
|
-
mobilePhoneIns?: string;
|
|
112
|
-
parentId?: string;
|
|
113
|
-
parentBranchId?: string;
|
|
114
|
-
invitationCode?: string;
|
|
115
|
-
invitationNum?: number;
|
|
116
|
-
status?: boolean;
|
|
117
|
-
createBy?: string;
|
|
118
|
-
createTime?: string;
|
|
119
|
-
updateBy?: string;
|
|
120
|
-
updateTime?: string;
|
|
121
|
-
isLeader?: boolean;
|
|
122
|
-
regionCode?: string;
|
|
123
|
-
}
|
|
1
|
+
export interface ShopInfoModel {
|
|
2
|
+
shopId?: string;
|
|
3
|
+
shopName?: string;
|
|
4
|
+
shopType?: boolean;
|
|
5
|
+
contacts?: string;
|
|
6
|
+
mobilePhone?: string;
|
|
7
|
+
mobilePhoneIns?: string;
|
|
8
|
+
picUrl?: string;
|
|
9
|
+
city?: string;
|
|
10
|
+
country?: string;
|
|
11
|
+
province?: string;
|
|
12
|
+
address?: string;
|
|
13
|
+
longitude?: string;
|
|
14
|
+
latitude?: string;
|
|
15
|
+
note?: string;
|
|
16
|
+
businessPicUrl?: string;
|
|
17
|
+
status?: boolean;
|
|
18
|
+
businessId?: string;
|
|
19
|
+
regionCode?: string;
|
|
20
|
+
adPics?: string;
|
|
21
|
+
organId?: string;
|
|
22
|
+
organTenant?: string;
|
|
23
|
+
createBy?: string;
|
|
24
|
+
createTime?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ShopPageReq {
|
|
27
|
+
curPage?: number;
|
|
28
|
+
pageSize?: number;
|
|
29
|
+
orderName?: string;
|
|
30
|
+
orderAsc?: boolean;
|
|
31
|
+
likeShopName?: string;
|
|
32
|
+
hasStatus?: boolean;
|
|
33
|
+
status?: boolean;
|
|
34
|
+
shopName?: string;
|
|
35
|
+
organId?: string;
|
|
36
|
+
sceneId?: string;
|
|
37
|
+
excludeSceneId?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface ShopPage {
|
|
40
|
+
results: Array<ShopInfoModel>;
|
|
41
|
+
curPage: number;
|
|
42
|
+
pageSize: number;
|
|
43
|
+
totalSize: number;
|
|
44
|
+
pageCount: number;
|
|
45
|
+
}
|
|
46
|
+
export interface BranchModel {
|
|
47
|
+
tenantId?: string;
|
|
48
|
+
branchId?: string;
|
|
49
|
+
shopId?: string;
|
|
50
|
+
facadeName?: string;
|
|
51
|
+
isHq?: boolean;
|
|
52
|
+
contacts?: string;
|
|
53
|
+
mobilePhone?: string;
|
|
54
|
+
mobilePhoneIns?: string;
|
|
55
|
+
businessPicUrl?: string;
|
|
56
|
+
picUrl?: string;
|
|
57
|
+
regionCode?: string;
|
|
58
|
+
regionName?: string;
|
|
59
|
+
address?: string;
|
|
60
|
+
longitude?: string;
|
|
61
|
+
latitude?: string;
|
|
62
|
+
note?: string;
|
|
63
|
+
businessStartHour?: string;
|
|
64
|
+
businessEndHour?: string;
|
|
65
|
+
status?: boolean;
|
|
66
|
+
createBy?: string;
|
|
67
|
+
createTime?: string;
|
|
68
|
+
category?: string;
|
|
69
|
+
isBusiness?: boolean;
|
|
70
|
+
distanceMeter?: string;
|
|
71
|
+
organTenant?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface BranchKey {
|
|
74
|
+
tenant?: string;
|
|
75
|
+
branchId?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface BranchPageReq {
|
|
78
|
+
tenant?: string;
|
|
79
|
+
curPage?: number;
|
|
80
|
+
pageSize?: number;
|
|
81
|
+
orderName?: string;
|
|
82
|
+
orderAsc?: boolean;
|
|
83
|
+
shopId?: string;
|
|
84
|
+
likeFacadeName?: string;
|
|
85
|
+
facadeName?: string;
|
|
86
|
+
likeRegionCode?: string;
|
|
87
|
+
shopIds?: string[];
|
|
88
|
+
hasIsHq?: boolean;
|
|
89
|
+
isHq?: boolean;
|
|
90
|
+
hasStatus?: boolean;
|
|
91
|
+
status?: boolean;
|
|
92
|
+
longitude?: number;
|
|
93
|
+
latitude?: number;
|
|
94
|
+
likeCategory?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface BranchPage {
|
|
97
|
+
results: Array<BranchModel>;
|
|
98
|
+
curPage: number;
|
|
99
|
+
pageSize: number;
|
|
100
|
+
totalSize: number;
|
|
101
|
+
pageCount: number;
|
|
102
|
+
}
|
|
103
|
+
export interface ShopBranchsUsersModel {
|
|
104
|
+
tenantId?: string;
|
|
105
|
+
userId?: string;
|
|
106
|
+
shopBranchId?: string;
|
|
107
|
+
realName?: string;
|
|
108
|
+
nickName?: string;
|
|
109
|
+
headImage?: string;
|
|
110
|
+
mobilePhone?: string;
|
|
111
|
+
mobilePhoneIns?: string;
|
|
112
|
+
parentId?: string;
|
|
113
|
+
parentBranchId?: string;
|
|
114
|
+
invitationCode?: string;
|
|
115
|
+
invitationNum?: number;
|
|
116
|
+
status?: boolean;
|
|
117
|
+
createBy?: string;
|
|
118
|
+
createTime?: string;
|
|
119
|
+
updateBy?: string;
|
|
120
|
+
updateTime?: string;
|
|
121
|
+
isLeader?: boolean;
|
|
122
|
+
regionCode?: string;
|
|
123
|
+
}
|
package/lib/api/shop/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ResponseData } from "../../api/types";
|
|
2
|
-
import { StorageOrganInfoReq, StorageOrganInfoList, StorageOrganBrowserUpdateReq, StorageOrganBrowserModel, StorageOrganInfoModel } from "./types";
|
|
3
|
-
declare class StorageApiImpl {
|
|
4
|
-
findMyOrganList(data: StorageOrganInfoReq): Promise<ResponseData<StorageOrganInfoList>>;
|
|
5
|
-
findStorageBrowserOrganList(data: StorageOrganInfoReq): Promise<ResponseData<StorageOrganInfoList>>;
|
|
6
|
-
findOrganTenant(): Promise<ResponseData<StorageOrganInfoModel>>;
|
|
7
|
-
findStorageOrganInfoList(data: StorageOrganInfoReq): Promise<ResponseData<StorageOrganInfoList>>;
|
|
8
|
-
updateStorageOrganBrowser(data: StorageOrganBrowserUpdateReq): Promise<ResponseData<StorageOrganBrowserModel>>;
|
|
9
|
-
}
|
|
10
|
-
declare const storageApi: StorageApiImpl;
|
|
11
|
-
export { storageApi };
|
|
1
|
+
import { ResponseData } from "../../api/types";
|
|
2
|
+
import { StorageOrganInfoReq, StorageOrganInfoList, StorageOrganBrowserUpdateReq, StorageOrganBrowserModel, StorageOrganInfoModel } from "./types";
|
|
3
|
+
declare class StorageApiImpl {
|
|
4
|
+
findMyOrganList(data: StorageOrganInfoReq): Promise<ResponseData<StorageOrganInfoList>>;
|
|
5
|
+
findStorageBrowserOrganList(data: StorageOrganInfoReq): Promise<ResponseData<StorageOrganInfoList>>;
|
|
6
|
+
findOrganTenant(): Promise<ResponseData<StorageOrganInfoModel>>;
|
|
7
|
+
findStorageOrganInfoList(data: StorageOrganInfoReq): Promise<ResponseData<StorageOrganInfoList>>;
|
|
8
|
+
updateStorageOrganBrowser(data: StorageOrganBrowserUpdateReq): Promise<ResponseData<StorageOrganBrowserModel>>;
|
|
9
|
+
}
|
|
10
|
+
declare const storageApi: StorageApiImpl;
|
|
11
|
+
export { storageApi };
|
package/lib/api/storage/index.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import mpx from "@mpxjs/core";
|
|
2
|
-
import { grpc } from "../../utils/grpc";
|
|
3
|
-
import { useOrganStore } from "../../store/organ";
|
|
4
|
-
class StorageApiImpl {
|
|
5
|
-
// 查询我的组织列表
|
|
6
|
-
findMyOrganList(data) {
|
|
7
|
-
grpc.clearEmpty(data);
|
|
8
|
-
const config = getApp().globalData.config;
|
|
9
|
-
return mpx.xfetch.fetch({
|
|
10
|
-
url: `/v1/storage/storage_organ/my_list/${config.tenant}?&serviceType[]=${data.serviceType}`,
|
|
11
|
-
method: "GET",
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
// 查询列表信息店铺用户浏览信息
|
|
15
|
-
findStorageBrowserOrganList(data) {
|
|
16
|
-
const config = getApp().globalData.config;
|
|
17
|
-
return mpx.xfetch.fetch({
|
|
18
|
-
url: `/v1/front/storage/storage_organ_browser/my_list/${config.tenant}?&serviceType[]=${data.serviceType}`,
|
|
19
|
-
method: "GET",
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
// 查询组织租户
|
|
23
|
-
findOrganTenant() {
|
|
24
|
-
const config = getApp().globalData.config;
|
|
25
|
-
const organStore = useOrganStore();
|
|
26
|
-
return mpx.xfetch.fetch({
|
|
27
|
-
url: `/v1/storage/storage_organ_info/organ_tenant/${config.tenant}/${organStore.organTenant}`,
|
|
28
|
-
method: "GET",
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
// 查询列表信息店铺
|
|
32
|
-
findStorageOrganInfoList(data) {
|
|
33
|
-
const config = getApp().globalData.config;
|
|
34
|
-
return mpx.xfetch.fetch({
|
|
35
|
-
url: `/v1/storage/storage_organ_info/list/${config.tenant}?&serviceType[]=${data.serviceType}`,
|
|
36
|
-
method: "GET",
|
|
37
|
-
data: data,
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
// 修改组织浏览信息
|
|
41
|
-
updateStorageOrganBrowser(data) {
|
|
42
|
-
const config = getApp().globalData.config;
|
|
43
|
-
data.tenant = config.tenant;
|
|
44
|
-
grpc.clearEmpty(data);
|
|
45
|
-
return mpx.xfetch.fetch({
|
|
46
|
-
url: "/v1/front/storage/storage_organ_browser/browse",
|
|
47
|
-
method: "PATCH",
|
|
48
|
-
data: data,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
const storageApi = new StorageApiImpl();
|
|
53
|
-
export { storageApi };
|
|
1
|
+
import mpx from "@mpxjs/core";
|
|
2
|
+
import { grpc } from "../../utils/grpc";
|
|
3
|
+
import { useOrganStore } from "../../store/organ";
|
|
4
|
+
class StorageApiImpl {
|
|
5
|
+
// 查询我的组织列表
|
|
6
|
+
findMyOrganList(data) {
|
|
7
|
+
grpc.clearEmpty(data);
|
|
8
|
+
const config = getApp().globalData.config;
|
|
9
|
+
return mpx.xfetch.fetch({
|
|
10
|
+
url: `/v1/storage/storage_organ/my_list/${config.tenant}?&serviceType[]=${data.serviceType}`,
|
|
11
|
+
method: "GET",
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
// 查询列表信息店铺用户浏览信息
|
|
15
|
+
findStorageBrowserOrganList(data) {
|
|
16
|
+
const config = getApp().globalData.config;
|
|
17
|
+
return mpx.xfetch.fetch({
|
|
18
|
+
url: `/v1/front/storage/storage_organ_browser/my_list/${config.tenant}?&serviceType[]=${data.serviceType}`,
|
|
19
|
+
method: "GET",
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
// 查询组织租户
|
|
23
|
+
findOrganTenant() {
|
|
24
|
+
const config = getApp().globalData.config;
|
|
25
|
+
const organStore = useOrganStore();
|
|
26
|
+
return mpx.xfetch.fetch({
|
|
27
|
+
url: `/v1/storage/storage_organ_info/organ_tenant/${config.tenant}/${organStore.organTenant}`,
|
|
28
|
+
method: "GET",
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
// 查询列表信息店铺
|
|
32
|
+
findStorageOrganInfoList(data) {
|
|
33
|
+
const config = getApp().globalData.config;
|
|
34
|
+
return mpx.xfetch.fetch({
|
|
35
|
+
url: `/v1/storage/storage_organ_info/list/${config.tenant}?&serviceType[]=${data.serviceType}`,
|
|
36
|
+
method: "GET",
|
|
37
|
+
data: data,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
// 修改组织浏览信息
|
|
41
|
+
updateStorageOrganBrowser(data) {
|
|
42
|
+
const config = getApp().globalData.config;
|
|
43
|
+
data.tenant = config.tenant;
|
|
44
|
+
grpc.clearEmpty(data);
|
|
45
|
+
return mpx.xfetch.fetch({
|
|
46
|
+
url: "/v1/front/storage/storage_organ_browser/browse",
|
|
47
|
+
method: "PATCH",
|
|
48
|
+
data: data,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const storageApi = new StorageApiImpl();
|
|
53
|
+
export { storageApi };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
export interface StorageOrganInfoReq {
|
|
2
|
-
serviceType: string;
|
|
3
|
-
likeOrganName?: string;
|
|
4
|
-
}
|
|
5
|
-
export interface StorageOrganTenant {
|
|
6
|
-
tenant?: string;
|
|
7
|
-
organTenant?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface StorageOrganInfoList {
|
|
10
|
-
results: StorageOrganInfoModel[];
|
|
11
|
-
}
|
|
12
|
-
export interface StorageOrganInfoModel {
|
|
13
|
-
storageId?: string;
|
|
14
|
-
organId?: string;
|
|
15
|
-
organName?: string;
|
|
16
|
-
organCode?: string;
|
|
17
|
-
serviceType?: string;
|
|
18
|
-
storage?: string;
|
|
19
|
-
status?: boolean;
|
|
20
|
-
createBy?: string;
|
|
21
|
-
createTime?: string;
|
|
22
|
-
organTenant?: string;
|
|
23
|
-
remark?: string;
|
|
24
|
-
logoUrl?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface ShopBrowserUserList {
|
|
27
|
-
results: ShopBrowserUserModel[];
|
|
28
|
-
}
|
|
29
|
-
export interface ShopBrowserUserModel {
|
|
30
|
-
shopName?: string;
|
|
31
|
-
picUrl?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface StorageOrganBrowserUpdateReq {
|
|
34
|
-
tenant?: string;
|
|
35
|
-
requestId: string;
|
|
36
|
-
storageId: string;
|
|
37
|
-
}
|
|
38
|
-
export interface StorageOrganBrowserModel {
|
|
39
|
-
}
|
|
1
|
+
export interface StorageOrganInfoReq {
|
|
2
|
+
serviceType: string;
|
|
3
|
+
likeOrganName?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface StorageOrganTenant {
|
|
6
|
+
tenant?: string;
|
|
7
|
+
organTenant?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface StorageOrganInfoList {
|
|
10
|
+
results: StorageOrganInfoModel[];
|
|
11
|
+
}
|
|
12
|
+
export interface StorageOrganInfoModel {
|
|
13
|
+
storageId?: string;
|
|
14
|
+
organId?: string;
|
|
15
|
+
organName?: string;
|
|
16
|
+
organCode?: string;
|
|
17
|
+
serviceType?: string;
|
|
18
|
+
storage?: string;
|
|
19
|
+
status?: boolean;
|
|
20
|
+
createBy?: string;
|
|
21
|
+
createTime?: string;
|
|
22
|
+
organTenant?: string;
|
|
23
|
+
remark?: string;
|
|
24
|
+
logoUrl?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ShopBrowserUserList {
|
|
27
|
+
results: ShopBrowserUserModel[];
|
|
28
|
+
}
|
|
29
|
+
export interface ShopBrowserUserModel {
|
|
30
|
+
shopName?: string;
|
|
31
|
+
picUrl?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface StorageOrganBrowserUpdateReq {
|
|
34
|
+
tenant?: string;
|
|
35
|
+
requestId: string;
|
|
36
|
+
storageId: string;
|
|
37
|
+
}
|
|
38
|
+
export interface StorageOrganBrowserModel {
|
|
39
|
+
}
|
package/lib/api/storage/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/lib/api/types.d.ts
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
/// <reference types="miniprogram-api-typings" />
|
|
2
|
-
/// <reference types="miniprogram-api-typings" />
|
|
3
|
-
export type ResponseData<T extends string | WechatMiniprogram.IAnyObject | ArrayBuffer = string | WechatMiniprogram.IAnyObject | ArrayBuffer> = WechatMiniprogram.RequestSuccessCallbackResult<T>;
|
|
4
|
-
export interface AppConfig {
|
|
5
|
-
tenant: string;
|
|
6
|
-
|
|
7
|
-
baseUrl: string;
|
|
8
|
-
resourceUrl: string;
|
|
9
|
-
appId: string;
|
|
10
|
-
componentAppid: string;
|
|
11
|
-
wechatComponentAppId: string;
|
|
12
|
-
wechatAppId: string;
|
|
13
|
-
wechatBiz: string;
|
|
14
|
-
siteTenant: string;
|
|
15
|
-
siteId: string;
|
|
16
|
-
dev: boolean;
|
|
17
|
-
testNewUser: boolean;
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
}
|
|
20
|
-
export interface ValidateData {
|
|
21
|
-
validate: boolean;
|
|
22
|
-
message: string;
|
|
23
|
-
}
|
|
24
|
-
export interface EventBase {
|
|
25
|
-
changedTouches?: any;
|
|
26
|
-
currentTarget: EventTarget;
|
|
27
|
-
target?: EventTarget;
|
|
28
|
-
type?: string;
|
|
29
|
-
detail?: any;
|
|
30
|
-
touches: any;
|
|
31
|
-
}
|
|
32
|
-
export interface EventTarget {
|
|
33
|
-
dataset: any;
|
|
34
|
-
id: string | number;
|
|
35
|
-
offsetLeft?: number;
|
|
36
|
-
offsetTop?: number;
|
|
37
|
-
}
|
|
38
|
-
export interface CanvasResponse {
|
|
39
|
-
width?: number;
|
|
40
|
-
height?: number;
|
|
41
|
-
nodeCanvasType?: string;
|
|
42
|
-
node: any;
|
|
43
|
-
}
|
|
1
|
+
/// <reference types="miniprogram-api-typings" />
|
|
2
|
+
/// <reference types="miniprogram-api-typings" />
|
|
3
|
+
export type ResponseData<T extends string | WechatMiniprogram.IAnyObject | ArrayBuffer = string | WechatMiniprogram.IAnyObject | ArrayBuffer> = WechatMiniprogram.RequestSuccessCallbackResult<T>;
|
|
4
|
+
export interface AppConfig {
|
|
5
|
+
tenant: string;
|
|
6
|
+
xcxName: string;
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
resourceUrl: string;
|
|
9
|
+
appId: string;
|
|
10
|
+
componentAppid: string;
|
|
11
|
+
wechatComponentAppId: string;
|
|
12
|
+
wechatAppId: string;
|
|
13
|
+
wechatBiz: string;
|
|
14
|
+
siteTenant: string;
|
|
15
|
+
siteId: string;
|
|
16
|
+
dev: boolean;
|
|
17
|
+
testNewUser: boolean;
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
|
20
|
+
export interface ValidateData {
|
|
21
|
+
validate: boolean;
|
|
22
|
+
message: string;
|
|
23
|
+
}
|
|
24
|
+
export interface EventBase {
|
|
25
|
+
changedTouches?: any;
|
|
26
|
+
currentTarget: EventTarget;
|
|
27
|
+
target?: EventTarget;
|
|
28
|
+
type?: string;
|
|
29
|
+
detail?: any;
|
|
30
|
+
touches: any;
|
|
31
|
+
}
|
|
32
|
+
export interface EventTarget {
|
|
33
|
+
dataset: any;
|
|
34
|
+
id: string | number;
|
|
35
|
+
offsetLeft?: number;
|
|
36
|
+
offsetTop?: number;
|
|
37
|
+
}
|
|
38
|
+
export interface CanvasResponse {
|
|
39
|
+
width?: number;
|
|
40
|
+
height?: number;
|
|
41
|
+
nodeCanvasType?: string;
|
|
42
|
+
node: any;
|
|
43
|
+
}
|
package/lib/api/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export type { AppConfig, ResponseData, ValidateData, EventBase, EventTarget, CanvasResponse, } from "./api/types";
|
|
2
|
-
export type { LoginReq, LoginRes, RolesPerms, WebLoginReq, TokenModel, PhoneRegisterReq, PhoneReplaceReq, UpdateUserReq, UserInfoReq, UserInfo, GzhSubscribeCheckReq, } from "./api/auth/types";
|
|
3
|
-
export type { CmsSiteList, CmsChannelReq, CmsChannelList, CmsContentInfoReq, CmsContentInfoModel, CmsInfoModel, CmsInfoContentModel, CmsChannelModel, } from "./api/cms/types";
|
|
4
|
-
export type { Entry, DictEntryModel, DictEntryLayModel, } from "./api/dict/types";
|
|
5
|
-
export { EntryDict, EnumDict, EntryLayDict, CustomBizDict } from "./api/dicts";
|
|
6
|
-
export type { FileInfo, FileBase64Req, FileDownInfo, FileWebReq, } from "./api/files/types";
|
|
7
|
-
export type { DictRegionList, DictRegionReq, DictRegionModel, } from "./api/region/types";
|
|
8
|
-
export type { StorageOrganInfoReq, StorageOrganInfoList, StorageOrganInfoModel, ShopBrowserUserList, ShopBrowserUserModel, StorageOrganBrowserUpdateReq, StorageOrganBrowserModel, } from "./api/storage/types";
|
|
9
|
-
export type { ShopInfoModel, BranchModel, BranchPageReq, BranchPage, ShopPageReq, ShopPage, } from "./api/shop/types";
|
|
10
|
-
export { mpxFetch } from "./utils/request";
|
|
11
|
-
export { config, initConfig, setConfig } from "./utils/config";
|
|
12
|
-
export { grpc } from "./utils/grpc";
|
|
13
|
-
export { db } from "./utils/db";
|
|
14
|
-
export { useUserStore } from "./store/user";
|
|
15
|
-
export { useOrganStore } from "./store/organ";
|
|
16
|
-
export { useShopStore } from "./store/shop";
|
|
17
|
-
export { authApi } from "./api/auth";
|
|
18
|
-
export { cmsApi } from "./api/cms";
|
|
19
|
-
export { dictApi } from "./api/dict";
|
|
20
|
-
export { fileApi } from "./api/files";
|
|
21
|
-
export { regionApi } from "./api/region";
|
|
22
|
-
export { storageApi } from "./api/storage";
|
|
23
|
-
export { shopApi } from "./api/shop";
|
|
24
|
-
export { net } from "./utils/net";
|
|
25
|
-
export { share } from "./utils/share";
|
|
26
|
-
export { getHeight, formatDateTime, validateRules, validateRequired, } from "./utils/common";
|
|
27
|
-
import * as dayjs from "dayjs";
|
|
28
|
-
export { dayjs };
|
|
1
|
+
export type { AppConfig, ResponseData, ValidateData, EventBase, EventTarget, CanvasResponse, } from "./api/types";
|
|
2
|
+
export type { LoginReq, LoginRes, RolesPerms, WebLoginReq, TokenModel, PhoneRegisterReq, PhoneReplaceReq, UpdateUserReq, UserInfoReq, UserInfo, GzhSubscribeCheckReq, } from "./api/auth/types";
|
|
3
|
+
export type { CmsSiteList, CmsChannelReq, CmsChannelList, CmsContentInfoReq, CmsContentInfoModel, CmsInfoModel, CmsInfoContentModel, CmsChannelModel, } from "./api/cms/types";
|
|
4
|
+
export type { Entry, DictEntryModel, DictEntryLayModel, } from "./api/dict/types";
|
|
5
|
+
export { EntryDict, EnumDict, EntryLayDict, CustomBizDict } from "./api/dicts";
|
|
6
|
+
export type { FileInfo, FileBase64Req, FileDownInfo, FileWebReq, } from "./api/files/types";
|
|
7
|
+
export type { DictRegionList, DictRegionReq, DictRegionModel, } from "./api/region/types";
|
|
8
|
+
export type { StorageOrganInfoReq, StorageOrganInfoList, StorageOrganInfoModel, ShopBrowserUserList, ShopBrowserUserModel, StorageOrganBrowserUpdateReq, StorageOrganBrowserModel, } from "./api/storage/types";
|
|
9
|
+
export type { ShopInfoModel, BranchModel, BranchPageReq, BranchPage, ShopPageReq, ShopPage, } from "./api/shop/types";
|
|
10
|
+
export { mpxFetch } from "./utils/request";
|
|
11
|
+
export { config, initConfig, setConfig } from "./utils/config";
|
|
12
|
+
export { grpc } from "./utils/grpc";
|
|
13
|
+
export { db } from "./utils/db";
|
|
14
|
+
export { useUserStore } from "./store/user";
|
|
15
|
+
export { useOrganStore } from "./store/organ";
|
|
16
|
+
export { useShopStore } from "./store/shop";
|
|
17
|
+
export { authApi } from "./api/auth";
|
|
18
|
+
export { cmsApi } from "./api/cms";
|
|
19
|
+
export { dictApi } from "./api/dict";
|
|
20
|
+
export { fileApi } from "./api/files";
|
|
21
|
+
export { regionApi } from "./api/region";
|
|
22
|
+
export { storageApi } from "./api/storage";
|
|
23
|
+
export { shopApi } from "./api/shop";
|
|
24
|
+
export { net } from "./utils/net";
|
|
25
|
+
export { share } from "./utils/share";
|
|
26
|
+
export { getHeight, formatDateTime, validateRules, validateRequired, } from "./utils/common";
|
|
27
|
+
import * as dayjs from "dayjs";
|
|
28
|
+
export { dayjs };
|