jmash-core-mp 0.1.21 → 0.1.22
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/README.md +60 -60
- package/babel.config.json +34 -34
- package/eslint.config.mjs +7 -7
- package/lib/api/auth/index.d.ts +21 -21
- package/lib/api/auth/index.js +199 -199
- package/lib/api/auth/types.d.ts +86 -86
- 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 +200 -200
- package/lib/api/cms/types.js +1 -1
- package/lib/api/constant.d.ts +5 -5
- package/lib/api/constant.js +6 -6
- package/lib/api/dict/index.d.ts +18 -18
- package/lib/api/dict/index.js +34 -34
- package/lib/api/dict/types.d.ts +28 -28
- package/lib/api/dict/types.js +1 -1
- package/lib/api/dicts.d.ts +18 -18
- package/lib/api/dicts.js +67 -67
- package/lib/api/files/index.d.ts +25 -25
- package/lib/api/files/index.js +135 -135
- package/lib/api/files/types.d.ts +38 -38
- package/lib/api/files/types.js +1 -1
- package/lib/api/index.d.ts +4 -4
- package/lib/api/index.js +6 -6
- 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 +19 -19
- package/lib/api/region/types.d.ts +19 -19
- package/lib/api/region/types.js +1 -1
- package/lib/api/storage/index.d.ts +10 -10
- package/lib/api/storage/index.js +43 -43
- package/lib/api/storage/types.d.ts +28 -28
- package/lib/api/storage/types.js +1 -1
- package/lib/api/types.d.ts +42 -42
- package/lib/api/types.js +1 -1
- package/lib/app.mpx.d.ts +1 -1
- package/lib/components/auth-user/jmash-update-user.mpx.d.ts +1 -1
- package/lib/components/auth-user/jmash-user.mpx.d.ts +1 -1
- package/lib/components/cms/jmash-cms-acticle-list.mpx.d.ts +1 -1
- package/lib/components/cms/jmash-cms-article-item.mpx.d.ts +1 -1
- package/lib/components/cms/jmash-cms-article-view.mpx.d.ts +1 -0
- package/lib/components/cms/jmash-cms-article.mpx.d.ts +1 -1
- package/lib/components/cms/jmash-cms-like.mpx.d.ts +1 -1
- package/lib/components/common/jmash-upload-picture.mpx.d.ts +1 -0
- package/lib/components/core/jmash-login.mpx.d.ts +1 -0
- package/lib/index.d.ts +21 -21
- package/lib/index.js +14 -14
- package/lib/packages/pages/cms/cms-article-list.mpx.d.ts +1 -1
- package/lib/pages/index.mpx.d.ts +1 -0
- package/lib/store/user.d.ts +31 -31
- package/lib/store/user.js +227 -227
- package/lib/utils/common.d.ts +35 -35
- package/lib/utils/common.js +166 -166
- package/lib/utils/config.d.ts +5 -5
- package/lib/utils/config.js +29 -29
- package/lib/utils/db.d.ts +21 -21
- package/lib/utils/db.js +84 -84
- 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 +123 -123
- package/mpx.config.js +27 -27
- package/package.json +1 -1
- 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 +227 -227
- package/src/api/auth/types.ts +166 -166
- package/src/api/cms/index.ts +218 -218
- package/src/api/cms/types.ts +379 -379
- package/src/api/constant.ts +6 -6
- package/src/api/dict/index.ts +44 -44
- package/src/api/dict/types.ts +49 -49
- package/src/api/dicts.ts +72 -72
- package/src/api/files/index.ts +163 -163
- package/src/api/files/types.ts +67 -67
- package/src/api/index.ts +11 -11
- package/src/api/myorgan/types.ts +42 -42
- package/src/api/region/index.ts +23 -23
- package/src/api/region/types.ts +36 -36
- package/src/api/storage/index.ts +62 -62
- package/src/api/storage/types.ts +54 -54
- package/src/api/types.ts +72 -72
- package/src/app.mpx +71 -71
- package/src/components/auth-user/jmash-logout.mpx +91 -91
- package/src/components/auth-user/jmash-update-user.mpx +386 -386
- package/src/components/auth-user/jmash-update-user.web.mpx +366 -366
- package/src/components/auth-user/jmash-user.mpx +359 -359
- package/src/components/cms/jmash-cms-acticle-list.mpx +182 -182
- package/src/components/cms/jmash-cms-article-item.mpx +241 -241
- package/src/components/cms/jmash-cms-article-view.mpx +131 -131
- package/src/components/cms/jmash-cms-article.mpx +68 -68
- package/src/components/cms/jmash-cms-like.mpx +151 -151
- package/src/components/common/jmash-avatar-edit.mpx +153 -153
- package/src/components/common/jmash-cascader-region.mpx +112 -112
- package/src/components/common/jmash-menu.mpx +129 -129
- package/src/components/common/jmash-none-data.mpx +82 -82
- package/src/components/common/jmash-pic-swiper.mpx +71 -71
- package/src/components/common/jmash-popup.mpx +137 -137
- package/src/components/common/jmash-search.mpx +126 -126
- package/src/components/common/jmash-single-btn.mpx +53 -53
- package/src/components/common/jmash-stepper.mpx +214 -214
- package/src/components/common/jmash-tab-bar.mpx +50 -50
- 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 +129 -126
- package/src/components/core/jmash-cms-protocol.mpx +66 -66
- package/src/components/core/jmash-login.ali.mpx +284 -284
- package/src/components/core/jmash-login.mpx +348 -348
- package/src/components/core/jmash-login.web.mpx +421 -421
- package/src/components/core/jmash-popup-login.ali.mpx +311 -311
- package/src/components/core/jmash-popup-login.mpx +415 -415
- package/src/components/core/jmash-popup-login.web.mpx +389 -389
- package/src/custom-tab-bar/index.mpx +10 -10
- package/src/global.d.ts +11 -11
- package/src/index.ts +71 -71
- package/src/packages/index.mpx +10 -10
- package/src/packages/pages/auth/cms-protocol.mpx +31 -31
- package/src/packages/pages/auth/login.mpx +59 -59
- package/src/packages/pages/auth/update-user.mpx +17 -17
- package/src/packages/pages/cms/cms-article-list.mpx +164 -164
- package/src/packages/pages/cms/cms-article.mpx +32 -32
- package/src/pages/basic-component.mpx +30 -30
- package/src/pages/half-home.mpx +58 -58
- package/src/pages/home.mpx +52 -52
- package/src/pages/home2.mpx +47 -47
- package/src/pages/index.mpx +13 -3
- package/src/pages/tabbar/home.mpx +77 -77
- package/src/pages/tabbar/my.mpx +80 -80
- package/src/store/user.ts +270 -270
- package/src/styles/index.scss +20 -20
- package/src/styles/vars.scss +27 -27
- package/src/utils/common.ts +179 -179
- package/src/utils/config.ts +35 -35
- package/src/utils/db.ts +100 -100
- package/src/utils/grpc.ts +21 -21
- package/src/utils/net.ts +18 -18
- package/src/utils/request.ts +134 -134
- 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
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export interface DictRegionReq {
|
|
2
|
-
tenant?: string;
|
|
3
|
-
hasEnable?: boolean;
|
|
4
|
-
enable?: boolean;
|
|
5
|
-
parentId?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface DictRegionList {
|
|
8
|
-
results: Array<DictRegionModel>;
|
|
9
|
-
}
|
|
10
|
-
export interface DictRegionModel {
|
|
11
|
-
regionId?: string;
|
|
12
|
-
regionCode?: string;
|
|
13
|
-
regionName?: string;
|
|
14
|
-
text?: string;
|
|
15
|
-
value?: string;
|
|
16
|
-
hasChildren?: boolean;
|
|
17
|
-
regionType?: string;
|
|
18
|
-
children?: Array<DictRegionModel>;
|
|
19
|
-
}
|
|
1
|
+
export interface DictRegionReq {
|
|
2
|
+
tenant?: string;
|
|
3
|
+
hasEnable?: boolean;
|
|
4
|
+
enable?: boolean;
|
|
5
|
+
parentId?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DictRegionList {
|
|
8
|
+
results: Array<DictRegionModel>;
|
|
9
|
+
}
|
|
10
|
+
export interface DictRegionModel {
|
|
11
|
+
regionId?: string;
|
|
12
|
+
regionCode?: string;
|
|
13
|
+
regionName?: string;
|
|
14
|
+
text?: string;
|
|
15
|
+
value?: string;
|
|
16
|
+
hasChildren?: boolean;
|
|
17
|
+
regionType?: string;
|
|
18
|
+
children?: Array<DictRegionModel>;
|
|
19
|
+
}
|
package/lib/api/region/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ResponseData } from "../../api/types";
|
|
2
|
-
import { StorageOrganInfoReq, StorageOrganInfoList, StorageOrganBrowserUpdateReq, StorageOrganBrowserModel } from "./types";
|
|
3
|
-
declare class StorageApiImpl {
|
|
4
|
-
findMyOrganList(data: StorageOrganInfoReq): Promise<ResponseData<StorageOrganInfoList>>;
|
|
5
|
-
findStorageBrowserOrganList(data: StorageOrganInfoReq): Promise<ResponseData<StorageOrganInfoList>>;
|
|
6
|
-
findStorageOrganInfoList(data: StorageOrganInfoReq): Promise<ResponseData<StorageOrganInfoList>>;
|
|
7
|
-
updateStorageOrganBrowser(data: StorageOrganBrowserUpdateReq): Promise<ResponseData<StorageOrganBrowserModel>>;
|
|
8
|
-
}
|
|
9
|
-
declare const storageApi: StorageApiImpl;
|
|
10
|
-
export { storageApi };
|
|
1
|
+
import { ResponseData } from "../../api/types";
|
|
2
|
+
import { StorageOrganInfoReq, StorageOrganInfoList, StorageOrganBrowserUpdateReq, StorageOrganBrowserModel } from "./types";
|
|
3
|
+
declare class StorageApiImpl {
|
|
4
|
+
findMyOrganList(data: StorageOrganInfoReq): Promise<ResponseData<StorageOrganInfoList>>;
|
|
5
|
+
findStorageBrowserOrganList(data: StorageOrganInfoReq): Promise<ResponseData<StorageOrganInfoList>>;
|
|
6
|
+
findStorageOrganInfoList(data: StorageOrganInfoReq): Promise<ResponseData<StorageOrganInfoList>>;
|
|
7
|
+
updateStorageOrganBrowser(data: StorageOrganBrowserUpdateReq): Promise<ResponseData<StorageOrganBrowserModel>>;
|
|
8
|
+
}
|
|
9
|
+
declare const storageApi: StorageApiImpl;
|
|
10
|
+
export { storageApi };
|
package/lib/api/storage/index.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import mpx from "@mpxjs/core";
|
|
2
|
-
import { grpc } from "../../utils/grpc";
|
|
3
|
-
class StorageApiImpl {
|
|
4
|
-
// 查询我的组织列表
|
|
5
|
-
findMyOrganList(data) {
|
|
6
|
-
grpc.clearEmpty(data);
|
|
7
|
-
const config = getApp().globalData.config;
|
|
8
|
-
return mpx.xfetch.fetch({
|
|
9
|
-
url: `/v1/storage/storage_organ/my_list/${config.tenant}?&serviceType[]=${data.serviceType}`,
|
|
10
|
-
method: "GET",
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
// 查询列表信息店铺用户浏览信息
|
|
14
|
-
findStorageBrowserOrganList(data) {
|
|
15
|
-
const config = getApp().globalData.config;
|
|
16
|
-
return mpx.xfetch.fetch({
|
|
17
|
-
url: `/v1/front/storage/storage_organ_browser/my_list/${config.tenant}?&serviceType[]=${data.serviceType}`,
|
|
18
|
-
method: "GET",
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
// 查询列表信息店铺用户浏览信息
|
|
22
|
-
findStorageOrganInfoList(data) {
|
|
23
|
-
const config = getApp().globalData.config;
|
|
24
|
-
return mpx.xfetch.fetch({
|
|
25
|
-
url: `/v1/storage/storage_organ_info/list/${config.tenant}?&serviceType[]=${data.serviceType}`,
|
|
26
|
-
method: "GET",
|
|
27
|
-
data: data,
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
// 修改组织浏览信息
|
|
31
|
-
updateStorageOrganBrowser(data) {
|
|
32
|
-
const config = getApp().globalData.config;
|
|
33
|
-
data.tenant = config.tenant;
|
|
34
|
-
grpc.clearEmpty(data);
|
|
35
|
-
return mpx.xfetch.fetch({
|
|
36
|
-
url: "/v1/front/storage/storage_organ_browser/browse",
|
|
37
|
-
method: "PATCH",
|
|
38
|
-
data: data,
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
const storageApi = new StorageApiImpl();
|
|
43
|
-
export { storageApi };
|
|
1
|
+
import mpx from "@mpxjs/core";
|
|
2
|
+
import { grpc } from "../../utils/grpc";
|
|
3
|
+
class StorageApiImpl {
|
|
4
|
+
// 查询我的组织列表
|
|
5
|
+
findMyOrganList(data) {
|
|
6
|
+
grpc.clearEmpty(data);
|
|
7
|
+
const config = getApp().globalData.config;
|
|
8
|
+
return mpx.xfetch.fetch({
|
|
9
|
+
url: `/v1/storage/storage_organ/my_list/${config.tenant}?&serviceType[]=${data.serviceType}`,
|
|
10
|
+
method: "GET",
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
// 查询列表信息店铺用户浏览信息
|
|
14
|
+
findStorageBrowserOrganList(data) {
|
|
15
|
+
const config = getApp().globalData.config;
|
|
16
|
+
return mpx.xfetch.fetch({
|
|
17
|
+
url: `/v1/front/storage/storage_organ_browser/my_list/${config.tenant}?&serviceType[]=${data.serviceType}`,
|
|
18
|
+
method: "GET",
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
// 查询列表信息店铺用户浏览信息
|
|
22
|
+
findStorageOrganInfoList(data) {
|
|
23
|
+
const config = getApp().globalData.config;
|
|
24
|
+
return mpx.xfetch.fetch({
|
|
25
|
+
url: `/v1/storage/storage_organ_info/list/${config.tenant}?&serviceType[]=${data.serviceType}`,
|
|
26
|
+
method: "GET",
|
|
27
|
+
data: data,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
// 修改组织浏览信息
|
|
31
|
+
updateStorageOrganBrowser(data) {
|
|
32
|
+
const config = getApp().globalData.config;
|
|
33
|
+
data.tenant = config.tenant;
|
|
34
|
+
grpc.clearEmpty(data);
|
|
35
|
+
return mpx.xfetch.fetch({
|
|
36
|
+
url: "/v1/front/storage/storage_organ_browser/browse",
|
|
37
|
+
method: "PATCH",
|
|
38
|
+
data: data,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
const storageApi = new StorageApiImpl();
|
|
43
|
+
export { storageApi };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export interface StorageOrganInfoReq {
|
|
2
|
-
serviceType: string;
|
|
3
|
-
likeOrganName?: string;
|
|
4
|
-
}
|
|
5
|
-
export interface StorageOrganInfoList {
|
|
6
|
-
results: StorageOrganInfoModel[];
|
|
7
|
-
}
|
|
8
|
-
export interface StorageOrganInfoModel {
|
|
9
|
-
organName?: string;
|
|
10
|
-
logoUrl?: string;
|
|
11
|
-
createTime?: string;
|
|
12
|
-
remark?: string;
|
|
13
|
-
organTenant?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface ShopBrowserUserList {
|
|
16
|
-
results: ShopBrowserUserModel[];
|
|
17
|
-
}
|
|
18
|
-
export interface ShopBrowserUserModel {
|
|
19
|
-
shopName?: string;
|
|
20
|
-
picUrl?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface StorageOrganBrowserUpdateReq {
|
|
23
|
-
tenant?: string;
|
|
24
|
-
requestId: string;
|
|
25
|
-
storageId: string;
|
|
26
|
-
}
|
|
27
|
-
export interface StorageOrganBrowserModel {
|
|
28
|
-
}
|
|
1
|
+
export interface StorageOrganInfoReq {
|
|
2
|
+
serviceType: string;
|
|
3
|
+
likeOrganName?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface StorageOrganInfoList {
|
|
6
|
+
results: StorageOrganInfoModel[];
|
|
7
|
+
}
|
|
8
|
+
export interface StorageOrganInfoModel {
|
|
9
|
+
organName?: string;
|
|
10
|
+
logoUrl?: string;
|
|
11
|
+
createTime?: string;
|
|
12
|
+
remark?: string;
|
|
13
|
+
organTenant?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ShopBrowserUserList {
|
|
16
|
+
results: ShopBrowserUserModel[];
|
|
17
|
+
}
|
|
18
|
+
export interface ShopBrowserUserModel {
|
|
19
|
+
shopName?: string;
|
|
20
|
+
picUrl?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface StorageOrganBrowserUpdateReq {
|
|
23
|
+
tenant?: string;
|
|
24
|
+
requestId: string;
|
|
25
|
+
storageId: string;
|
|
26
|
+
}
|
|
27
|
+
export interface StorageOrganBrowserModel {
|
|
28
|
+
}
|
package/lib/api/storage/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/lib/api/types.d.ts
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
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
|
-
name: string;
|
|
7
|
-
baseUrl: string;
|
|
8
|
-
resourceUrl: string;
|
|
9
|
-
appId: string;
|
|
10
|
-
componentAppid: string;
|
|
11
|
-
wechatComponentAppId: string;
|
|
12
|
-
wechatAppId: string;
|
|
13
|
-
wechatBiz: string;
|
|
14
|
-
siteId: string;
|
|
15
|
-
dev: boolean;
|
|
16
|
-
testNewUser: boolean;
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
}
|
|
19
|
-
export interface ValidateData {
|
|
20
|
-
validate: boolean;
|
|
21
|
-
message: string;
|
|
22
|
-
}
|
|
23
|
-
export interface EventBase {
|
|
24
|
-
changedTouches?: any;
|
|
25
|
-
currentTarget: EventTarget;
|
|
26
|
-
target?: EventTarget;
|
|
27
|
-
type?: string;
|
|
28
|
-
detail?: any;
|
|
29
|
-
touches: any;
|
|
30
|
-
}
|
|
31
|
-
export interface EventTarget {
|
|
32
|
-
dataset: any;
|
|
33
|
-
id: string | number;
|
|
34
|
-
offsetLeft?: number;
|
|
35
|
-
offsetTop?: number;
|
|
36
|
-
}
|
|
37
|
-
export interface CanvasResponse {
|
|
38
|
-
width?: number;
|
|
39
|
-
height?: number;
|
|
40
|
-
nodeCanvasType?: string;
|
|
41
|
-
node: any;
|
|
42
|
-
}
|
|
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
|
+
name: string;
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
resourceUrl: string;
|
|
9
|
+
appId: string;
|
|
10
|
+
componentAppid: string;
|
|
11
|
+
wechatComponentAppId: string;
|
|
12
|
+
wechatAppId: string;
|
|
13
|
+
wechatBiz: string;
|
|
14
|
+
siteId: string;
|
|
15
|
+
dev: boolean;
|
|
16
|
+
testNewUser: boolean;
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}
|
|
19
|
+
export interface ValidateData {
|
|
20
|
+
validate: boolean;
|
|
21
|
+
message: string;
|
|
22
|
+
}
|
|
23
|
+
export interface EventBase {
|
|
24
|
+
changedTouches?: any;
|
|
25
|
+
currentTarget: EventTarget;
|
|
26
|
+
target?: EventTarget;
|
|
27
|
+
type?: string;
|
|
28
|
+
detail?: any;
|
|
29
|
+
touches: any;
|
|
30
|
+
}
|
|
31
|
+
export interface EventTarget {
|
|
32
|
+
dataset: any;
|
|
33
|
+
id: string | number;
|
|
34
|
+
offsetLeft?: number;
|
|
35
|
+
offsetTop?: number;
|
|
36
|
+
}
|
|
37
|
+
export interface CanvasResponse {
|
|
38
|
+
width?: number;
|
|
39
|
+
height?: number;
|
|
40
|
+
nodeCanvasType?: string;
|
|
41
|
+
node: any;
|
|
42
|
+
}
|
package/lib/api/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/lib/app.mpx.d.ts
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
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, } from "./api/auth/types";
|
|
3
|
-
export type { CmsSiteList, CmsChannelReq, CmsChannelList, CmsContentInfoReq, CmsContentInfoModel, CmsInfoModel, CmsInfoContentModel, CmsChannelModel, } from "./api/cms/types";
|
|
4
|
-
export type { Entry, DictEntryModel } from "./api/dict/types";
|
|
5
|
-
export { EntryDict, EnumDict } 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 { mpxFetch } from "./utils/request";
|
|
10
|
-
export { config, initConfig, setConfig } from "./utils/config";
|
|
11
|
-
export { grpc } from "./utils/grpc";
|
|
12
|
-
export { db } from "./utils/db";
|
|
13
|
-
export { useUserStore } from "./store/user";
|
|
14
|
-
export { authApi } from "./api/auth";
|
|
15
|
-
export { cmsApi } from "./api/cms";
|
|
16
|
-
export { dictApi } from "./api/dict";
|
|
17
|
-
export { fileApi } from "./api/files";
|
|
18
|
-
export { regionApi } from "./api/region";
|
|
19
|
-
export { storageApi } from "./api/storage";
|
|
20
|
-
export { net } from "./utils/net";
|
|
21
|
-
export { getHeight, formatDateTime, validateRules, validateRequired, } from "./utils/common";
|
|
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, } from "./api/auth/types";
|
|
3
|
+
export type { CmsSiteList, CmsChannelReq, CmsChannelList, CmsContentInfoReq, CmsContentInfoModel, CmsInfoModel, CmsInfoContentModel, CmsChannelModel, } from "./api/cms/types";
|
|
4
|
+
export type { Entry, DictEntryModel } from "./api/dict/types";
|
|
5
|
+
export { EntryDict, EnumDict } 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 { mpxFetch } from "./utils/request";
|
|
10
|
+
export { config, initConfig, setConfig } from "./utils/config";
|
|
11
|
+
export { grpc } from "./utils/grpc";
|
|
12
|
+
export { db } from "./utils/db";
|
|
13
|
+
export { useUserStore } from "./store/user";
|
|
14
|
+
export { authApi } from "./api/auth";
|
|
15
|
+
export { cmsApi } from "./api/cms";
|
|
16
|
+
export { dictApi } from "./api/dict";
|
|
17
|
+
export { fileApi } from "./api/files";
|
|
18
|
+
export { regionApi } from "./api/region";
|
|
19
|
+
export { storageApi } from "./api/storage";
|
|
20
|
+
export { net } from "./utils/net";
|
|
21
|
+
export { getHeight, formatDateTime, validateRules, validateRequired, } from "./utils/common";
|
package/lib/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { EntryDict, EnumDict } from "./api/dicts";
|
|
2
|
-
export { mpxFetch } from "./utils/request";
|
|
3
|
-
export { config, initConfig, setConfig } from "./utils/config";
|
|
4
|
-
export { grpc } from "./utils/grpc";
|
|
5
|
-
export { db } from "./utils/db";
|
|
6
|
-
export { useUserStore } from "./store/user";
|
|
7
|
-
export { authApi } from "./api/auth";
|
|
8
|
-
export { cmsApi } from "./api/cms";
|
|
9
|
-
export { dictApi } from "./api/dict";
|
|
10
|
-
export { fileApi } from "./api/files";
|
|
11
|
-
export { regionApi } from "./api/region";
|
|
12
|
-
export { storageApi } from "./api/storage";
|
|
13
|
-
export { net } from "./utils/net";
|
|
14
|
-
export { getHeight, formatDateTime, validateRules, validateRequired, } from "./utils/common";
|
|
1
|
+
export { EntryDict, EnumDict } from "./api/dicts";
|
|
2
|
+
export { mpxFetch } from "./utils/request";
|
|
3
|
+
export { config, initConfig, setConfig } from "./utils/config";
|
|
4
|
+
export { grpc } from "./utils/grpc";
|
|
5
|
+
export { db } from "./utils/db";
|
|
6
|
+
export { useUserStore } from "./store/user";
|
|
7
|
+
export { authApi } from "./api/auth";
|
|
8
|
+
export { cmsApi } from "./api/cms";
|
|
9
|
+
export { dictApi } from "./api/dict";
|
|
10
|
+
export { fileApi } from "./api/files";
|
|
11
|
+
export { regionApi } from "./api/region";
|
|
12
|
+
export { storageApi } from "./api/storage";
|
|
13
|
+
export { net } from "./utils/net";
|
|
14
|
+
export { getHeight, formatDateTime, validateRules, validateRequired, } from "./utils/common";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/store/user.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { LoginRes, RolesPerms, TokenModel, UserInfo } from "../api/auth/types";
|
|
2
|
-
import { ResponseData } from "../api/types";
|
|
3
|
-
interface UserState {
|
|
4
|
-
userInfo: UserInfo;
|
|
5
|
-
roleCodes: string[];
|
|
6
|
-
permCodes: string[];
|
|
7
|
-
accessToken: string;
|
|
8
|
-
expiresDate: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const useUserStore: import("@mpxjs/pinia").StoreDefinition<"user", UserState, {}, {
|
|
11
|
-
/** 登录检查 */
|
|
12
|
-
loginOnlyAC(): Promise<boolean>;
|
|
13
|
-
/** 登录检查并跳转登录 */
|
|
14
|
-
loginAC(backurl: string, tabbar: boolean, loginurl?: string): Promise<boolean>;
|
|
15
|
-
/** 静默登录 */
|
|
16
|
-
silentLogin(): Promise<LoginRes>;
|
|
17
|
-
mpRegister(phoneCode: string, nickName?: string, avatar?: string): Promise<LoginRes>;
|
|
18
|
-
webLogin(userName: string, pwd: string): Promise<LoginRes>;
|
|
19
|
-
loginProcess(resp: ResponseData<LoginRes>): LoginRes;
|
|
20
|
-
loginSuccess(token: TokenModel): TokenModel;
|
|
21
|
-
logout(): void;
|
|
22
|
-
/** 检查登录是否有效? */
|
|
23
|
-
checkLogin(): boolean;
|
|
24
|
-
isTokenExpires(): boolean;
|
|
25
|
-
checkRole(role: string): boolean;
|
|
26
|
-
getUserInfo(cache?: boolean): Promise<UserInfo>;
|
|
27
|
-
setUserInfo(userInfo: UserInfo): void;
|
|
28
|
-
getRolePerm(cache?: boolean): Promise<RolesPerms>;
|
|
29
|
-
refreshToken(): Promise<boolean>;
|
|
30
|
-
}>;
|
|
31
|
-
export {};
|
|
1
|
+
import { LoginRes, RolesPerms, TokenModel, UserInfo } from "../api/auth/types";
|
|
2
|
+
import { ResponseData } from "../api/types";
|
|
3
|
+
interface UserState {
|
|
4
|
+
userInfo: UserInfo;
|
|
5
|
+
roleCodes: string[];
|
|
6
|
+
permCodes: string[];
|
|
7
|
+
accessToken: string;
|
|
8
|
+
expiresDate: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const useUserStore: import("@mpxjs/pinia").StoreDefinition<"user", UserState, {}, {
|
|
11
|
+
/** 登录检查 */
|
|
12
|
+
loginOnlyAC(): Promise<boolean>;
|
|
13
|
+
/** 登录检查并跳转登录 */
|
|
14
|
+
loginAC(backurl: string, tabbar: boolean, loginurl?: string): Promise<boolean>;
|
|
15
|
+
/** 静默登录 */
|
|
16
|
+
silentLogin(): Promise<LoginRes>;
|
|
17
|
+
mpRegister(phoneCode: string, nickName?: string, avatar?: string): Promise<LoginRes>;
|
|
18
|
+
webLogin(userName: string, pwd: string): Promise<LoginRes>;
|
|
19
|
+
loginProcess(resp: ResponseData<LoginRes>): LoginRes;
|
|
20
|
+
loginSuccess(token: TokenModel): TokenModel;
|
|
21
|
+
logout(): void;
|
|
22
|
+
/** 检查登录是否有效? */
|
|
23
|
+
checkLogin(): boolean;
|
|
24
|
+
isTokenExpires(): boolean;
|
|
25
|
+
checkRole(role: string): boolean;
|
|
26
|
+
getUserInfo(cache?: boolean): Promise<UserInfo>;
|
|
27
|
+
setUserInfo(userInfo: UserInfo): void;
|
|
28
|
+
getRolePerm(cache?: boolean): Promise<RolesPerms>;
|
|
29
|
+
refreshToken(): Promise<boolean>;
|
|
30
|
+
}>;
|
|
31
|
+
export {};
|