jmash-core-mp 0.1.93 → 0.1.94
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/lib/api/cms/index.d.ts +2 -1
- package/lib/api/cms/index.js +11 -0
- package/lib/api/cms/types.d.ts +16 -0
- package/lib/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/api/cms/index.ts +16 -0
- package/src/api/cms/types.ts +31 -0
- package/src/index.ts +2 -0
- package/lib/components/auth-user/jmash-update-user.mpx.d.ts +0 -1
- package/lib/components/auth-user/jmash-user.mpx.d.ts +0 -1
- package/lib/components/cms/jmash-cms-article-view.mpx.d.ts +0 -1
- package/lib/components/common/jmash-none-data.mpx.d.ts +0 -1
- package/lib/components/common/jmash-search.mpx.d.ts +0 -1
- package/lib/components/common/jmash-top-navigation.mpx.d.ts +0 -1
- package/lib/components/core/jmash-login.mpx.d.ts +0 -1
- package/lib/components/organ/browser-organ-list.mpx.d.ts +0 -1
- package/lib/components/organ/my-organ-list.mpx.d.ts +0 -1
- package/lib/components/organ/organ-item.mpx.d.ts +0 -1
- package/lib/components/organ/organ-search.mpx.d.ts +0 -1
- package/lib/components/organ/organ-selected-item.mpx.d.ts +0 -1
- package/lib/components/shop/branch-item.mpx.d.ts +0 -1
- package/lib/components/shop/branch-search.mpx.d.ts +0 -1
- package/lib/components/shop/shop-item.mpx.d.ts +0 -1
- package/lib/components/shop/shop-search.mpx.d.ts +0 -1
- package/lib/components/shop/shop-selected-item.mpx.d.ts +0 -1
- package/lib/packages/pages/auth/setting-page.mpx.d.ts +0 -1
- package/lib/packages/pages/auth/web-view.mpx.d.ts +0 -1
- package/lib/packages/pages/cms/cms-activity-list.mpx.d.ts +0 -1
- package/lib/packages/pages/cms/cms-article-list.mpx.d.ts +0 -1
- package/lib/packages/pages/cms/cms-location-list.mpx.d.ts +0 -1
- package/lib/packages/pages/cms/cms-product-list.mpx.d.ts +0 -1
- package/lib/packages/pages/share/scan.mpx.d.ts +0 -1
- package/lib/pages/branch-search.mpx.d.ts +0 -1
- package/lib/pages/organ-search.mpx.d.ts +0 -1
- package/lib/pages/organ.mpx.d.ts +0 -1
- package/lib/pages/shop-search.mpx.d.ts +0 -1
package/lib/api/cms/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CmsSiteKey, CmsSiteList, CmsSiteModel, CmsChannelReq, CmsChannelList, CmsInfoReq, CmsInfoPage, CmsInfoKey, CmsInfoModel, CmsInfoContentReq, CmsInfoContentList, CmsContentInfoReq, CmsContentInfoModel, CmsInfoFileReq, CmsInfoFileList, FrontInteractKey, FrontInteractModel, FrontLikeKey, FrontLikeModel, FrontLikeCreateReq, FrontBrowseRecordCreateReq, FrontBrowseRecordModel, FrontCommentCreateReq, FrontCommentModel, FrontCommentPage, FrontCommentReq, FrontCollectCreateReq, FrontCollectModel, FrontCollectPage, FrontCollectReq, CmsChannelKey, CmsChannelModel, CmsSeatsReq, CmsSeatsList, CmsSeatInfoReq, CmsSeatInfoList } from "./types";
|
|
1
|
+
import { CmsSiteKey, CmsSiteList, CmsSiteModel, CmsChannelReq, CmsChannelList, CmsInfoReq, CmsInfoPage, CmsInfoKey, CmsInfoModel, CmsInfoContentReq, CmsInfoContentList, CmsContentInfoReq, CmsContentInfoModel, CmsInfoFileReq, CmsInfoFileList, FrontInteractKey, FrontInteractModel, FrontLikeKey, FrontLikeModel, FrontLikeCreateReq, FrontBrowseRecordCreateReq, FrontBrowseRecordModel, FrontRelayRecordCreateReq, FrontRelayRecordModel, FrontCommentCreateReq, FrontCommentModel, FrontCommentPage, FrontCommentReq, FrontCollectCreateReq, FrontCollectModel, FrontCollectPage, FrontCollectReq, CmsChannelKey, CmsChannelModel, CmsSeatsReq, CmsSeatsList, CmsSeatInfoReq, CmsSeatInfoList } from "./types";
|
|
2
2
|
import { ResponseData } from "../../api/types";
|
|
3
3
|
declare class CmsApiImpl {
|
|
4
4
|
findCmsSiteList(tenant: string): Promise<ResponseData<CmsSiteList>>;
|
|
@@ -18,6 +18,7 @@ declare class CmsApiImpl {
|
|
|
18
18
|
isLike(data: FrontLikeKey): Promise<ResponseData<any>>;
|
|
19
19
|
frontLike(data: FrontLikeCreateReq): Promise<ResponseData<FrontLikeModel>>;
|
|
20
20
|
createfrontBrowseRecord(data: FrontBrowseRecordCreateReq): Promise<ResponseData<FrontBrowseRecordModel>>;
|
|
21
|
+
createFrontRelayRecord(data: FrontRelayRecordCreateReq): Promise<ResponseData<FrontRelayRecordModel>>;
|
|
21
22
|
findFrontCommentPage(data: FrontCommentReq): Promise<ResponseData<FrontCommentPage>>;
|
|
22
23
|
createFrontComment(data: FrontCommentCreateReq): Promise<ResponseData<FrontCommentModel>>;
|
|
23
24
|
createMyFrontCollect(data: FrontCollectCreateReq): Promise<ResponseData<FrontCollectModel>>;
|
package/lib/api/cms/index.js
CHANGED
|
@@ -202,6 +202,17 @@ class CmsApiImpl {
|
|
|
202
202
|
},
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
+
// 转发
|
|
206
|
+
createFrontRelayRecord(data) {
|
|
207
|
+
return mpx.xfetch.fetch({
|
|
208
|
+
url: "/v1/front/front/front_relay_record",
|
|
209
|
+
method: "POST",
|
|
210
|
+
data,
|
|
211
|
+
header: {
|
|
212
|
+
"Grpc-Metadata-Tenant": data.tenant,
|
|
213
|
+
},
|
|
214
|
+
});
|
|
215
|
+
}
|
|
205
216
|
// 查询翻页信息评论表
|
|
206
217
|
findFrontCommentPage(data) {
|
|
207
218
|
if (data) {
|
package/lib/api/cms/types.d.ts
CHANGED
|
@@ -275,6 +275,22 @@ export interface FrontBrowseRecordCreateReq {
|
|
|
275
275
|
export interface FrontBrowseRecordModel {
|
|
276
276
|
browseId?: string;
|
|
277
277
|
}
|
|
278
|
+
export interface FrontRelayRecordCreateReq {
|
|
279
|
+
tenant: string;
|
|
280
|
+
requestId?: string;
|
|
281
|
+
validateOnly?: boolean;
|
|
282
|
+
type?: string;
|
|
283
|
+
relationId?: string;
|
|
284
|
+
organId?: string;
|
|
285
|
+
}
|
|
286
|
+
export interface FrontRelayRecordModel {
|
|
287
|
+
relayId?: string;
|
|
288
|
+
type?: string;
|
|
289
|
+
relationId?: string;
|
|
290
|
+
realIp?: string;
|
|
291
|
+
createTime?: string;
|
|
292
|
+
createBy?: string;
|
|
293
|
+
}
|
|
278
294
|
export interface FrontCommentCreateReq {
|
|
279
295
|
tenant: string;
|
|
280
296
|
requestId?: string;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { AppConfig, ResponseData, ValidateData, EventBase, EventTarget, CanvasResponse, } from "./api/types";
|
|
2
2
|
export type { LoginReq, LoginRes, RolesPerms, WebLoginReq, TokenModel, PhoneRegisterReq, PhoneReplaceReq, UpdateUserReq, UserInfoReq, UserInfo, GzhSubscribeCheckReq, } from "./api/auth/types";
|
|
3
|
-
export type { CmsSiteList, CmsSiteKey, CmsSiteModel, CmsChannelReq, CmsChannelList, CmsChannelModel, CmsChannelKey, CmsInfoPage, CmsInfoModelTotal, CmsInfoReq, CmsInfoKey, CmsInfoModel, CmsInfoContentReq, CmsInfoContentModel, CmsInfoContentList, CmsContentInfoReq, CmsContentInfoModel, CmsInfoFileReq, CmsInfoFileModel, CmsInfoFileList, CmsSeatsReq, CmsSeatsList, CmsSeatsModel, CmsSeatInfoReq, CmsSeatInfoList, CmsSeatInfoModel, FrontInteractKey, FrontInteractModel, FrontLikeKey, FrontLikeCreateReq, FrontLikeModel, FrontBrowseRecordCreateReq, FrontBrowseRecordModel, FrontCommentCreateReq, FrontCommentModel, FrontCommentModelTotal, FrontCommentPage, FrontCommentReq, FrontCollectCreateReq, FrontCollectModel, FrontCollectModelTotal, FrontCollectPage, FrontCollectReq, } from "./api/cms/types";
|
|
3
|
+
export type { CmsSiteList, CmsSiteKey, CmsSiteModel, CmsChannelReq, CmsChannelList, CmsChannelModel, CmsChannelKey, CmsInfoPage, CmsInfoModelTotal, CmsInfoReq, CmsInfoKey, CmsInfoModel, CmsInfoContentReq, CmsInfoContentModel, CmsInfoContentList, CmsContentInfoReq, CmsContentInfoModel, CmsInfoFileReq, CmsInfoFileModel, CmsInfoFileList, CmsSeatsReq, CmsSeatsList, CmsSeatsModel, CmsSeatInfoReq, CmsSeatInfoList, CmsSeatInfoModel, FrontInteractKey, FrontInteractModel, FrontLikeKey, FrontLikeCreateReq, FrontLikeModel, FrontBrowseRecordCreateReq, FrontBrowseRecordModel, FrontRelayRecordCreateReq, FrontRelayRecordModel, FrontCommentCreateReq, FrontCommentModel, FrontCommentModelTotal, FrontCommentPage, FrontCommentReq, FrontCollectCreateReq, FrontCollectModel, FrontCollectModelTotal, FrontCollectPage, FrontCollectReq, } from "./api/cms/types";
|
|
4
4
|
export type { Entry, DictEntryModel, DictEntryLayModel, } from "./api/dict/types";
|
|
5
5
|
export { EntryDict, EnumDict, EntryLayDict, CustomBizDict } from "./api/dicts";
|
|
6
6
|
export type { FileInfo, FileBase64Req, FileDownInfo, FileWebReq, } from "./api/files/types";
|
package/package.json
CHANGED
package/src/api/cms/index.ts
CHANGED
|
@@ -21,6 +21,8 @@ import {
|
|
|
21
21
|
FrontLikeCreateReq,
|
|
22
22
|
FrontBrowseRecordCreateReq,
|
|
23
23
|
FrontBrowseRecordModel,
|
|
24
|
+
FrontRelayRecordCreateReq,
|
|
25
|
+
FrontRelayRecordModel,
|
|
24
26
|
FrontCommentCreateReq,
|
|
25
27
|
FrontCommentModel,
|
|
26
28
|
FrontCommentPage,
|
|
@@ -278,6 +280,20 @@ class CmsApiImpl {
|
|
|
278
280
|
});
|
|
279
281
|
}
|
|
280
282
|
|
|
283
|
+
// 转发
|
|
284
|
+
createFrontRelayRecord(
|
|
285
|
+
data: FrontRelayRecordCreateReq,
|
|
286
|
+
): Promise<ResponseData<FrontRelayRecordModel>> {
|
|
287
|
+
return mpx.xfetch.fetch({
|
|
288
|
+
url: "/v1/front/front/front_relay_record",
|
|
289
|
+
method: "POST",
|
|
290
|
+
data,
|
|
291
|
+
header: {
|
|
292
|
+
"Grpc-Metadata-Tenant": data.tenant,
|
|
293
|
+
},
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
|
|
281
297
|
// 查询翻页信息评论表
|
|
282
298
|
findFrontCommentPage(
|
|
283
299
|
data: FrontCommentReq,
|
package/src/api/cms/types.ts
CHANGED
|
@@ -533,6 +533,37 @@ export interface FrontBrowseRecordModel {
|
|
|
533
533
|
browseId?: string;
|
|
534
534
|
}
|
|
535
535
|
|
|
536
|
+
// 转发记录表新增
|
|
537
|
+
export interface FrontRelayRecordCreateReq {
|
|
538
|
+
// 租户
|
|
539
|
+
tenant: string;
|
|
540
|
+
// 用于检测重复请求的唯一字符串ID
|
|
541
|
+
requestId?: string;
|
|
542
|
+
// 如果为true,则表示给定的请求仅需要被检验,而不是被执行
|
|
543
|
+
validateOnly?: boolean;
|
|
544
|
+
// 类型(cms_info: 信息, cms_product: 产品, vcard_share: 递名片, vcard_forward: 转发名片)
|
|
545
|
+
type?: string;
|
|
546
|
+
// 关系
|
|
547
|
+
relationId?: string;
|
|
548
|
+
// 组织ID
|
|
549
|
+
organId?: string;
|
|
550
|
+
}
|
|
551
|
+
// 转发记录表实体
|
|
552
|
+
export interface FrontRelayRecordModel {
|
|
553
|
+
// 转发id
|
|
554
|
+
relayId?: string;
|
|
555
|
+
// 类型
|
|
556
|
+
type?: string;
|
|
557
|
+
// 关系
|
|
558
|
+
relationId?: string;
|
|
559
|
+
// 用户IP地址
|
|
560
|
+
realIp?: string;
|
|
561
|
+
// 创建时间
|
|
562
|
+
createTime?: string;
|
|
563
|
+
// 创建者
|
|
564
|
+
createBy?: string;
|
|
565
|
+
}
|
|
566
|
+
|
|
536
567
|
// 评论表新增
|
|
537
568
|
export interface FrontCommentCreateReq {
|
|
538
569
|
// 租户
|
package/src/index.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/pages/organ.mpx.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|