listpage_cli 0.0.210 → 0.0.211

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage_cli",
3
- "version": "0.0.210",
3
+ "version": "0.0.211",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "listpage_cli": "bin/cli.js"
@@ -23,7 +23,7 @@
23
23
  "class-transformer": "^0.5.1",
24
24
  "class-validator": "~0.14.2",
25
25
  "rxjs": "^7.8.1",
26
- "listpage-next-nest": "~0.0.210"
26
+ "listpage-next-nest": "~0.0.211"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@nestjs/schematics": "^11.0.0",
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "react": "^19.2.0",
14
14
  "react-dom": "^19.2.0",
15
- "listpage-next": "~0.0.210",
15
+ "listpage-next": "~0.0.211",
16
16
  "react-router-dom": ">=6.0.0",
17
17
  "@ant-design/v5-patch-for-react-19": "~1.0.3",
18
18
  "ahooks": "^3.9.5",
@@ -9,7 +9,7 @@
9
9
  "publish": "ts-node src/publish.ts"
10
10
  },
11
11
  "dependencies": {
12
- "listpage-next-deploy": "0.0.210"
12
+ "listpage-next-deploy": "0.0.211"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@types/node": "^20.0.0",
@@ -0,0 +1,25 @@
1
+ # 项目规则
2
+
3
+ ## 必须遵守的规则
4
+
5
+ ### 技术方案编写规则
6
+
7
+ 1. 存放目录: .trae/documents/ 下面。
8
+ 2. 文件名称: xxx 技术方案.md
9
+
10
+ ### 前端开发的规则
11
+
12
+ 1. 前端组件导出必须使用具名导出,禁止 export default 的写法!!!
13
+ 2. 当使用 ListPage 组件时,必须遵守项目内容文档:[ListPage-AI 生成规范](docs/ListPage-AI生成规范.md)。
14
+ 3. 禁止使用 React.FC 来定义组件,组件的类型应该是 `(props: Props) => JSX.Element`, 不用显式声明。
15
+ 4. 前端接口维护在 `api` 目录下, 所有的接口从 `api/index.ts` 中导出,严格遵守现在`api`目录的结构,并在需要的使用的时候从 `api/index.ts` 中引入
16
+
17
+ ### 后端开发的规则
18
+
19
+ 1. 后端接口如无特殊要求均采用 POST 请求
20
+ 2. 对于列表查询的,默认请求体一定包含 current, pageSize 两个参数
21
+ 3. 后端接口返回的格式要求如下:
22
+ - 失败时,直接抛出异常,由拦截器自行处理,不用管
23
+ - 成功时:
24
+ - 常规数据的格式:{ code: 0, data: {} },控制器返回的数据直接就是 data,不需要再包一层
25
+ - 列表数据的格式:{ code: 0, data: { list: [], total: 0, current: 1, pageSize: 10 } },控制器返回的数据直接就是 data,不需要再包一层