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.
Files changed (3) hide show
  1. package/biz9_config +1 -1
  2. package/index.js +25 -10
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='6.8.0'
1
+ VERSION='6.8.2'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
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="Update Success";
10
+ static SUCCESS="Success";
11
11
  static LOGIN_GOOD="Login Success";
12
12
  static LOGIN_BAD="Login Incorrect";
13
- static ERROR_TITLE="Please Enter A Valid Title";
14
- static ERROR_EMAIL="Please Enter A Valid E-mail";
15
- static DATA_NOT_FOUND="Data Not Found";
16
- static FAVORITE_ADD_SUCCESS="Favorite Add Success";
17
- static FAVORITE_REMOVE_SUCCESS="Favorite Remove Success";
18
- static REVIEW_ADD_SUCCESS="Review Add Success";
19
- static REVIEW_REMOVE_SUCCESS="Review Remove Success";
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 del_request_user(req){
1921
+ static delete_request_user(req){
1907
1922
  req.session.user=null;
1908
1923
  delete req.session.user;
1909
1924
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.200",
3
+ "version": "4.8.202",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"