今天也有认真更新BGM 正在循环中路过打卡,晚点再来看这张封面有点心动相册区适合慢慢逛写完这篇就去听歌评论区先留个脚印灵感刚刚冒泡照片墙等你上传新图今天也要温柔一点把日常收进归档照片墙适合慢慢逛评论区可以留下脚印夜间模式适合发呆友链里住着有趣灵魂项目页记录长期实验写完这段就去听歌正在读:sky-take-out 后端复盘
sky-take-out 后端复盘 封面

后端项目

1 min read

sky-take-out 后端复盘

把校园订餐后端拆成管理端、用户端和统计端来看。

Admin boundary notes

sky-take-out reads like a campus meal ordering backend, but the useful lesson is boundary control. Staff, dishes, set meals, and shop status belong to the admin side, while cart, address book, checkout, and order tracking belong to users.

A loose CRUD split makes order status, payment confirmation, and dashboard counts hard to trust.

Order flow checks

My current pass keeps the role split visible. The order module owns state transitions, payment callbacks only confirm and compensate, and statistics read from one clear order source.

Java, Spring Boot, MyBatis, MySQL, Redis, and JWT all have a place here, but each tool should support the business line instead of hiding it.

What I would polish next

The next useful cleanup is a stricter order-state table plus tests for cancel, pay, deliver, and refund edges. That would make the backend safer to explain and extend.

Gitalk OAuth 尚未配置

要和 XingHuiSama 参考页一样显示 Gitalk 评论框,需要配置你自己的 GitHub OAuth App: `NEXT_PUBLIC_GITALK_CLIENT_ID` 和服务端 `GITHUB_CLIENT_SECRET`。

comments: { provider: "gitalk", owner: "user", repo: "repo", clientId: "..." }
sky-take-out 后端复盘 | Yuki