feat(product): 新增产品接口

This commit is contained in:
xingc
2025-05-06 15:26:40 +08:00
parent 3fcc7a1608
commit 2239418c88
8 changed files with 73 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ def upgrade() -> None:
sa.Column('name', sa.String(length=20), nullable=False, comment='产品名'),
sa.Column('category', sa.Enum('VIP', 'POINTS', name='productcategory', inherit_schema=True), nullable=False, comment='商品分类, vip-会员服务 points-积分服务'),
sa.Column('price', sa.Integer(), nullable=False, comment='价格,不带小数点 单位为分'),
sa.Column('action', sa.String(length=10), nullable=False, comment='付款后的动作会员续期vip_renewal 积分recharge_points'),
sa.Column('action', sa.String(length=30), nullable=False, comment='付款后的动作会员续期vip_renewal 积分recharge_points'),
sa.Column('number', sa.Integer(), nullable=False, comment='执行动作的增量值'),
sa.Column('description', sa.Text(), nullable=True, comment='商品描述'),
sa.Column('id', sa.Integer(), autoincrement=True, nullable=False, comment='自增id'),