feat: initialize aivideo project

This commit is contained in:
2026-04-17 18:33:05 +08:00
commit 14b18d67fe
162 changed files with 26251 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
from sqlalchemy import select
from sqlalchemy.orm import Session
from app.models.entities import GrowthRewardRule
class GrowthRulesRepository:
def __init__(self, db: Session) -> None:
self.db = db
def get_rule(self, rule_type: str) -> GrowthRewardRule | None:
return self.db.scalar(
select(GrowthRewardRule).where(GrowthRewardRule.rule_type == rule_type)
)