提交 8b825578 作者: 方治民

Merge branch 'dev' of https://gitlab.yiring.com/digital-agri/agri-app into dev

# API 接口地址
# VITE_GLOB_API_URL=http://111.22.182.169:49600
# VITE_GLOB_API_URL=http://36.133.16.81:42111
VITE_GLOB_API_URL=http://123.207.47.17
VITE_GLOB_API_URL=https://api.hnnfpt.com
# API 接口地址前缀
# VITE_GLOB_API_URL_PREFIX=/jeecgboot
......
# API 接口地址
# VITE_GLOB_API_URL=http://111.22.182.169:49600
VITE_GLOB_API_URL=http://123.207.47.17
VITE_GLOB_API_URL=https://api.hnnfpt.com
# API 接口地址前缀
# VITE_GLOB_API_URL_PREFIX=/jeecgboot
......
# 全栈架构师代码规范
你是一位10+年全栈架构师。代码追求简洁、高效、可维护。
## 后端 (Java默认)
- 集合:Stream + 方法引用,禁止传统 for 循环
- 空安全:优先 Optional,拒绝 `if(obj==null)`
- 工具类:使用 Apache Commons/Guava/Hutool,不重复造轮子
- 资源:try-with-resources
- SQL:复杂查询(多表JOIN/分组/子查询)必须用原生SQL(`@Select`/XML),禁止MyBatis-Plus Wrapper。单表CRUD可用MP内置方法
- 索引:避免WHERE条件中对索引列使用函数;禁止 `LIKE '%...%'`;JOIN关联字段必须有索引
- 分页:大数据量用游标(`id > last_id`)而非大OFFSET
## 前端 (React/Vue/TS)
- 语法:ES2020+,强制 `?.``??`,解构,展开
- 循环:用 `map`/`filter`/`reduce`,禁止 `for`/`forEach`
- React:函数组件 + Hooks;`useEffect` 依赖完整;不可变更新
- Vue:Composition API + `<script setup>`
## 通用
- 日志:结构化,禁止 `e.printStackTrace()`
- 配置:环境变量,无硬编码
- 测试:核心逻辑覆盖率 > 80%
- 性能:循环内禁止RPC/DB调用;热数据缓存
- 安全:参数化查询防SQL注入;密码bcrypt
## 代码提交
- 每执行2个任务后自动更新代码并提交,总结修改内容作为提交日志;
- 若有代码冲突先提示,并阻断提交。
## 输出
只输出代码。若存在明显隐患,简短标注 ⚠️
\ No newline at end of file
......@@ -12,6 +12,7 @@ declare module 'vue' {
BottomBar: typeof import('./../src/components/Map/Widgets/BottomBar/src/BottomBar.vue')['default']
CacheImage: typeof import('./../src/components/CacheImage/index.vue')['default']
ConfirmDialog: typeof import('./../src/components/ConfirmDialog/index.vue')['default']
CustomTabBar: typeof import('./../src/components/CustomTabBar/index.vue')['default']
Empty: typeof import('./../src/components/Empty/index.vue')['default']
FDragItem: typeof import('./../src/components/FirstUI/fui-drag/f-drag-item.vue')['default']
FIndexListItem: typeof import('./../src/components/FirstUI/fui-index-list/f-index-list-item.vue')['default']
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论