Go to file
夏犀麟 743683efdd fix(recruitment): 菜单种子主键冲突,招聘中心 95→96 避免覆盖新房预售
003_menu.sql 的招聘中心一级菜单写死 id=95,与 014_house_presale_menu.sql 的
新房预售菜单(id=95,挂看房中心 90)ON DUPLICATE 互相覆盖,后导入者赢。
本地已实际发生覆盖。改为 id=96,951-954 父级同步改 96,超管角色绑定列表同步。
2026-08-27 12:22:50 +08:00
.gitea/workflows FIX: workflow Go 下载源改 aliyun 镜像(go.dev 偶发 SSL 错误 exitcode 35)+ 3 次重试 2026-08-27 00:54:33 +08:00
.workbuddy/memory feat(security): 服务器安全日志模块——上报/查询/统计接口 + 015建表菜单 2026-08-27 11:30:00 +08:00
api feat(security): 服务器安全日志模块——上报/查询/统计接口 + 015建表菜单 2026-08-27 11:30:00 +08:00
common feat(house): 实现看房模块后端功能 2026-08-26 23:42:38 +08:00
deploy CFG: Gitea act_runner 自动部署(Go 交叉编译 + Docker 重建容器)+ 生产镜像 Dockerfile 2026-08-26 23:55:46 +08:00
docs feat(house): 实现看房模块后端功能 2026-08-26 23:42:38 +08:00
hack feat(house): 扩充看房数据并增强服务器日志功能 2026-08-27 01:47:32 +08:00
internal feat(security): 服务器安全日志模块——上报/查询/统计接口 + 015建表菜单 2026-08-27 11:30:00 +08:00
manifest fix(recruitment): 菜单种子主键冲突,招聘中心 95→96 避免覆盖新房预售 2026-08-27 12:22:50 +08:00
resource feat(dev): 项目初始化。 2026-07-17 17:58:08 +08:00
utility feat(dev): 项目初始化。 2026-07-17 17:58:08 +08:00
.gitattributes feat(dev): 项目初始化。 2026-07-17 17:58:08 +08:00
.gitignore chore: gitignore 忽略本地验证用二进制 service_test.exe 2026-08-27 10:50:33 +08:00
AGENTS.md chore: CHANGELOG 纳入 git 管理;AGENTS.md 中央工作空间路径改相对引用 ../workbuddy.xpcool.com 2026-08-26 19:07:23 +08:00
go.mod feat(admin): 后台登录/菜单/按钮级权限/RBAC管理与服务器日志监控 2026-08-24 22:35:54 +08:00
go.sum feat(house): 扩充看房数据并增强服务器日志功能 2026-08-27 01:47:32 +08:00
main.go feat(admin): 后台登录/菜单/按钮级权限/RBAC管理与服务器日志监控 2026-08-24 22:35:54 +08:00
Makefile feat(dev): 项目初始化。 2026-07-17 17:58:08 +08:00
PROJECT_STRUCTURE.md refactor(api): 契约文件 index.go 重命名为 <功能名>.go 2026-08-24 18:07:33 +08:00
README.MD feat(house): 实现看房模块后端功能 2026-08-26 23:42:38 +08:00

Personal multi-client service

Layout

api → internal/controller → internal/service → internal/dao → internal/model(entity/do) is enforced. DTO and VO live in internal/model/dto and internal/model/vo; neither API types nor entities cross that boundary.

Database model generation

Run manifest/sql/001_core.sql on MySQL, set DB_DSN, then run:

gf gen dao -p internal -g default -gt -c

The command is intentionally the only source of internal/dao, internal/model/do, and internal/model/entity.

API isolation

  • /api/v1/*: user API, terminal header/body supports mini, h5, and app.
  • /admin/v1/*: admin API. Protected endpoints require both an admin access token and an X-Permission identifier.

Use GF_GCFG_FILE=config.dev.yaml (or config.test.yaml / config.prod.yaml) and set DB_DSN plus a strong JWT_SECRET before startup.

Local startup

  • Terminal: source .env.dev && go run main.go (.env.dev is gitignored, holds local DSN + secret).
  • GoLand: run configuration .run/service-dev.run.xml (project-level, auto-detected after reloading the project) already injects GF_GCFG_FILE / DB_DSN / JWT_SECRET; pick it in the run dropdown. The file is gitignored because it contains the DB password.