refactor(schema): 重构数据库模型和 schema,清理废弃表
This commit is contained in:
@@ -8,7 +8,7 @@ from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from models.points_ledger import PointsLedger
|
||||
from models.user_points import UserPoints
|
||||
from schemas.shared.points import ApplyPointsChangeCommand
|
||||
from schemas.domain.points import ApplyPointsChangeCommand
|
||||
|
||||
|
||||
class PointsRepository:
|
||||
|
||||
@@ -8,7 +8,7 @@ from uuid import UUID, uuid4
|
||||
from core.http.errors import ApiProblemError, problem_payload
|
||||
from schemas.domain.points import ConsumeLedgerMetadata, PointsChargeSnapshot
|
||||
from schemas.enums import PointsBizType, PointsChangeType, PointsOperatorType
|
||||
from schemas.shared.points import ApplyPointsChangeCommand
|
||||
from schemas.domain.points import ApplyPointsChangeCommand
|
||||
from v1.points.repository import PointsRepository
|
||||
|
||||
RUN_POINTS_COST = 20
|
||||
|
||||
Reference in New Issue
Block a user