aicode/kdb/foldertree.md
2025-12-11 20:32:24 +08:00

30 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 模块目录结构
模块名称为“mymodule", 以下为mymodule模块的目录文件结构
```
mymodule
+--mymodule # 存放模块的主要逻辑py代码
+--init.py # 模块初始化脚本需要定义一个load_mymodule()函数此函数将在ui和dspy文件中用到的模块变量通过ServerEnv实例传过去
+--__init__.py #python模块所需
|
| +--其他源码.py # 模块中需要的其他py源码文件
+--wwwroot # 目录,存放以.ui和.dspy结束的文件ui文件支持jinja2模板前端控件文件内容为json格式的控件描述文本 dspy是ahserver支持的受限python脚本可以按照需要设置下级目录
+--models # 存放数据表文件的目录
+--json # 存放CRUD描述文件的目录
+--pyproject.toml # pip打包文件, 其中项目名字与mymodule相同
+--README.md # 模块自说明文件
+--init # 模块初始化目录
+--data.xlsx # 初始化数据一个sheet一个表一行一个记录第一行为字>段名
+--script.py # 初始化脚本
```