biz9-logic 4.0.51 → 4.0.53
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/biz9_config +1 -1
- package/index.js +22 -22
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -19,7 +19,7 @@ class TemplateType {
|
|
|
19
19
|
static BODY='body';
|
|
20
20
|
static FOOTER='footer';
|
|
21
21
|
}
|
|
22
|
-
class
|
|
22
|
+
class Template_Logic{
|
|
23
23
|
static get_test = () =>{
|
|
24
24
|
let template = DataItem.get_new_full_item(
|
|
25
25
|
DataItem.get_new(DataType.TEMPLATE,Number.get_id()),
|
|
@@ -34,7 +34,7 @@ class Template{
|
|
|
34
34
|
return template;
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
class
|
|
37
|
+
class Page_Logic{
|
|
38
38
|
static get_test = (option) =>{
|
|
39
39
|
if(!option){
|
|
40
40
|
option = {item_count:9,page_count:9,get_value:false,get_item:false,value_count:20};
|
|
@@ -56,7 +56,7 @@ class Page{
|
|
|
56
56
|
return page;
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
class
|
|
59
|
+
class Product_Logic{
|
|
60
60
|
static get_test = (option) =>{
|
|
61
61
|
if(!option){
|
|
62
62
|
option = {item_count:9,product_count:9,get_value:false,get_item:false,value_count:20};
|
|
@@ -118,7 +118,7 @@ class Product{
|
|
|
118
118
|
return [category_list,product_list]
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
class
|
|
121
|
+
class Service_Logic{
|
|
122
122
|
static get_test = (option) =>{
|
|
123
123
|
if(!option){
|
|
124
124
|
option = {item_count:10,get_value:false,get_item:false,value_count:20};
|
|
@@ -184,7 +184,7 @@ class Service{
|
|
|
184
184
|
return [category_list,service_list]
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
|
-
class
|
|
187
|
+
class Event_Logic{
|
|
188
188
|
static get_test = (option) =>{
|
|
189
189
|
if(!option){
|
|
190
190
|
option = {item_count:9,get_value:false,get_item:false,value_count:20};
|
|
@@ -407,7 +407,7 @@ class DataType {
|
|
|
407
407
|
static USER='user_biz';
|
|
408
408
|
static VIDEO='video_biz';
|
|
409
409
|
}
|
|
410
|
-
class
|
|
410
|
+
class Blog_Post_Logic{
|
|
411
411
|
static get_test = (option) =>{
|
|
412
412
|
if(!option){
|
|
413
413
|
option = {item_count:10,get_value:false,get_item:false,value_count:20};
|
|
@@ -469,7 +469,7 @@ class Blog_Post{
|
|
|
469
469
|
return [category_list,blog_post_list]
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
|
-
class
|
|
472
|
+
class Faq_Logic{
|
|
473
473
|
static get_test = () =>{
|
|
474
474
|
let faq = DataItem.get_new_full_item(
|
|
475
475
|
DataItem.get_new(DataType.FAQ,Number.get_id()),
|
|
@@ -491,7 +491,7 @@ class Faq{
|
|
|
491
491
|
return item_list;
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
|
-
class
|
|
494
|
+
class Review_Logic{
|
|
495
495
|
static get_test = () =>{
|
|
496
496
|
let city_list = ["Miami","Atlanta","Chicago","Seattle","New York City"];
|
|
497
497
|
let state_list = ["Georgia","New York","Illinois","Washington","Flordia"];
|
|
@@ -520,7 +520,7 @@ class Review{
|
|
|
520
520
|
return item_list;
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
|
-
class
|
|
523
|
+
class Business_Logic {
|
|
524
524
|
static get_new = () =>{
|
|
525
525
|
if(!title){
|
|
526
526
|
title="";
|
|
@@ -622,8 +622,8 @@ class BiZ_Url {
|
|
|
622
622
|
let action_url= "main/biz_item/get_template/"+title_url;
|
|
623
623
|
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,null);
|
|
624
624
|
};
|
|
625
|
-
static get_custom_field=(biz9_config,data_type)=>{
|
|
626
|
-
let action_url="main/biz_item/get_custom_field/"+data_type;
|
|
625
|
+
static get_custom_field=(biz9_config,data_type,id)=>{
|
|
626
|
+
let action_url="main/biz_item/get_custom_field/"+data_type+"/"+id;
|
|
627
627
|
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,null);
|
|
628
628
|
};
|
|
629
629
|
}
|
|
@@ -689,7 +689,7 @@ class Obj {
|
|
|
689
689
|
return get_cloud_filter_obj_main(data_type,filter,sort_by,page_current,page_size);
|
|
690
690
|
}
|
|
691
691
|
};
|
|
692
|
-
class
|
|
692
|
+
class Category_Logic {
|
|
693
693
|
static get_test(option){
|
|
694
694
|
if(!option){
|
|
695
695
|
option = {item_count:9,category_count:9,get_value:false,get_item:false,value_count:20};
|
|
@@ -1086,27 +1086,27 @@ class Sub_Item{
|
|
|
1086
1086
|
}
|
|
1087
1087
|
module.exports = {
|
|
1088
1088
|
BiZ_Url,
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1089
|
+
Business_Logic,
|
|
1090
|
+
Blog_Post_Logic,
|
|
1091
|
+
Category_Logic,
|
|
1092
1092
|
CMS,
|
|
1093
1093
|
DataItem,
|
|
1094
1094
|
DataType,
|
|
1095
1095
|
Field,
|
|
1096
1096
|
FieldType,
|
|
1097
|
-
|
|
1097
|
+
Faq_Logic,
|
|
1098
1098
|
Social,
|
|
1099
|
-
|
|
1099
|
+
Event_Logic,
|
|
1100
1100
|
Message,
|
|
1101
1101
|
Obj,
|
|
1102
|
-
|
|
1102
|
+
Page_Logic,
|
|
1103
1103
|
PageType,
|
|
1104
|
-
|
|
1105
|
-
|
|
1104
|
+
Product_Logic,
|
|
1105
|
+
Review_Logic,
|
|
1106
1106
|
TemplateType,
|
|
1107
|
-
|
|
1107
|
+
Template_Logic,
|
|
1108
1108
|
Url,
|
|
1109
|
-
|
|
1109
|
+
Service_Logic,
|
|
1110
1110
|
Sub_Item,
|
|
1111
1111
|
Storage,
|
|
1112
1112
|
Schedule,
|