refactor(mock): remove lib/mock fixtures and empty stores

This commit is contained in:
zetaloop
2026-03-01 22:26:50 +08:00
parent d4e2c13a03
commit 9e64fb1201
27 changed files with 17 additions and 1941 deletions
+1 -2
View File
@@ -8,7 +8,6 @@ import { allow, deny } from "@/lib/decision"
import { evaluateOrderTransition, type OrderAction } from "@/lib/domain/order-machine"
import type { ApiDecision } from "@/lib/errors"
import { generateId } from "@/lib/id"
import { mockOrders } from "@/lib/mock"
import type { Order, OrderStatus } from "@/lib/types"
import { useAuthStore } from "@/store/auth"
import { useChatStore } from "@/store/chat"
@@ -301,7 +300,7 @@ export const useOrderStore = create<OrderState>((set, get) => {
}
return {
orders: mockOrders,
orders: [],
createOrder: (input, actor) => {
if (actor.role !== "consumer") {
return { decision: deny(403, "仅客户可下单") }