# 客户端 **Repository Path**: my_module/client ## Basic Information - **Project Name**: 客户端 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-12 - **Last Updated**: 2026-04-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # myAdmin 客户端 本仓库集中维护 myAdmin 的客户端壳(Shell)实现,对接服务端 `/sync/module/*` 接口动态加载业务模块。 ## 子目录 | 目录 | 内容 | 平台 | |------|------|------| | `go-desktop/` | Go 桌面端壳 | Windows / Linux / macOS | ## 架构概述 客户端是一个"壳",自身不含具体业务逻辑。启动后: 1. 登录服务端,获取 JWT 2. 调 `/sync/module/list?platform=desktop` 拉取可用模块 3. 对比本地 hash 与服务端 `resource_hash`,差异下载 zip 资源包 4. 解压到 `{dataDir}/modules/{name}/` 5. 主页渲染模块图标网格,点击进入 `/modules/{name}/` 运行模块前端 服务端模块 `module.json` 中 `client.enabled=true` 且对应平台位为 `true` 的模块会出现在壳里。 ## 相关文档 - 服务端协议:`my-module/base/docs/客户端模块化.md` - 同步协议:`my-module/base/docs/同步.md` ## 构建 见 `go-desktop/README.md`。