refactor(data): move Result utility to utils and simplify API

Relocate the Result type from `@/data/result` to `@/utils/result` and
replace the discriminated-union API (`kind`/`value`) with a simpler
boolean-based API (`success`/`data`) across all repositories and
storage classes for improved readability and consistency.
This commit is contained in:
2026-06-09 10:34:40 +08:00
parent c767322db6
commit 904cb3638a
16 changed files with 81 additions and 122 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
export * from "./auth_storage";
export * from "./local_storage";
export * from "./result";
export * from "@/utils/result";
export * from "./storage_keys";
export * from "./app/app_storage";
export * from "./auth/auth_storage";