Commit a174b7e
committed
refactor: update
- Introduce `LocalFileServiceConfig` struct to consolidate `RootDir` and `PublicBase` configurations.
- Simplify `NewLocalFileService` by replacing individual parameters with a single configuration struct.
- Adjust fileserver adapter initialization to align with the updated configuration structure.
Signed-off-by: tbxark <tbxark@outlook.com>NewLocalFileService to use unified LocalFileServiceConfig
1 parent ebf82d7 commit a174b7e
1 file changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | | - | |
29 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
34 | 41 | | |
35 | | - | |
36 | | - | |
| 42 | + | |
| 43 | + | |
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
| |||
0 commit comments