chore(repo): 建立專案骨架與治理文件

納入分支策略、模組註冊表與更新日誌;建立 src 模組骨架供分支推演使用
This commit is contained in:
HIsheR
2026-10-16 15:37:08 +08:00
commit 8c0a654904
7 changed files with 167 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
/**
* 沙盤推演的應用入口
* 僅用於演示分支流向,不承載真實業務
*/
/** 應用名稱 */
export const APP_NAME = "game-admin";
/** 目前對外公告的版本號 */
export const APP_VERSION = "2.0.0.0";
/** 匯出服務端點(示範例外直進主分支的參數配置) */
export const EXPORT_ENDPOINT = "https://api.example.com/export";
+21
View File
@@ -0,0 +1,21 @@
/**
* 現金銷貨模組(沙盤推演示意)
*/
/** 模組識別碼 */
export const CASH_SALE_MODULE = "cash-sale";
/** 提交出口模式 */
export type SubmitMode = "draft" | "final";
/**
* 統一提交出口,集中處理防重入與未完成條件
* @param mode - 提交模式(草稿或正式送出)
* @returns 是否送出成功
*/
export const submit = (mode: SubmitMode): boolean => {
// 草稿模式不做未完成條件阻擋
if (mode === "draft") return true;
// 正式送出需通過 blockers 清單
return true;
};
+14
View File
@@ -0,0 +1,14 @@
/**
* 取貨點倉庫設定模組(沙盤推演示意)
*/
/** 取貨點預設出庫倉綁定 */
export interface PickupPointPreset {
/** 取貨點唯一識別碼 */
pickupPointId: string;
/** 綁定的倉庫組合識別碼,未綁定為 null */
warehouseSettingsSalesMaterialsGroupId: string | null;
}
/** 查詢取貨點預設綁定 */
export const listPreset = (): PickupPointPreset[] => [];