mas-server 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -1 +1 @@
1
- 一款面向中小型项目的后端框架
1
+ 一款基于express面向中小型项目的后端框架
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mas-server",
3
- "version": "1.0.0",
4
- "description": "一款面向中小型项目的后端框架",
3
+ "version": "1.0.1",
4
+ "description": "一款基于express面向中小型项目的后端框架",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
7
7
  "test": "nodemon --exec npm run serve -i api.config.k.json -i api.config.json -i api.tree.json -i $form.js",
@@ -10,7 +10,10 @@
10
10
  "api": "node ./test/.utils/api.js",
11
11
  "apis": "node ./test/.utils/apis.js"
12
12
  },
13
- "keywords": ["后端","express"],
13
+ "keywords": [
14
+ "后端",
15
+ "express"
16
+ ],
14
17
  "author": "tingxi8087",
15
18
  "license": "ISC",
16
19
  "dependencies": {
@@ -22,4 +25,4 @@
22
25
  "masutils": "^1.0.8",
23
26
  "moment": "^2.29.4"
24
27
  }
25
- }
28
+ }
@@ -1,6 +1,6 @@
1
1
  const { sql } = require("mas-server");
2
2
  const $form = require("@/$form");
3
3
  module.exports = async (req, res) => {
4
- const sqlData =await sql.use($form.@@form@@).save(req.body).go();
4
+ const sqlData =await sql.use($form.@@form@@).save(req.body.data).go();
5
5
  res.return(sqlData, sqlData);
6
6
  };