biz9-logic 4.8.128 → 4.8.131
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 +32 -0
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -19,6 +19,8 @@ class TemplateType {
|
|
|
19
19
|
static BODY='body';
|
|
20
20
|
static FOOTER='footer';
|
|
21
21
|
}
|
|
22
|
+
|
|
23
|
+
|
|
22
24
|
class Item_Logic {
|
|
23
25
|
static get_test = (title,data_type,id,option)=>{
|
|
24
26
|
data_type = data_type ? data_type : DataType.BLANK;
|
|
@@ -95,6 +97,16 @@ class Item_Logic {
|
|
|
95
97
|
return Item_Logic.get_search(query.data_type,filter,sort_by,query.page_current,query.page_size);
|
|
96
98
|
}
|
|
97
99
|
}
|
|
100
|
+
class Stat_Logic {
|
|
101
|
+
static get_new = (parent_data_type,user_id,stat_type_id,item_list,option)=>{
|
|
102
|
+
return {
|
|
103
|
+
parent_data_type:parent_data_type,
|
|
104
|
+
user_id:user_id,
|
|
105
|
+
stat_type_id:stat_type_id,
|
|
106
|
+
item_list:item_list,
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
98
110
|
class Template_Logic {
|
|
99
111
|
static get_test = (title,option) =>{
|
|
100
112
|
if(!Str.check_is_null(title) && Obj.check_is_empty(option)){
|
|
@@ -1243,6 +1255,24 @@ class FAQ_Url {
|
|
|
1243
1255
|
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
|
|
1244
1256
|
};
|
|
1245
1257
|
}
|
|
1258
|
+
class Cart_Url {
|
|
1259
|
+
static update = (biz9_config,parent_data_type,user_id,params) => {
|
|
1260
|
+
let action_url="cart/update/"+parent_data_type+"/"+user_id;
|
|
1261
|
+
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
|
|
1262
|
+
};
|
|
1263
|
+
static get = (biz9_config,parent_data_type,cart_number,params) => {
|
|
1264
|
+
let action_url="cart/get/"+parent_data_type+"/"+cart_number;
|
|
1265
|
+
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
|
|
1266
|
+
};
|
|
1267
|
+
static delete = (biz9_config,id,params) => {
|
|
1268
|
+
let action_url="cart/delete/"+id;
|
|
1269
|
+
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
|
|
1270
|
+
};
|
|
1271
|
+
static search = (biz9_config,params) => {
|
|
1272
|
+
let action_url="cart/search";
|
|
1273
|
+
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
|
|
1274
|
+
};
|
|
1275
|
+
}
|
|
1246
1276
|
class Order_Url {
|
|
1247
1277
|
static stripe_checkout = (biz9_config,cart_number,params) => {
|
|
1248
1278
|
let action_url="order/stripe-checkout/"+cart_number;
|
|
@@ -1285,6 +1315,7 @@ class Order_Url {
|
|
|
1285
1315
|
return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
|
|
1286
1316
|
};
|
|
1287
1317
|
}
|
|
1318
|
+
|
|
1288
1319
|
class Product_Url {
|
|
1289
1320
|
static get = (biz9_config,key,params) => {
|
|
1290
1321
|
let action_url="product/get/"+key;
|
|
@@ -1978,6 +2009,7 @@ module.exports = {
|
|
|
1978
2009
|
Service_Url,
|
|
1979
2010
|
Social,
|
|
1980
2011
|
Sub_Item_Logic,
|
|
2012
|
+
Stat_Logic,
|
|
1981
2013
|
Storage,
|
|
1982
2014
|
Schedule,
|
|
1983
2015
|
Stock,
|