jmash-core-mp 0.1.10 → 0.1.11

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 (39) hide show
  1. package/lib/api/auth/index.d.ts +1 -1
  2. package/lib/api/cms/index.d.ts +12 -4
  3. package/lib/api/cms/index.js +101 -7
  4. package/lib/api/cms/types.d.ts +116 -18
  5. package/lib/api/dict/index.d.ts +1 -1
  6. package/lib/api/files/index.d.ts +1 -1
  7. package/lib/api/region/index.d.ts +1 -1
  8. package/lib/api/storage/index.d.ts +10 -0
  9. package/lib/api/storage/index.js +40 -0
  10. package/lib/api/storage/types.d.ts +28 -0
  11. package/lib/api/storage/types.js +1 -0
  12. package/lib/api/types.d.ts +27 -0
  13. package/lib/components/cms/jmash-cms-acticle-list.mpx.d.ts +1 -0
  14. package/lib/components/cms/jmash-cms-article.mpx.d.ts +1 -0
  15. package/lib/index.d.ts +8 -2
  16. package/lib/index.js +2 -0
  17. package/lib/store/user.d.ts +1 -1
  18. package/lib/utils/config.d.ts +1 -1
  19. package/lib/utils/config.js +1 -1
  20. package/package.json +1 -1
  21. package/src/api/auth/index.ts +1 -1
  22. package/src/api/cms/index.ts +134 -10
  23. package/src/api/cms/types.ts +222 -34
  24. package/src/api/dict/index.ts +1 -1
  25. package/src/api/files/index.ts +1 -1
  26. package/src/api/region/index.ts +1 -1
  27. package/src/api/storage/index.ts +59 -0
  28. package/src/api/storage/types.ts +54 -0
  29. package/src/api/types.ts +51 -1
  30. package/src/components/cms/jmash-cms-acticle-list.mpx +182 -0
  31. package/src/components/cms/jmash-cms-article.mpx +69 -0
  32. package/src/components/core/jmash-popup-login.ali.mpx +1 -1
  33. package/src/index.ts +42 -2
  34. package/src/packages/index.mpx +2 -1
  35. package/src/packages/pages/cms/cms-article.mpx +32 -0
  36. package/src/pages/home.mpx +9 -3
  37. package/src/store/user.ts +1 -1
  38. package/src/utils/config.ts +2 -2
  39. package/src/types/core.ts +0 -70
@@ -1,4 +1,4 @@
1
- import { ResponseData } from "../../types/core";
1
+ import { ResponseData } from "../../api/types";
2
2
  import type { LoginReq, LoginRes, RolesPerms, WebLoginReq, TokenModel, PhoneRegisterReq, PhoneReplaceReq, UpdateUserReq, UserInfoReq, UserInfo } from "./types";
3
3
  declare class AuthApi {
4
4
  mpLogin(data: LoginReq): Promise<ResponseData<LoginRes>>;
@@ -1,12 +1,20 @@
1
- import { CmsSiteList, CmsChannelReq, CmsChannelList, CmsInfoReq, CmsInfoPage, CmsInfoKey, CmsInfoModel, CmsInfoContentReq, CmsInfoContentList, CmsContentInfoReq, CmsContentInfoModel } from "./types";
2
- import { ResponseData } from "../../types/core";
1
+ import { CmsSiteKey, CmsSiteList, CmsSiteModel, CmsChannelReq, CmsChannelList, CmsInfoReq, CmsInfoPage, CmsInfoKey, CmsInfoModel, CmsInfoContentReq, CmsInfoContentList, CmsContentInfoReq, CmsContentInfoModel, CmsInfoFileReq, CmsInfoFileList, FrontInteractKey, FrontInteractModel, FrontLikeKey, FrontLikeModel, FrontLikeCreateReq, FrontBrowseRecordCreateReq, FrontBrowseRecordModel, CmsChannelKey, CmsChannelModel } from "./types";
2
+ import { ResponseData } from "../../api/types";
3
3
  declare class CmsApiImpl {
4
4
  findCmsSiteList(tenant: string): Promise<ResponseData<CmsSiteList>>;
5
+ findCmsSite(data: CmsSiteKey): Promise<ResponseData<CmsSiteModel>>;
5
6
  findCmsChannelList(data: CmsChannelReq): Promise<ResponseData<CmsChannelList>>;
7
+ findCmsChannelById(data: CmsChannelKey): Promise<ResponseData<CmsChannelModel>>;
8
+ findCmsContentInfo(data: CmsContentInfoReq): Promise<ResponseData<CmsContentInfoModel>>;
9
+ findCmsSingleInfo(data: CmsChannelKey): Promise<ResponseData<CmsInfoModel>>;
6
10
  findCmsInfoPage(data: CmsInfoReq): Promise<ResponseData<CmsInfoPage>>;
7
- findCmsInfo(data: CmsInfoKey): Promise<ResponseData<CmsInfoModel>>;
11
+ findCmsInfoById(data: CmsInfoKey): Promise<ResponseData<CmsInfoModel>>;
8
12
  findCmsInfoContent(data: CmsInfoContentReq): Promise<ResponseData<CmsInfoContentList>>;
9
- findCmsContentInfo(data: CmsContentInfoReq): Promise<ResponseData<CmsContentInfoModel>>;
13
+ cmsInfoFile(data: CmsInfoFileReq): Promise<ResponseData<CmsInfoFileList>>;
14
+ cmsInfoInteractId(data: FrontInteractKey): Promise<ResponseData<FrontInteractModel>>;
15
+ isLike(data: FrontLikeKey): Promise<ResponseData<string>>;
16
+ frontLike(data: FrontLikeCreateReq): Promise<ResponseData<FrontLikeModel>>;
17
+ createfrontBrowseRecord(data: FrontBrowseRecordCreateReq): Promise<ResponseData<FrontBrowseRecordModel>>;
10
18
  }
11
19
  declare const cmsApi: CmsApiImpl;
12
20
  export { cmsApi };
@@ -10,6 +10,17 @@ class CmsApiImpl {
10
10
  method: "GET",
11
11
  });
12
12
  }
13
+ // 查询网站站点
14
+ findCmsSite(data) {
15
+ const tenant = data.tenant ? data.tenant : data.organTenant;
16
+ return mpx.xfetch.fetch({
17
+ url: "/v1/front/cms/cms_site/id/" + tenant + "/" + data.siteId,
18
+ method: "GET",
19
+ header: {
20
+ "Grpc-Metadata-Tenant": tenant,
21
+ },
22
+ });
23
+ }
13
24
  // 查询列表信息网站栏目 (没有传递别名就是将所有的栏目信息查询出来,给了栏目别名查询传递别名的栏目信息)
14
25
  findCmsChannelList(data) {
15
26
  grpc.clearEmpty(data);
@@ -23,6 +34,39 @@ class CmsApiImpl {
23
34
  data,
24
35
  });
25
36
  }
37
+ // 查询网站栏目
38
+ findCmsChannelById(data) {
39
+ return mpx.xfetch.fetch({
40
+ url: `/v1/cms/cms_channel/id/${data.tenant}/${data.channelId}`,
41
+ method: "GET",
42
+ header: {
43
+ "Grpc-Metadata-Tenant": data.tenant,
44
+ },
45
+ });
46
+ }
47
+ // 根据栏目别名查询翻页信息信息主表-单页栏目内容
48
+ findCmsContentInfo(data) {
49
+ data.tenant = data.tenant || config.tenant;
50
+ grpc.clearEmpty(data);
51
+ return mpx.xfetch.fetch({
52
+ url: `/v1/front/cms/cms_info/alias/${data.tenant}/${data.siteId}/${data.channelAlias}`,
53
+ method: "GET",
54
+ });
55
+ }
56
+ // 根据栏目id查询单页模型的信息主表-单页栏目内容
57
+ findCmsSingleInfo(data) {
58
+ grpc.clearEmpty(data);
59
+ return mpx.xfetch.fetch({
60
+ url: "/v1/front/cms/cms_info/single_page_info/" +
61
+ data.tenant +
62
+ "/" +
63
+ data.channelId,
64
+ method: "GET",
65
+ header: {
66
+ "Grpc-Metadata-Tenant": data.tenant,
67
+ },
68
+ });
69
+ }
26
70
  // 查询翻页信息信息列表
27
71
  findCmsInfoPage(data) {
28
72
  if (data) {
@@ -36,8 +80,8 @@ class CmsApiImpl {
36
80
  data,
37
81
  });
38
82
  }
39
- // 查询信息主表
40
- findCmsInfo(data) {
83
+ // 查询翻页信息信息列表
84
+ findCmsInfoById(data) {
41
85
  grpc.clearEmpty(data);
42
86
  return mpx.xfetch.fetch({
43
87
  url: "/v1/front/cms/cms_info/id/" + data.tenant + "/" + data.infoId,
@@ -51,15 +95,65 @@ class CmsApiImpl {
51
95
  url: "/v1/front/cms/cms_info_content/list/" + data.tenant,
52
96
  method: "GET",
53
97
  data,
98
+ header: {
99
+ "Grpc-Metadata-Tenant": data.tenant,
100
+ },
54
101
  });
55
102
  }
56
- // 根据栏目别名查询翻页信息信息主表-单页栏目内容
57
- findCmsContentInfo(data) {
58
- data.tenant = data.tenant || config.tenant;
59
- grpc.clearEmpty(data);
103
+ // 查询列表信息信息附件表
104
+ cmsInfoFile(data) {
60
105
  return mpx.xfetch.fetch({
61
- url: `/v1/front/cms/cms_info/alias/${data.tenant}/${data.siteId}/${data.channelAlias}`,
106
+ url: "/v1/front/cms/cms_info_file/list/" + data.tenant,
107
+ method: "GET",
108
+ data,
109
+ header: {
110
+ "Grpc-Metadata-Tenant": data.tenant,
111
+ },
112
+ });
113
+ }
114
+ // 查询信息互动表
115
+ cmsInfoInteractId(data) {
116
+ return mpx.xfetch.fetch({
117
+ url: "/v1/front/front/front_info_interact/id/" +
118
+ data.tenant +
119
+ "/" +
120
+ data.interactId,
121
+ method: "GET",
122
+ });
123
+ }
124
+ // 查看是否点赞
125
+ isLike(data) {
126
+ return mpx.xfetch.fetch({
127
+ url: "/v1/front/front/front_like/is_like/" +
128
+ data.tenant +
129
+ "/" +
130
+ data.relationId,
62
131
  method: "GET",
132
+ header: {
133
+ "Grpc-Metadata-Tenant": data.tenant,
134
+ },
135
+ });
136
+ }
137
+ // 点赞/取消点赞
138
+ frontLike(data) {
139
+ return mpx.xfetch.fetch({
140
+ url: "/v1/front/front/front_like",
141
+ method: "POST",
142
+ data,
143
+ header: {
144
+ "Grpc-Metadata-Tenant": data.tenant,
145
+ },
146
+ });
147
+ }
148
+ // 浏览
149
+ createfrontBrowseRecord(data) {
150
+ return mpx.xfetch.fetch({
151
+ url: "/v1/front/front/front_browse_record",
152
+ method: "POST",
153
+ data,
154
+ header: {
155
+ "Grpc-Metadata-Tenant": data.tenant,
156
+ },
63
157
  });
64
158
  }
65
159
  }
@@ -1,9 +1,31 @@
1
1
  export interface CmsSiteList {
2
2
  results: Array<CmsSiteModel>;
3
3
  }
4
+ export interface CmsSiteKey {
5
+ tenant?: string;
6
+ organTenant?: string;
7
+ siteId: string;
8
+ }
4
9
  export interface CmsSiteModel {
5
10
  siteId?: string;
6
11
  siteName?: string;
12
+ siteLogo?: string;
13
+ keyword?: string;
14
+ description?: string;
15
+ contactPerson?: string;
16
+ contactPhone?: string;
17
+ dueTime?: string;
18
+ status?: string;
19
+ siteType?: string;
20
+ isComment?: boolean;
21
+ isCommentReview?: boolean;
22
+ mobileProductPath?: string;
23
+ pcProductPath?: string;
24
+ channelList?: Array<CmsChannelModel>;
25
+ address?: string;
26
+ geoLongitude: number;
27
+ geoLatitude: number;
28
+ email: string;
7
29
  }
8
30
  export interface CmsChannelReq {
9
31
  tenant?: string;
@@ -34,6 +56,22 @@ export interface CmsChannelModel {
34
56
  url: string;
35
57
  type?: string;
36
58
  }
59
+ export interface CmsChannelKey {
60
+ tenant?: string;
61
+ channelId: string;
62
+ }
63
+ export interface CmsInfoPage {
64
+ results: Array<CmsInfoModel>;
65
+ curPage?: number;
66
+ pageSize?: number;
67
+ totalSize?: number;
68
+ subTotalDto?: CmsInfoModelTotal;
69
+ totalDto?: CmsInfoModelTotal;
70
+ pageCount?: number;
71
+ }
72
+ export interface CmsInfoModelTotal {
73
+ totalSize?: number;
74
+ }
37
75
  export interface CmsInfoReq {
38
76
  tenant?: string;
39
77
  curPage?: number;
@@ -48,17 +86,9 @@ export interface CmsInfoReq {
48
86
  hasIsImg?: boolean;
49
87
  isImg?: boolean;
50
88
  }
51
- export interface CmsInfoPage {
52
- results?: Array<CmsInfoModel>;
53
- curPage?: number;
54
- pageSize?: number;
55
- totalSize?: number;
56
- subTotalDto?: CmsInfoModelTotal;
57
- totalDto?: CmsInfoModelTotal;
58
- pageCount?: number;
59
- }
60
- export interface CmsInfoModelTotal {
61
- totalSize?: number;
89
+ export interface CmsInfoKey {
90
+ tenant?: string;
91
+ infoId?: string;
62
92
  }
63
93
  export interface CmsInfoModel {
64
94
  infoId?: string;
@@ -75,9 +105,34 @@ export interface CmsInfoModel {
75
105
  sourceName?: string;
76
106
  siteId: string;
77
107
  }
108
+ export interface CmsInfoContentReq {
109
+ tenant?: string;
110
+ infoId?: string;
111
+ }
112
+ export interface CmsInfoContentModel {
113
+ imagePath?: Array<string>;
114
+ videoPath?: Array<string>;
115
+ contentId?: string;
116
+ infoId?: string;
117
+ infoContent?: string;
118
+ infoType?: string;
119
+ orderBy?: number;
120
+ }
121
+ export interface CmsInfoContentList {
122
+ results: Array<CmsInfoContentModel>;
123
+ }
124
+ export interface CmsContentInfoReq {
125
+ tenant?: string;
126
+ siteId?: string;
127
+ channelAlias: string;
128
+ }
129
+ export interface CmsContentInfoModel {
130
+ cmsInfo?: CmsInfoModel;
131
+ infoContentResults?: Array<CmsInfoContentModel>;
132
+ }
78
133
  export interface CmsInfoKey {
79
134
  tenant?: string;
80
- infoId: string;
135
+ infoId?: string;
81
136
  }
82
137
  export interface CmsInfoContentReq {
83
138
  tenant?: string;
@@ -98,12 +153,55 @@ export interface CmsInfoContentModel {
98
153
  path: string;
99
154
  }[];
100
155
  }
101
- export interface CmsContentInfoReq {
156
+ export interface CmsInfoFileReq {
102
157
  tenant?: string;
103
- siteId?: string;
104
- channelAlias: string;
158
+ infoId?: string;
105
159
  }
106
- export interface CmsContentInfoModel {
107
- cmsInfo?: CmsInfoModel;
108
- infoContentResults?: Array<CmsInfoContentModel>;
160
+ export interface CmsInfoFileModel {
161
+ fileId?: string;
162
+ infoId?: string;
163
+ fileName?: string;
164
+ fileType?: string;
165
+ filePath?: string;
166
+ fileSize?: string;
167
+ fileExt?: string;
168
+ fileWidth?: number;
169
+ fileHeight?: number;
170
+ videoTime?: number;
171
+ intro?: string;
172
+ }
173
+ export interface CmsInfoFileList {
174
+ results: Array<CmsInfoFileModel>;
175
+ }
176
+ export interface FrontInteractKey {
177
+ tenant?: string;
178
+ interactId?: string;
179
+ }
180
+ export interface FrontInteractModel {
181
+ interactId?: string;
182
+ likeCount: number;
183
+ browseCount: number;
184
+ }
185
+ export interface FrontLikeKey {
186
+ tenant: string;
187
+ relationId: string;
188
+ }
189
+ export interface FrontLikeCreateReq {
190
+ tenant: string;
191
+ requestId?: string;
192
+ likeType?: string;
193
+ relationId?: string;
194
+ action?: boolean;
195
+ }
196
+ export interface FrontLikeModel {
197
+ likeId?: string;
198
+ }
199
+ export interface FrontBrowseRecordCreateReq {
200
+ tenant?: string;
201
+ requestId?: string;
202
+ type?: string;
203
+ relationId?: string;
204
+ }
205
+ export interface FrontBrowseRecordModel {
206
+ browseId?: string;
109
207
  }
@@ -1,4 +1,4 @@
1
- import { ResponseData } from "../../types/core";
1
+ import { ResponseData } from "../../api/types";
2
2
  import { EnumRes, DictEntryReq, DictEntryList } from "./types";
3
3
  declare class DictApiImpl {
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { FileInfo, FileBase64Req, FileDownInfo, FileWebReq } from "./types";
2
- import { ResponseData } from "../../types/core";
2
+ import { ResponseData } from "../../api/types";
3
3
  declare class FileApi {
4
4
  baseApiUrl(): string;
5
5
  uploadUrl(): string;
@@ -1,5 +1,5 @@
1
1
  import { DictRegionList, DictRegionReq } from "./types";
2
- import { ResponseData } from "../../types/core";
2
+ import { ResponseData } from "../../api/types";
3
3
  declare class RegionApiImpl {
4
4
  findList(query?: DictRegionReq): Promise<ResponseData<DictRegionList>>;
5
5
  }
@@ -0,0 +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 };
@@ -0,0 +1,40 @@
1
+ import mpx from "@mpxjs/core";
2
+ import { grpc } from "../../utils/grpc";
3
+ import { config } from "../../utils/config";
4
+ class StorageApiImpl {
5
+ // 查询我的组织列表
6
+ findMyOrganList(data) {
7
+ grpc.clearEmpty(data);
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
+ return mpx.xfetch.fetch({
16
+ url: `/v1/front/storage/storage_organ_browser/my_list/${config.tenant}?&serviceType[]=${data.serviceType}`,
17
+ method: "GET",
18
+ });
19
+ }
20
+ // 查询列表信息店铺用户浏览信息
21
+ findStorageOrganInfoList(data) {
22
+ return mpx.xfetch.fetch({
23
+ url: `/v1/storage/storage_organ_info/list/${config.tenant}?&serviceType[]=${data.serviceType}`,
24
+ method: "GET",
25
+ data: data,
26
+ });
27
+ }
28
+ // 修改组织浏览信息
29
+ updateStorageOrganBrowser(data) {
30
+ data.tenant = config.tenant;
31
+ grpc.clearEmpty(data);
32
+ return mpx.xfetch.fetch({
33
+ url: "/v1/front/storage/storage_organ_browser/browse",
34
+ method: "PATCH",
35
+ data: data,
36
+ });
37
+ }
38
+ }
39
+ const storageApi = new StorageApiImpl();
40
+ export { storageApi };
@@ -0,0 +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
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,24 @@
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
+ }
18
+ export interface ValidateData {
19
+ validate: boolean;
20
+ message: string;
21
+ }
1
22
  export interface EventBase {
2
23
  changedTouches?: any;
3
24
  currentTarget: EventTarget;
@@ -12,3 +33,9 @@ export interface EventTarget {
12
33
  offsetLeft?: number;
13
34
  offsetTop?: number;
14
35
  }
36
+ export interface CanvasResponse {
37
+ width?: number;
38
+ height?: number;
39
+ nodeCanvasType?: string;
40
+ node: any;
41
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/lib/index.d.ts CHANGED
@@ -1,6 +1,11 @@
1
- export type { AppConfig, ResponseData, ValidateData, EventBase, EventTarget, CanvasResponse, } from "./types/core";
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, } from "./api/cms/types";
2
4
  export type { Entry, DictEntryModel } from "./api/dict/types";
3
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, StorageOrganBrowserUpdateReq, StorageOrganBrowserModel, } from "./api/storage/types";
4
9
  export { mpxFetch } from "./utils/request";
5
10
  export { config } from "./utils/config";
6
11
  export { grpc } from "./utils/grpc";
@@ -8,8 +13,9 @@ export { db } from "./utils/db";
8
13
  export { useUserStore } from "./store/user";
9
14
  export { authApi } from "./api/auth";
10
15
  export { cmsApi } from "./api/cms";
11
- export type { CmsInfoModel, CmsInfoContentModel } from "./api/cms/types";
12
16
  export { dictApi } from "./api/dict";
13
17
  export { fileApi } from "./api/files";
18
+ export { regionApi } from "./api/region";
19
+ export { storageApi } from "./api/storage";
14
20
  export { net } from "./utils/net";
15
21
  export { getHeight, formatDateTime, validateRules, validateRequired, } from "./utils/common";
package/lib/index.js CHANGED
@@ -8,5 +8,7 @@ export { authApi } from "./api/auth";
8
8
  export { cmsApi } from "./api/cms";
9
9
  export { dictApi } from "./api/dict";
10
10
  export { fileApi } from "./api/files";
11
+ export { regionApi } from "./api/region";
12
+ export { storageApi } from "./api/storage";
11
13
  export { net } from "./utils/net";
12
14
  export { getHeight, formatDateTime, validateRules, validateRequired, } from "./utils/common";
@@ -1,5 +1,5 @@
1
1
  import { LoginRes, RolesPerms, TokenModel, UserInfo } from "../api/auth/types";
2
- import { ResponseData } from "../types/core";
2
+ import { ResponseData } from "../api/types";
3
3
  interface UserState {
4
4
  userInfo: UserInfo;
5
5
  roleCodes: string[];
@@ -1,3 +1,3 @@
1
- import { AppConfig } from "../types/core";
1
+ import { AppConfig } from "../api/types";
2
2
  declare const config: AppConfig;
3
3
  export { config };
@@ -1,7 +1,7 @@
1
1
  const config = {
2
2
  name: "Jmash Core MPX",
3
3
  dev: true,
4
- testNewUser: true,
4
+ testNewUser: false,
5
5
  tenant: "xyvcard",
6
6
  baseUrl: "https://mm.sooyie.cn",
7
7
  resourceUrl: "https://mm.sooyie.cn/v1/file/path/wxapp",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core-mp",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "private": false,
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { ResponseData } from "../../types/core";
1
+ import { ResponseData } from "../../api/types";
2
2
  import { OpensType } from "./types";
3
3
  import type {
4
4
  LoginReq,