add package
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import type { EventBizType, EventItem } from "@/types/EventItem";
|
||||
|
||||
/** 返回事件业务类型的前端文案。 */
|
||||
export function getEventBizTypeText(bizType?: EventBizType): string {
|
||||
return bizType === "PACKAGE_PURCHASE" ? "套餐购买" : "普通登记";
|
||||
}
|
||||
|
||||
/** 判断事件是否为套餐购买事件。 */
|
||||
export function isPackagePurchaseEvent(event?: Pick<EventItem, "bizType">): boolean {
|
||||
return event?.bizType === "PACKAGE_PURCHASE";
|
||||
}
|
||||
Reference in New Issue
Block a user