db 包Entity MapperEntity接数据库查询结果一行数据对应一个对象Mapper写 SQL / 调库把查到的数据填进 Entity你圈的几组顶部统计、室内外、趋势、结构类型各是一对 Entity Mapper。dto 包给前端看的返回结构字段名更干净Controller 最终返回的就是这些。FrontPageApplicationService业务中间层算时间、调 Mapper、把 Entity 转成 Dto。FrontPageController对外接口入口收 URL 参数、鉴权再调 Service返回 JSON。一句话Controller 收请求 → Service 处理 → Mapper 查库 → Entity 接结果 → Dto 返回给前端。