jmash-core-mp 0.1.83 → 0.1.85

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 } 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, 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>>;
@@ -10,6 +10,8 @@ declare class CmsApiImpl {
10
10
  findCmsInfoPage(data: CmsInfoReq): Promise<ResponseData<CmsInfoPage>>;
11
11
  findCmsInfoById(data: CmsInfoKey): Promise<ResponseData<CmsInfoModel>>;
12
12
  findCmsInfoContent(data: CmsInfoContentReq): Promise<ResponseData<CmsInfoContentList>>;
13
+ findCmsSeatsList(data: CmsSeatsReq): Promise<ResponseData<CmsSeatsList>>;
14
+ findCmsSeatInfoList(data: CmsSeatInfoReq): Promise<ResponseData<CmsSeatInfoList>>;
13
15
  cmsInfoFile(data: CmsInfoFileReq): Promise<ResponseData<CmsInfoFileList>>;
14
16
  cmsInfoInteractId(data: FrontInteractKey): Promise<ResponseData<FrontInteractModel>>;
15
17
  isLike(data: FrontLikeKey): Promise<ResponseData<string>>;
@@ -100,6 +100,39 @@ class CmsApiImpl {
100
100
  },
101
101
  });
102
102
  }
103
+ // 查询列表信息占位表
104
+ findCmsSeatsList(data) {
105
+ grpc.clearEmpty(data);
106
+ if (data) {
107
+ data.hasIsImage = data.isImage !== undefined;
108
+ data.hasStatus = data.status !== undefined;
109
+ }
110
+ grpc.clearEmpty(data);
111
+ return mpx.xfetch.fetch({
112
+ url: "/v1/front/cms/cms_seats/list/" + data.tenant,
113
+ method: "GET",
114
+ data,
115
+ header: {
116
+ "Grpc-Metadata-Tenant": data.tenant,
117
+ },
118
+ });
119
+ }
120
+ // 查询列表信息占位信息表 - 详情列表
121
+ findCmsSeatInfoList(data) {
122
+ grpc.clearEmpty(data);
123
+ if (data) {
124
+ data.hasStatus = data.status !== undefined;
125
+ }
126
+ grpc.clearEmpty(data);
127
+ return mpx.xfetch.fetch({
128
+ url: "/v1/front/cms/cms_seat_info/list/" + data.tenant,
129
+ method: "GET",
130
+ data,
131
+ header: {
132
+ "Grpc-Metadata-Tenant": data.tenant,
133
+ },
134
+ });
135
+ }
103
136
  // 查询列表信息信息附件表
104
137
  cmsInfoFile(data) {
105
138
  return mpx.xfetch.fetch({
@@ -167,6 +167,64 @@ export interface CmsInfoFileModel {
167
167
  export interface CmsInfoFileList {
168
168
  results: Array<CmsInfoFileModel>;
169
169
  }
170
+ export interface CmsSeatsReq {
171
+ tenant?: string;
172
+ curPage?: number;
173
+ pageSize?: number;
174
+ siteId?: string;
175
+ channelId?: string;
176
+ likeSeatName?: string;
177
+ seatCode?: string;
178
+ isImage?: boolean;
179
+ hasIsImage?: boolean;
180
+ status?: boolean;
181
+ hasStatus?: boolean;
182
+ }
183
+ export interface CmsSeatsList {
184
+ results: Array<CmsSeatsModel>;
185
+ }
186
+ export interface CmsSeatsModel {
187
+ seatId?: string;
188
+ seatName?: string;
189
+ seatCode?: string;
190
+ siteId?: string;
191
+ channelId?: string;
192
+ isImage?: boolean;
193
+ width?: number;
194
+ height?: number;
195
+ orderBy?: number;
196
+ description?: string;
197
+ status?: boolean;
198
+ createTime?: string;
199
+ createBy?: string;
200
+ updateTime?: string;
201
+ updateBy?: string;
202
+ }
203
+ export interface CmsSeatInfoReq {
204
+ tenant?: string;
205
+ curPage?: number;
206
+ pageSize?: number;
207
+ likeInfoName?: string;
208
+ seatId?: string;
209
+ status?: boolean;
210
+ hasStatus?: boolean;
211
+ }
212
+ export interface CmsSeatInfoList {
213
+ results: Array<CmsSeatInfoModel>;
214
+ }
215
+ export interface CmsSeatInfoModel {
216
+ seatId?: string;
217
+ infoId?: string;
218
+ infoName?: string;
219
+ picUrl?: string;
220
+ linkUrl?: string;
221
+ orderBy?: number;
222
+ status?: boolean;
223
+ createTime?: string;
224
+ createBy?: string;
225
+ updateTime?: string;
226
+ updateBy?: string;
227
+ }
170
228
  export interface FrontInteractKey {
171
229
  tenant?: string;
172
230
  interactId?: 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, CmsChannelReq, CmsChannelList, CmsContentInfoReq, CmsContentInfoModel, CmsInfoModel, CmsInfoContentModel, CmsChannelModel, } from "./api/cms/types";
3
+ export type { CmsSiteList, CmsChannelReq, CmsChannelList, CmsContentInfoReq, CmsContentInfoModel, CmsInfoModel, CmsInfoContentModel, CmsChannelModel, CmsSeatsReq, CmsSeatsList, CmsSeatsModel, CmsSeatInfoReq, CmsSeatInfoList, CmsSeatInfoModel, } 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.83",
3
+ "version": "0.1.85",
4
4
  "private": false,
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -23,6 +23,10 @@ import {
23
23
  FrontBrowseRecordModel,
24
24
  CmsChannelKey,
25
25
  CmsChannelModel,
26
+ CmsSeatsReq,
27
+ CmsSeatsList,
28
+ CmsSeatInfoReq,
29
+ CmsSeatInfoList,
26
30
  } from "./types";
27
31
  import { ResponseData } from "../../api/types";
28
32
  import { grpc } from "../../utils/grpc";
@@ -52,7 +56,7 @@ class CmsApiImpl {
52
56
 
53
57
  // 查询列表信息网站栏目 (没有传递别名就是将所有的栏目信息查询出来,给了栏目别名查询传递别名的栏目信息)
54
58
  findCmsChannelList(
55
- data: CmsChannelReq
59
+ data: CmsChannelReq,
56
60
  ): Promise<ResponseData<CmsChannelList>> {
57
61
  grpc.clearEmpty(data);
58
62
  if (data) {
@@ -68,7 +72,7 @@ class CmsApiImpl {
68
72
 
69
73
  // 查询网站栏目
70
74
  findCmsChannelById(
71
- data: CmsChannelKey
75
+ data: CmsChannelKey,
72
76
  ): Promise<ResponseData<CmsChannelModel>> {
73
77
  return mpx.xfetch.fetch({
74
78
  url: `/v1/cms/cms_channel/id/${data.tenant}/${data.channelId}`,
@@ -81,7 +85,7 @@ class CmsApiImpl {
81
85
 
82
86
  // 根据栏目别名查询翻页信息信息主表-单页栏目内容
83
87
  findCmsContentInfo(
84
- data: CmsContentInfoReq
88
+ data: CmsContentInfoReq,
85
89
  ): Promise<ResponseData<CmsContentInfoModel>> {
86
90
  const config = getApp().globalData.config;
87
91
  data.tenant = data.tenant || config.tenant;
@@ -133,7 +137,7 @@ class CmsApiImpl {
133
137
 
134
138
  // 查询列表信息信息内容
135
139
  findCmsInfoContent(
136
- data: CmsInfoContentReq
140
+ data: CmsInfoContentReq,
137
141
  ): Promise<ResponseData<CmsInfoContentList>> {
138
142
  grpc.clearEmpty(data);
139
143
  return mpx.xfetch.fetch({
@@ -146,6 +150,43 @@ class CmsApiImpl {
146
150
  });
147
151
  }
148
152
 
153
+ // 查询列表信息占位表
154
+ findCmsSeatsList(data: CmsSeatsReq): Promise<ResponseData<CmsSeatsList>> {
155
+ grpc.clearEmpty(data);
156
+ if (data) {
157
+ data.hasIsImage = data.isImage !== undefined;
158
+ data.hasStatus = data.status !== undefined;
159
+ }
160
+ grpc.clearEmpty(data);
161
+ return mpx.xfetch.fetch({
162
+ url: "/v1/front/cms/cms_seats/list/" + data.tenant,
163
+ method: "GET",
164
+ data,
165
+ header: {
166
+ "Grpc-Metadata-Tenant": data.tenant,
167
+ },
168
+ });
169
+ }
170
+
171
+ // 查询列表信息占位信息表 - 详情列表
172
+ findCmsSeatInfoList(
173
+ data: CmsSeatInfoReq,
174
+ ): Promise<ResponseData<CmsSeatInfoList>> {
175
+ grpc.clearEmpty(data);
176
+ if (data) {
177
+ data.hasStatus = data.status !== undefined;
178
+ }
179
+ grpc.clearEmpty(data);
180
+ return mpx.xfetch.fetch({
181
+ url: "/v1/front/cms/cms_seat_info/list/" + data.tenant,
182
+ method: "GET",
183
+ data,
184
+ header: {
185
+ "Grpc-Metadata-Tenant": data.tenant,
186
+ },
187
+ });
188
+ }
189
+
149
190
  // 查询列表信息信息附件表
150
191
  cmsInfoFile(data: CmsInfoFileReq): Promise<ResponseData<CmsInfoFileList>> {
151
192
  return mpx.xfetch.fetch({
@@ -160,7 +201,7 @@ class CmsApiImpl {
160
201
 
161
202
  // 查询信息互动表
162
203
  cmsInfoInteractId(
163
- data: FrontInteractKey
204
+ data: FrontInteractKey,
164
205
  ): Promise<ResponseData<FrontInteractModel>> {
165
206
  return mpx.xfetch.fetch({
166
207
  url:
@@ -201,7 +242,7 @@ class CmsApiImpl {
201
242
 
202
243
  // 浏览
203
244
  createfrontBrowseRecord(
204
- data: FrontBrowseRecordCreateReq
245
+ data: FrontBrowseRecordCreateReq,
205
246
  ): Promise<ResponseData<FrontBrowseRecordModel>> {
206
247
  return mpx.xfetch.fetch({
207
248
  url: "/v1/front/front/front_browse_record",
@@ -325,6 +325,118 @@ export interface CmsInfoFileList {
325
325
  // 当前页内容
326
326
  results: Array<CmsInfoFileModel>;
327
327
  }
328
+ // 占位表查询
329
+ export interface CmsSeatsReq {
330
+ // 租户
331
+ tenant?: string;
332
+ // 当前页码
333
+ curPage?: number;
334
+ // 页尺寸
335
+ pageSize?: number;
336
+ // 站点ID
337
+ siteId?: string;
338
+ // 栏目ID
339
+ channelId?: string;
340
+ // 占位名称
341
+ likeSeatName?: string;
342
+ // 编码
343
+ seatCode?: string;
344
+ // 是否图片
345
+ isImage?: boolean;
346
+ // 是否包含是否图片
347
+ hasIsImage?: boolean;
348
+ // 状态
349
+ status?: boolean;
350
+ // 是否包含状态
351
+ hasStatus?: boolean;
352
+ }
353
+ // 占位表列表
354
+ export interface CmsSeatsList {
355
+ // 当前页内容
356
+ results: Array<CmsSeatsModel>;
357
+ }
358
+ // 占位表实体
359
+ export interface CmsSeatsModel {
360
+ // 占位id
361
+ seatId?: string;
362
+ // 名称
363
+ seatName?: string;
364
+ // 编码
365
+ seatCode?: string;
366
+ // 站点id
367
+ siteId?: string;
368
+ // 栏目id
369
+ channelId?: string;
370
+ // 是否图片
371
+ isImage?: boolean;
372
+ // 图片宽度
373
+ width?: number;
374
+ // 图片高度
375
+ height?: number;
376
+ // 排序
377
+ orderBy?: number;
378
+ // 描述
379
+ description?: string;
380
+ // 状态
381
+ status?: boolean;
382
+ // 创建时间
383
+ createTime?: string;
384
+ // 创建者
385
+ createBy?: string;
386
+ // 更新时间
387
+ updateTime?: string;
388
+ // 更新者
389
+ updateBy?: string;
390
+ }
391
+
392
+ // 占位信息表查询
393
+ export interface CmsSeatInfoReq {
394
+ // 租户
395
+ tenant?: string;
396
+ // 当前页码
397
+ curPage?: number;
398
+ // 页尺寸
399
+ pageSize?: number;
400
+ // 名称
401
+ likeInfoName?: string;
402
+ // 占位id
403
+ seatId?: string;
404
+ // 状态
405
+ status?: boolean;
406
+ // 是否包含状态
407
+ hasStatus?: boolean;
408
+ }
409
+ // 占位信息表列表
410
+ export interface CmsSeatInfoList {
411
+ // 当前页内容
412
+ results: Array<CmsSeatInfoModel>;
413
+ }
414
+ // 占位信息表实体
415
+ export interface CmsSeatInfoModel {
416
+ // 占位id
417
+ seatId?: string;
418
+ // 信息id
419
+ infoId?: string;
420
+ // 名称
421
+ infoName?: string;
422
+ // 图片地址
423
+ picUrl?: string;
424
+ // 链接地址
425
+ linkUrl?: string;
426
+ // 排序
427
+ orderBy?: number;
428
+ // 链接状态
429
+ status?: boolean;
430
+ // 创建时间
431
+ createTime?: string;
432
+ // 创建者
433
+ createBy?: string;
434
+ // 更新时间
435
+ updateTime?: string;
436
+ // 更新者
437
+ updateBy?: string;
438
+ }
439
+
328
440
  // 互动表主键
329
441
  export interface FrontInteractKey {
330
442
  // 租户
@@ -13,6 +13,9 @@
13
13
  import mpx, { ref, createComponent } from "@mpxjs/core";
14
14
 
15
15
  createComponent({
16
+ options: {
17
+ styleIsolation: "apply-shared",
18
+ },
16
19
  properties: {
17
20
  // 关注公众号提示文本
18
21
  text: {
@@ -79,8 +82,8 @@ createComponent({
79
82
  height: 50rpx;
80
83
  box-sizing: border-box;
81
84
  border-radius: 25rpx;
82
- border: 2rpx solid $theme-color;
83
- color: $theme-color;
85
+ border: 2rpx solid $font-color;
86
+ color: $font-color;
84
87
  }
85
88
  }
86
89
  }
package/src/index.ts CHANGED
@@ -28,6 +28,12 @@ export type {
28
28
  CmsInfoModel,
29
29
  CmsInfoContentModel,
30
30
  CmsChannelModel,
31
+ CmsSeatsReq,
32
+ CmsSeatsList,
33
+ CmsSeatsModel,
34
+ CmsSeatInfoReq,
35
+ CmsSeatInfoList,
36
+ CmsSeatInfoModel,
31
37
  } from "./api/cms/types";
32
38
  export type {
33
39
  Entry,
@@ -1 +0,0 @@
1
- export {};