jmash-core-mp 0.1.85 → 0.1.87

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.
@@ -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, 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, 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>>;
@@ -14,9 +14,13 @@ declare class CmsApiImpl {
14
14
  findCmsSeatInfoList(data: CmsSeatInfoReq): Promise<ResponseData<CmsSeatInfoList>>;
15
15
  cmsInfoFile(data: CmsInfoFileReq): Promise<ResponseData<CmsInfoFileList>>;
16
16
  cmsInfoInteractId(data: FrontInteractKey): Promise<ResponseData<FrontInteractModel>>;
17
- isLike(data: FrontLikeKey): Promise<ResponseData<string>>;
17
+ isLike(data: FrontLikeKey): Promise<ResponseData<any>>;
18
18
  frontLike(data: FrontLikeCreateReq): Promise<ResponseData<FrontLikeModel>>;
19
19
  createfrontBrowseRecord(data: FrontBrowseRecordCreateReq): Promise<ResponseData<FrontBrowseRecordModel>>;
20
+ findFrontCommentPage(data: FrontCommentReq): Promise<ResponseData<FrontCommentPage>>;
21
+ createFrontComment(data: FrontCommentCreateReq): Promise<ResponseData<FrontCommentModel>>;
22
+ createMyFrontCollect(data: FrontCollectCreateReq): Promise<ResponseData<FrontCollectModel>>;
23
+ findMyAllCollectPage(data: FrontCollectReq): Promise<ResponseData<FrontCollectPage>>;
20
24
  }
21
25
  declare const cmsApi: CmsApiImpl;
22
26
  export { cmsApi };
@@ -189,6 +189,58 @@ class CmsApiImpl {
189
189
  },
190
190
  });
191
191
  }
192
+ // 查询翻页信息评论表
193
+ findFrontCommentPage(data) {
194
+ if (data) {
195
+ data.hasStatus = data.status !== undefined;
196
+ }
197
+ grpc.clearEmpty(data);
198
+ return mpx.xfetch.fetch({
199
+ url: "/v1/front/front/front_comment/page/" + data.tenant,
200
+ method: "GET",
201
+ data,
202
+ header: {
203
+ "Grpc-Metadata-Tenant": data.tenant,
204
+ },
205
+ });
206
+ }
207
+ // 评论
208
+ createFrontComment(data) {
209
+ return mpx.xfetch.fetch({
210
+ url: "/v1/front/front/front_comment",
211
+ method: "POST",
212
+ data,
213
+ header: {
214
+ "Grpc-Metadata-Tenant": data.tenant,
215
+ },
216
+ });
217
+ }
218
+ // 收藏/取消收藏
219
+ createMyFrontCollect(data) {
220
+ return mpx.xfetch.fetch({
221
+ url: "/v1/front/front/my_front_collect",
222
+ method: "POST",
223
+ data,
224
+ header: {
225
+ "Grpc-Metadata-Tenant": data.tenant,
226
+ },
227
+ });
228
+ }
229
+ // 查询当前库下我的全部收藏分页
230
+ findMyAllCollectPage(data) {
231
+ if (data) {
232
+ data.hasType = data.type !== undefined;
233
+ }
234
+ grpc.clearEmpty(data);
235
+ return mpx.xfetch.fetch({
236
+ url: "/v1/front/front/my_front_collect_all/page/" + data.tenant,
237
+ method: "GET",
238
+ data,
239
+ header: {
240
+ "Grpc-Metadata-Tenant": data.tenant,
241
+ },
242
+ });
243
+ }
192
244
  }
193
245
  const cmsApi = new CmsApiImpl();
194
246
  export { cmsApi };
@@ -136,17 +136,6 @@ export interface CmsContentInfoModel {
136
136
  cmsInfo?: CmsInfoModel;
137
137
  infoContentResults?: Array<CmsInfoContentModel>;
138
138
  }
139
- export interface CmsInfoKey {
140
- tenant?: string;
141
- infoId?: string;
142
- }
143
- export interface CmsInfoContentReq {
144
- tenant?: string;
145
- infoId?: string;
146
- }
147
- export interface CmsInfoContentList {
148
- results: Array<CmsInfoContentModel>;
149
- }
150
139
  export interface CmsInfoFileReq {
151
140
  tenant?: string;
152
141
  infoId?: string;
@@ -163,6 +152,14 @@ export interface CmsInfoFileModel {
163
152
  fileHeight?: number;
164
153
  videoTime?: number;
165
154
  intro?: string;
155
+ fileLocation?: string;
156
+ geoLongitude?: number;
157
+ geoLatitude?: number;
158
+ geoAccuracy?: number;
159
+ geoAltitude?: string;
160
+ geoAltitudeAccracy?: number;
161
+ createTime?: string;
162
+ createBy?: string;
166
163
  }
167
164
  export interface CmsInfoFileList {
168
165
  results: Array<CmsInfoFileModel>;
@@ -240,7 +237,6 @@ export interface FrontLikeKey {
240
237
  }
241
238
  export interface FrontLikeCreateReq {
242
239
  tenant: string;
243
- requestId?: string;
244
240
  likeType?: string;
245
241
  relationId?: string;
246
242
  action?: boolean;
@@ -250,10 +246,107 @@ export interface FrontLikeModel {
250
246
  }
251
247
  export interface FrontBrowseRecordCreateReq {
252
248
  tenant?: string;
253
- requestId?: string;
254
249
  type?: string;
255
250
  relationId?: string;
256
251
  }
257
252
  export interface FrontBrowseRecordModel {
258
253
  browseId?: string;
259
254
  }
255
+ export interface FrontCommentCreateReq {
256
+ tenant: string;
257
+ requestId?: string;
258
+ validateOnly?: boolean;
259
+ infoId: string;
260
+ content: string;
261
+ parentId?: string;
262
+ replyCommentId?: string;
263
+ organId?: string;
264
+ }
265
+ export interface FrontCommentModel {
266
+ commentId?: string;
267
+ infoId?: string;
268
+ content?: string;
269
+ parentId?: string;
270
+ replyUserId?: string;
271
+ replyCommentId?: string;
272
+ likeCount?: number;
273
+ replyCount?: number;
274
+ orderBy?: string;
275
+ realIp?: string;
276
+ status?: boolean;
277
+ createTime?: string;
278
+ createBy?: string;
279
+ }
280
+ export interface FrontCommentModelTotal {
281
+ totalSize?: number;
282
+ }
283
+ export interface FrontCommentPage {
284
+ results: Array<FrontCommentModel>;
285
+ curPage?: number;
286
+ pageSize?: number;
287
+ totalSize?: number;
288
+ subTotalDto?: FrontCommentModelTotal;
289
+ totalDto?: FrontCommentModelTotal;
290
+ }
291
+ export interface FrontCommentReq {
292
+ tenant: string;
293
+ curPage?: number;
294
+ pageSize?: number;
295
+ orderName?: string;
296
+ orderAsc?: boolean;
297
+ createBy?: string;
298
+ infoId?: string;
299
+ hasParentId?: boolean;
300
+ parentId?: string;
301
+ hasStatus?: boolean;
302
+ status?: boolean;
303
+ likeContent?: string;
304
+ replyCommentId?: string;
305
+ hasMyPending?: boolean;
306
+ }
307
+ export interface FrontCollectCreateReq {
308
+ tenant: string;
309
+ type?: string;
310
+ relationId?: string;
311
+ relationName?: string;
312
+ coverUrl?: string;
313
+ appId?: string;
314
+ linkUrl?: string;
315
+ organId?: string;
316
+ action?: boolean;
317
+ }
318
+ export interface FrontCollectModel {
319
+ collectId?: string;
320
+ type?: string;
321
+ relationId?: string;
322
+ relationName?: string;
323
+ coverUrl?: string;
324
+ appId?: string;
325
+ linkUrl?: string;
326
+ createTime?: string;
327
+ createBy?: string;
328
+ tenant?: string;
329
+ }
330
+ export interface FrontCollectModelTotal {
331
+ totalSize?: number;
332
+ }
333
+ export interface FrontCollectPage {
334
+ results: Array<FrontCollectModel>;
335
+ curPage?: number;
336
+ pageSize?: number;
337
+ totalSize?: number;
338
+ subTotalDto?: FrontCollectModelTotal;
339
+ totalDto?: FrontCollectModelTotal;
340
+ }
341
+ export interface FrontCollectReq {
342
+ tenant: string;
343
+ curPage?: number;
344
+ pageSize?: number;
345
+ orderName?: string;
346
+ orderAsc?: boolean;
347
+ hasType?: boolean;
348
+ type?: string;
349
+ relationId?: string;
350
+ createBy?: string;
351
+ relationName?: string;
352
+ }
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, CmsChannelReq, CmsChannelList, CmsContentInfoReq, CmsContentInfoModel, CmsInfoModel, CmsInfoContentModel, CmsChannelModel, CmsSeatsReq, CmsSeatsList, CmsSeatsModel, CmsSeatInfoReq, CmsSeatInfoList, CmsSeatInfoModel, } 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, 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core-mp",
3
- "version": "0.1.85",
3
+ "version": "0.1.87",
4
4
  "private": false,
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -21,6 +21,14 @@ import {
21
21
  FrontLikeCreateReq,
22
22
  FrontBrowseRecordCreateReq,
23
23
  FrontBrowseRecordModel,
24
+ FrontCommentCreateReq,
25
+ FrontCommentModel,
26
+ FrontCommentPage,
27
+ FrontCommentReq,
28
+ FrontCollectCreateReq,
29
+ FrontCollectModel,
30
+ FrontCollectPage,
31
+ FrontCollectReq,
24
32
  CmsChannelKey,
25
33
  CmsChannelModel,
26
34
  CmsSeatsReq,
@@ -214,7 +222,7 @@ class CmsApiImpl {
214
222
  }
215
223
 
216
224
  // 查看是否点赞
217
- isLike(data: FrontLikeKey): Promise<ResponseData<string>> {
225
+ isLike(data: FrontLikeKey): Promise<ResponseData<any>> {
218
226
  return mpx.xfetch.fetch({
219
227
  url:
220
228
  "/v1/front/front/front_like/is_like/" +
@@ -253,6 +261,70 @@ class CmsApiImpl {
253
261
  },
254
262
  });
255
263
  }
264
+
265
+ // 查询翻页信息评论表
266
+ findFrontCommentPage(
267
+ data: FrontCommentReq,
268
+ ): Promise<ResponseData<FrontCommentPage>> {
269
+ if (data) {
270
+ data.hasStatus = data.status !== undefined;
271
+ }
272
+ grpc.clearEmpty(data);
273
+ return mpx.xfetch.fetch({
274
+ url: "/v1/front/front/front_comment/page/" + data.tenant,
275
+ method: "GET",
276
+ data,
277
+ header: {
278
+ "Grpc-Metadata-Tenant": data.tenant,
279
+ },
280
+ });
281
+ }
282
+
283
+ // 评论
284
+ createFrontComment(
285
+ data: FrontCommentCreateReq,
286
+ ): Promise<ResponseData<FrontCommentModel>> {
287
+ return mpx.xfetch.fetch({
288
+ url: "/v1/front/front/front_comment",
289
+ method: "POST",
290
+ data,
291
+ header: {
292
+ "Grpc-Metadata-Tenant": data.tenant,
293
+ },
294
+ });
295
+ }
296
+
297
+ // 收藏/取消收藏
298
+ createMyFrontCollect(
299
+ data: FrontCollectCreateReq,
300
+ ): Promise<ResponseData<FrontCollectModel>> {
301
+ return mpx.xfetch.fetch({
302
+ url: "/v1/front/front/my_front_collect",
303
+ method: "POST",
304
+ data,
305
+ header: {
306
+ "Grpc-Metadata-Tenant": data.tenant,
307
+ },
308
+ });
309
+ }
310
+
311
+ // 查询当前库下我的全部收藏分页
312
+ findMyAllCollectPage(
313
+ data: FrontCollectReq,
314
+ ): Promise<ResponseData<FrontCollectPage>> {
315
+ if (data) {
316
+ data.hasType = data.type !== undefined;
317
+ }
318
+ grpc.clearEmpty(data);
319
+ return mpx.xfetch.fetch({
320
+ url: "/v1/front/front/my_front_collect_all/page/" + data.tenant,
321
+ method: "GET",
322
+ data,
323
+ header: {
324
+ "Grpc-Metadata-Tenant": data.tenant,
325
+ },
326
+ });
327
+ }
256
328
  }
257
329
 
258
330
  const cmsApi = new CmsApiImpl();
@@ -267,27 +267,6 @@ export interface CmsContentInfoModel {
267
267
  infoContentResults?: Array<CmsInfoContentModel>;
268
268
  }
269
269
 
270
- // 信息主表主键
271
- export interface CmsInfoKey {
272
- // 租户
273
- tenant?: string;
274
- // 内容ID
275
- infoId?: string;
276
- }
277
-
278
- // 信息内容查询
279
- export interface CmsInfoContentReq {
280
- // 租户
281
- tenant?: string;
282
- // 信息ID
283
- infoId?: string;
284
- }
285
- // 信息内容列表
286
- export interface CmsInfoContentList {
287
- // 当前页内容
288
- results: Array<CmsInfoContentModel>;
289
- }
290
-
291
270
  // 信息附件表查询
292
271
  export interface CmsInfoFileReq {
293
272
  // 租户
@@ -303,7 +282,7 @@ export interface CmsInfoFileModel {
303
282
  infoId?: string;
304
283
  // 文件名称
305
284
  fileName?: string;
306
- // 文件类型
285
+ // 文件类型(text/video/image/audio/zip/file)
307
286
  fileType?: string;
308
287
  // 地址
309
288
  filePath?: string;
@@ -319,6 +298,22 @@ export interface CmsInfoFileModel {
319
298
  videoTime?: number;
320
299
  // 文件介绍
321
300
  intro?: string;
301
+ // 信息采集地址
302
+ fileLocation?: string;
303
+ // 经度
304
+ geoLongitude?: number;
305
+ // 纬度
306
+ geoLatitude?: number;
307
+ // 精度
308
+ geoAccuracy?: number;
309
+ // 海拔高度
310
+ geoAltitude?: string;
311
+ // 海拔高度精度
312
+ geoAltitudeAccracy?: number;
313
+ // 创建时间
314
+ createTime?: string;
315
+ // 创建者
316
+ createBy?: string;
322
317
  }
323
318
  // 信息附件表列表
324
319
  export interface CmsInfoFileList {
@@ -465,8 +460,6 @@ export interface FrontLikeKey {
465
460
  export interface FrontLikeCreateReq {
466
461
  // 租户
467
462
  tenant: string;
468
- // 用于检测重复请求的唯一字符串ID
469
- requestId?: string;
470
463
  // 点赞类型
471
464
  likeType?: string;
472
465
  // 关系ID
@@ -483,8 +476,6 @@ export interface FrontLikeModel {
483
476
  export interface FrontBrowseRecordCreateReq {
484
477
  // 租户
485
478
  tenant?: string;
486
- // 用于检测重复请求的唯一字符串ID
487
- requestId?: string;
488
479
  // 类型
489
480
  type?: string;
490
481
  // 关系ID
@@ -495,3 +486,191 @@ export interface FrontBrowseRecordModel {
495
486
  // 浏览ID
496
487
  browseId?: string;
497
488
  }
489
+
490
+ // 评论表新增
491
+ export interface FrontCommentCreateReq {
492
+ // 租户
493
+ tenant: string;
494
+ // 用于检测重复请求的唯一字符串ID
495
+ requestId?: string;
496
+ // 如果为true,则表示给定的请求仅需要被检验,而不是被执行
497
+ validateOnly?: boolean;
498
+ // 信息id
499
+ infoId: string;
500
+ // 评论内容
501
+ content: string;
502
+ // 父ID (0:一级评论;其它为一级评论的ID)
503
+ parentId?: string;
504
+ // 回复评论的ID
505
+ replyCommentId?: string;
506
+ // 组织ID
507
+ organId?: string;
508
+ }
509
+ // 评论表实体
510
+ export interface FrontCommentModel {
511
+ // 主键ID
512
+ commentId?: string;
513
+ // 信息id
514
+ infoId?: string;
515
+ // 评论内容
516
+ content?: string;
517
+ // 父ID (0:一级评论;其它为一级评论的ID)
518
+ parentId?: string;
519
+ // 回复用户ID
520
+ replyUserId?: string;
521
+ // 回复评论的ID
522
+ replyCommentId?: string;
523
+ // 点赞数
524
+ likeCount?: number;
525
+ // 回复数
526
+ replyCount?: number;
527
+ // 排序结果=(点赞数+回复数)
528
+ orderBy?: string;
529
+ // 用户IP地址
530
+ realIp?: string;
531
+ // 审批状态
532
+ status?: boolean;
533
+ // 创建时间
534
+ createTime?: string;
535
+ // 创建者
536
+ createBy?: string;
537
+ }
538
+ // 评论表合计
539
+ export interface FrontCommentModelTotal {
540
+ // 总记录数
541
+ totalSize?: number;
542
+ }
543
+ // 评论表分页
544
+ export interface FrontCommentPage {
545
+ // 当前页内容
546
+ results: Array<FrontCommentModel>;
547
+ // 当前页码
548
+ curPage?: number;
549
+ // 页尺寸
550
+ pageSize?: number;
551
+ // 总记录数
552
+ totalSize?: number;
553
+ // 本页小计
554
+ subTotalDto?: FrontCommentModelTotal;
555
+ // 合计
556
+ totalDto?: FrontCommentModelTotal;
557
+ }
558
+ // 查询翻页信息评论表
559
+ export interface FrontCommentReq {
560
+ // 租户
561
+ tenant: string;
562
+ // 当前页码
563
+ curPage?: number;
564
+ // 页尺寸
565
+ pageSize?: number;
566
+ // 排序名称
567
+ orderName?: string;
568
+ // 是否升序排序
569
+ orderAsc?: boolean;
570
+ // 创建人
571
+ createBy?: string;
572
+ // 信息id
573
+ infoId?: string;
574
+ // 是否包含父ID
575
+ hasParentId?: boolean;
576
+ // 父ID (0:一级评论;其它为一级评论的ID)
577
+ parentId?: string;
578
+ // 是否包含审核状态
579
+ hasStatus?: boolean;
580
+ // 审批状态
581
+ status?: boolean;
582
+ // 评论内容
583
+ likeContent?: string;
584
+ // 回复评论id
585
+ replyCommentId?: string;
586
+ // 是否查询我的待审核
587
+ hasMyPending?: boolean;
588
+ }
589
+
590
+ // 收藏表新增
591
+ export interface FrontCollectCreateReq {
592
+ // 租户
593
+ tenant: string;
594
+ // 收藏类型
595
+ type?: string;
596
+ // 关系id
597
+ relationId?: string;
598
+ // 关系标题
599
+ relationName?: string;
600
+ // 快照-缩略图地址
601
+ coverUrl?: string;
602
+ // 小程序id
603
+ appId?: string;
604
+ // 快照-详情页跳转链接
605
+ linkUrl?: string;
606
+ // 组织ID
607
+ organId?: string;
608
+ // 收藏true/取消收藏false
609
+ action?: boolean;
610
+ }
611
+ // 收藏表实体
612
+ export interface FrontCollectModel {
613
+ // 收藏id
614
+ collectId?: string;
615
+ // 类型
616
+ type?: string;
617
+ // 关系id
618
+ relationId?: string;
619
+ // 关系标题
620
+ relationName?: string;
621
+ // 快照-缩略图地址
622
+ coverUrl?: string;
623
+ // 小程序id
624
+ appId?: string;
625
+ // 快照-详情页跳转链接
626
+ linkUrl?: string;
627
+ // 创建时间
628
+ createTime?: string;
629
+ // 创建者
630
+ createBy?: string;
631
+ // 租户
632
+ tenant?: string;
633
+ }
634
+ // 收藏表合计
635
+ export interface FrontCollectModelTotal {
636
+ // 总记录数
637
+ totalSize?: number;
638
+ }
639
+ // 收藏表分页
640
+ export interface FrontCollectPage {
641
+ // 当前页内容
642
+ results: Array<FrontCollectModel>;
643
+ // 当前页码
644
+ curPage?: number;
645
+ // 页尺寸
646
+ pageSize?: number;
647
+ // 总记录数
648
+ totalSize?: number;
649
+ // 本页小计
650
+ subTotalDto?: FrontCollectModelTotal;
651
+ // 合计
652
+ totalDto?: FrontCollectModelTotal;
653
+ }
654
+ // 查询我的收藏分页
655
+ export interface FrontCollectReq {
656
+ // 租户
657
+ tenant: string;
658
+ // 当前页码
659
+ curPage?: number;
660
+ // 页尺寸
661
+ pageSize?: number;
662
+ // 排序名称
663
+ orderName?: string;
664
+ // 是否升序排序
665
+ orderAsc?: boolean;
666
+ // 是否有收藏类型
667
+ hasType?: boolean;
668
+ // 收藏类型
669
+ type?: string;
670
+ // 关系id
671
+ relationId?: string;
672
+ // 创建者
673
+ createBy?: string;
674
+ // 关系标题(模糊查询)
675
+ relationName?: string;
676
+ }
@@ -35,7 +35,9 @@
35
35
  </view>
36
36
  </block>
37
37
  <block wx:if="{{ item.infoType === 'text' }}">
38
- <rich-text class="article-text" nodes="{{ item.infoContent }}" />
38
+ <view class="article-text">
39
+ <rich-text style="width: 100%;" nodes="{{ item.infoContent }}" />
40
+ </view>
39
41
  </block>
40
42
  </block>
41
43
  </view>
@@ -220,6 +222,13 @@ createComponent({
220
222
  color: #333;
221
223
  line-height: 1.8;
222
224
  margin-bottom: 16rpx;
225
+
226
+ // 处理图片太大问题
227
+ .rich-img {
228
+ width: 100% !important;
229
+ height: auto !important;
230
+ display: block !important;
231
+ }
223
232
  }
224
233
  }
225
234
  </style>
@@ -33,7 +33,9 @@
33
33
  </view>
34
34
  </block>
35
35
  <block wx:if="{{ item.infoType === 'text' }}">
36
- <rich-text class="article-text" nodes="{{ item.infoContent }}" />
36
+ <view class="article-text">
37
+ <rich-text style="width: 100%;" nodes="{{ item.infoContent }}" />
38
+ </view>
37
39
  </block>
38
40
  </block>
39
41
  </view>
@@ -146,6 +148,13 @@ createComponent({
146
148
  color: #333;
147
149
  line-height: 1.8;
148
150
  margin-bottom: 16rpx;
151
+
152
+ // 处理图片太大问题
153
+ .rich-img {
154
+ width: 100% !important;
155
+ height: auto !important;
156
+ display: block !important;
157
+ }
149
158
  }
150
159
  }
151
160
 
@@ -11,7 +11,10 @@
11
11
  src="{{ resourceUrl + item.icon }}" mode="widthFix" />
12
12
  <view class="cell-text">{{ item.text }}</view>
13
13
  </view>
14
- <cube-icon class="cell-arrow" type="arrow" size="28rpx" />
14
+ <view class="my-cell-item-r">
15
+ <text wx:if="{{ item.desc }}" class="cell-desc">{{ item.desc }}</text>
16
+ <cube-icon class="cell-arrow" type="arrow" size="28rpx" />
17
+ </view>
15
18
  </button>
16
19
  </block>
17
20
  </view>
@@ -172,6 +175,18 @@ createComponent({
172
175
  color: #1f2937;
173
176
  }
174
177
 
178
+ .my-cell-item-r {
179
+ display: flex;
180
+ align-items: center;
181
+ gap: 10rpx;
182
+
183
+ .cell-desc {
184
+ font-size: 28rpx;
185
+ color: $font-color-grey-opacity;
186
+ line-height: 40rpx;
187
+ }
188
+ }
189
+
175
190
  .cell-arrow {
176
191
  color: $font-color-grey-opacity;
177
192
  }
package/src/index.ts CHANGED
@@ -21,19 +21,48 @@ export type {
21
21
  } from "./api/auth/types";
22
22
  export type {
23
23
  CmsSiteList,
24
+ CmsSiteKey,
25
+ CmsSiteModel,
24
26
  CmsChannelReq,
25
27
  CmsChannelList,
26
- CmsContentInfoReq,
27
- CmsContentInfoModel,
28
+ CmsChannelModel,
29
+ CmsChannelKey,
30
+ CmsInfoPage,
31
+ CmsInfoModelTotal,
32
+ CmsInfoReq,
33
+ CmsInfoKey,
28
34
  CmsInfoModel,
35
+ CmsInfoContentReq,
29
36
  CmsInfoContentModel,
30
- CmsChannelModel,
37
+ CmsInfoContentList,
38
+ CmsContentInfoReq,
39
+ CmsContentInfoModel,
40
+ CmsInfoFileReq,
41
+ CmsInfoFileModel,
42
+ CmsInfoFileList,
31
43
  CmsSeatsReq,
32
44
  CmsSeatsList,
33
45
  CmsSeatsModel,
34
46
  CmsSeatInfoReq,
35
47
  CmsSeatInfoList,
36
48
  CmsSeatInfoModel,
49
+ FrontInteractKey,
50
+ FrontInteractModel,
51
+ FrontLikeKey,
52
+ FrontLikeCreateReq,
53
+ FrontLikeModel,
54
+ FrontBrowseRecordCreateReq,
55
+ FrontBrowseRecordModel,
56
+ FrontCommentCreateReq,
57
+ FrontCommentModel,
58
+ FrontCommentModelTotal,
59
+ FrontCommentPage,
60
+ FrontCommentReq,
61
+ FrontCollectCreateReq,
62
+ FrontCollectModel,
63
+ FrontCollectModelTotal,
64
+ FrontCollectPage,
65
+ FrontCollectReq,
37
66
  } from "./api/cms/types";
38
67
  export type {
39
68
  Entry,