biz9-logic 4.8.200 → 4.8.202
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 +25 -10
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -7,16 +7,27 @@ Description: BiZ9 Framework: Logic-JS
|
|
|
7
7
|
const moment = require('moment'); const { get_new_item_main,get_data_config_main,get_cloud_url_main,get_biz_item_main,get_cloud_filter_obj_main,get_new_full_item_main } = require('./main');
|
|
8
8
|
const { Log,Str,DateTime,Num,Obj } = require('/home/think2/www/doqbox/biz9-framework/biz9-utility/code');
|
|
9
9
|
class Message {
|
|
10
|
-
static SUCCESS="
|
|
10
|
+
static SUCCESS="Success";
|
|
11
11
|
static LOGIN_GOOD="Login Success";
|
|
12
12
|
static LOGIN_BAD="Login Incorrect";
|
|
13
|
-
|
|
14
|
-
static
|
|
15
|
-
static
|
|
16
|
-
|
|
17
|
-
static
|
|
18
|
-
static
|
|
19
|
-
|
|
13
|
+
|
|
14
|
+
static ERROR_TITLE_NOT_VALID="Please Enter A Valid Title.";
|
|
15
|
+
static ERROR_TITLE_NOT_UNIQUE="Title Not Availble. Please Choose Another.";
|
|
16
|
+
|
|
17
|
+
static ERROR_USERNAME_NOT_VALID="Please Enter A Valid Username";
|
|
18
|
+
static ERROR_USERNAME_NOT_UNIQUE="Username Not Availble. Please Choose Another.";
|
|
19
|
+
|
|
20
|
+
static ERROR_EMAIL_NOT_VALID="Please Enter A Valid Email.";
|
|
21
|
+
static ERROR_EMAIL_NOT_UNIQUE="E-mail Not Availble. Please Choose Another.";
|
|
22
|
+
|
|
23
|
+
static DATA_NOT_FOUND="Data Not Found.";
|
|
24
|
+
static SYSTEM_NOT_FOUND="System Not Found.";
|
|
25
|
+
|
|
26
|
+
static FAVORITE_ADD_SUCCESS="Favorite Add Success.";
|
|
27
|
+
static FAVORITE_REMOVE_SUCCESS="Favorite Remove Success.";
|
|
28
|
+
|
|
29
|
+
static REVIEW_ADD_SUCCESS="Review Add Success.";
|
|
30
|
+
static REVIEW_REMOVE_SUCCESS="Review Remove Success.";
|
|
20
31
|
}
|
|
21
32
|
class TemplateType {
|
|
22
33
|
static PRIMARY='primary';
|
|
@@ -1438,6 +1449,10 @@ class User_Url {
|
|
|
1438
1449
|
let action_url="user/login";
|
|
1439
1450
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1440
1451
|
};
|
|
1452
|
+
static logout = (app_id,url,params) => {
|
|
1453
|
+
let action_url="user/logout";
|
|
1454
|
+
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1455
|
+
};
|
|
1441
1456
|
}
|
|
1442
1457
|
class Favorite_Url {
|
|
1443
1458
|
static get = (app_id,url,parent_data_type,user_id,page_current,page_size,params) => {
|
|
@@ -1900,10 +1915,10 @@ class User_Logic {
|
|
|
1900
1915
|
}
|
|
1901
1916
|
return req.session.user;
|
|
1902
1917
|
}
|
|
1903
|
-
static post_request_user(req){
|
|
1918
|
+
static post_request_user(req,user){
|
|
1904
1919
|
req.session.user=user;
|
|
1905
1920
|
}
|
|
1906
|
-
static
|
|
1921
|
+
static delete_request_user(req){
|
|
1907
1922
|
req.session.user=null;
|
|
1908
1923
|
delete req.session.user;
|
|
1909
1924
|
}
|