@shun-js/recommend 0.3.2 → 0.3.4

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/README.md +13 -1
  2. package/app.js +0 -4
  3. package/package.json +5 -5
package/README.md CHANGED
@@ -42,5 +42,17 @@ shunjs start @shun-js/recommend
42
42
  ## 请求
43
43
 
44
44
  ```shell
45
-
45
+ # add
46
+ curl --location --request POST 'http://localhost:8004/recommend/add' \
47
+ --data-urlencode 'userId=1' \
48
+ --data-urlencode 'newUserId=2'
49
+
50
+ # list
51
+ curl --location --request POST 'http://localhost:8004/recommend/list' \
52
+ --data-urlencode 'userId=1'
53
+
54
+ # change
55
+ curl --location --request POST 'http://localhost:8004/recommend/change' \
56
+ --data-urlencode 'userId=1' \
57
+ --data-urlencode 'newUserId=2'
46
58
  ```
package/app.js CHANGED
@@ -17,10 +17,6 @@ const { parseServerConfig } = require('@shun-js/shun-config');
17
17
  options.config = config;
18
18
  options.mysql = require('qiao-mysql');
19
19
 
20
- // options.redis
21
- options.redis = require('qiao-redis');
22
- options.redisOptions = config.redisOptions;
23
-
24
20
  // options log
25
21
  options.log = require('qiao-log');
26
22
  options.logOptions = require('./server/log-options.js')();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shun-js/recommend",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "recommend",
5
5
  "keywords": [
6
6
  "shun.js",
@@ -21,15 +21,15 @@
21
21
  "app.js"
22
22
  ],
23
23
  "dependencies": {
24
- "@shun-js/shun-config": "^0.3.0",
24
+ "@shun-js/shun-config": "^0.3.1",
25
25
  "@shun-js/shun-service": "^0.3.1",
26
26
  "qiao-log": "^5.1.9",
27
- "qiao-mysql": "^5.1.9",
28
- "qiao-z": "^5.7.7"
27
+ "qiao-mysql": "^5.8.6",
28
+ "qiao-z": "^5.8.9"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public",
32
32
  "registry": "https://registry.npmjs.org/"
33
33
  },
34
- "gitHead": "a31fd2bf7127a36ce9d8759e28ba55fd750b26bd"
34
+ "gitHead": "4fa47fe5cf1b00acfe54f47af836101291093f06"
35
35
  }