@pisell/pisellos 2.0.1 → 2.0.2

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.
@@ -19,6 +19,7 @@ export declare const createCartItemOrigin: () => {
19
19
  sub_type: null;
20
20
  duration: null;
21
21
  like_status: string;
22
+ relation_type: string;
22
23
  resources: null;
23
24
  schedule_id: number;
24
25
  start_date: null;
@@ -38,8 +38,8 @@ export var createCartItemOrigin = function createCartItemOrigin() {
38
38
  // 资源相关
39
39
  // 资源状态 -固定
40
40
  like_status: "common",
41
- // // 资源类型 - 固定----谭景琳备注:马天宇说现在平行资源是不传这个的
42
- // relation_type: "form",
41
+ // 资源类型
42
+ relation_type: "",
43
43
  // 所选资源
44
44
  resources: null,
45
45
  // 日程id - 固定
@@ -228,6 +228,7 @@ export var formatResourceToCartItemOrigin = function formatResourceToCartItemOri
228
228
  // 接口只需要部分字段,需要处理
229
229
  resources.forEach(function (resource) {
230
230
  origin.resources.push({
231
+ relation_type: "form",
231
232
  like_status: "common",
232
233
  id: resource.id,
233
234
  main_field: resource.main_field,
@@ -19,6 +19,7 @@ export declare const createCartItemOrigin: () => {
19
19
  sub_type: null;
20
20
  duration: null;
21
21
  like_status: string;
22
+ relation_type: string;
22
23
  resources: null;
23
24
  schedule_id: number;
24
25
  start_date: null;
@@ -77,8 +77,8 @@ var createCartItemOrigin = () => {
77
77
  // 资源相关
78
78
  // 资源状态 -固定
79
79
  like_status: "common",
80
- // // 资源类型 - 固定----谭景琳备注:马天宇说现在平行资源是不传这个的
81
- // relation_type: "form",
80
+ // 资源类型
81
+ relation_type: "",
82
82
  // 所选资源
83
83
  resources: null,
84
84
  // 日程id - 固定
@@ -215,6 +215,7 @@ var formatResourceToCartItemOrigin = (params) => {
215
215
  origin.resources = [];
216
216
  resources.forEach((resource) => {
217
217
  origin.resources.push({
218
+ relation_type: "form",
218
219
  like_status: "common",
219
220
  id: resource.id,
220
221
  main_field: resource.main_field,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.0.1",
4
+ "version": "2.0.2",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",