- 4张表: voucher_template, voucher_rule, voucher_instance, voucher_usage_log - 可配置规则引擎: registry + validators + engine - 8种内置规则: min_amount, max_amount, applicable_product_type, applicable_product, exclude_product, max_usage_count, valid_period, user_level - CRUD定义 + API接口 + 前端页面 - SQL建表脚本 + RBAC权限配置 - 一次性使用,不找零
18 lines
391 B
TOML
18 lines
391 B
TOML
[build-system]
|
|
requires = ["setuptools>=45", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "voucher"
|
|
version = "1.0.0"
|
|
description = "代金券模块:模板管理、可配置规则引擎、一次性使用代金券"
|
|
requires-python = ">=3.8"
|
|
dependencies = [
|
|
"sqlor",
|
|
"bricks_for_python",
|
|
]
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["."]
|
|
include = ["voucher*"]
|