refactor(order): createPaidOrder uses id references

This commit is contained in:
zetaloop
2026-02-28 07:25:52 +08:00
parent cc24a0cbc3
commit bce99c4c54
3 changed files with 109 additions and 48 deletions
+2 -7
View File
@@ -2,7 +2,6 @@ import type { Actor } from "@/lib/actor"
import { allow, deny } from "@/lib/decision"
import { resolveOwnerShop } from "@/lib/domain/resolve-current-shop"
import type { ApiDecision } from "@/lib/errors"
import type { PlayerService } from "@/lib/types"
import { useAuthStore } from "@/store/auth"
import { useOrderStore } from "@/store/orders"
import { useShopStore } from "@/store/shops"
@@ -20,14 +19,10 @@ export function listOrdersByConsumer(consumerId: string) {
}
interface CreatePaidOrderInput {
consumerId: string
consumerName: string
playerId: string
playerName: string
serviceId: string
shopId?: string
shopName?: string
service: PlayerService
totalPrice: number
quantity: number
note?: string
}