product/README.md
2025-12-05 18:03:14 +08:00

22 lines
732 B
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-product
产品模块(产品分类 / 产品管理 / 产品-能力绑定 / 定价策略)
## 功能
- 树形产品分类管理CRUD
- 产品 CRUD包含默认定价、meta、view_schema
- 产品与能力绑定N:N
- 产品定价策略(产品层覆盖能力定价)
- 产品上下线draft/online/offline
## 使用
1.`models/*.json` 转换为数据库表(可用迁移脚本)。
2. 导入 `init/data.json`
3.`ahserver` 启动时调用 `mymodule.init.setup_app(app)` 注册服务。
4. 路由示例见 `mymodule/init.py` 注释。
## 注意
- 示例代码使用 `sqlor` 的接口sor.C/U/R/D/sqlExe
- 前端 UI 为伪代码(`wwwroot/*.ui`),可用 bricks 渲染。