{"id":14993965,"url":"https://github.com/orca-yun/living","last_synced_at":"2025-09-28T03:32:36.432Z","repository":{"id":262377014,"uuid":"887047858","full_name":"orca-yun/living","owner":"orca-yun","description":"虎鲸云直播后台主业务","archived":false,"fork":false,"pushed_at":"2025-01-15T04:03:23.000Z","size":5801,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-15T06:08:54.112Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orca-yun.png","metadata":{"files":{"readme":"README.DEV.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-12T04:30:18.000Z","updated_at":"2025-01-15T04:03:24.000Z","dependencies_parsed_at":"2024-12-27T07:21:18.041Z","dependency_job_id":"d49d8fb4-ab66-455f-b624-3e58a4b25f45","html_url":"https://github.com/orca-yun/living","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"09ab4a40e8af9f954fbe78668e2aad9a9ccea75e"},"previous_names":["orca-yun/living"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orca-yun%2Fliving","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orca-yun%2Fliving/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orca-yun%2Fliving/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orca-yun%2Fliving/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orca-yun","download_url":"https://codeload.github.com/orca-yun/living/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234481918,"owners_count":18840207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elastic-job-lite","ffmpeg","java17","live","mysql","pulsar","springboot"],"created_at":"2024-09-24T15:33:30.488Z","updated_at":"2025-09-28T03:32:31.376Z","avatar_url":"https://github.com/orca-yun.png","language":"Java","readme":"# living\n\n## ORCA 使用的组件有\n\n- Pulsar 消息中间件\n- MySQL 关系型数据库\n- MongoDB 非关系型数据库\n- Redis 缓存\n- Nacos Dubbo注册中心\n\n## living 项目分层\n\n```markdown\n\nliving\n- deploy 开发部署\n- doc SQL与文档\n- living-beans                  对象层\n- living-common                 通用层\n- living-console          [APP] 主播端与助理端\n- living-core-dao               DAO服务层\n- living-core-api               核心服务API\n- living-core-provider    [APP] 核心服务\n- living-dubbo-adapter          Dubbo适配层\n- living-seq-api                序列API\n- living-seq-provider     [APP] 序列服务\n- living-sharing          [APP] 观看端\n- living-admin            [APP] 管理端\n- living-short            [APP] 短链接\n- living-task             [APP] 定时任务\n- living-web-adapter            WebApi适配层\n\n```\n\n## 为什么禁止使用 BeanUtils\n\n- 显示进行 属性赋值，不做隐性复制\n\n## 关于网关 不考虑使用 SCG 和 ZUUL 等这一套\n\n- KONG\n- APISIX\n\n## 为什么不使用 MyBatisPlus\n\n- 现在裸表并没有建立索引, 未知后续查询的可控，需要统计后续构建合理的 索引。\n- 需要关注明细 SQL、更好优化处理。不屏蔽 隐式SQL\n\n## 为什么不使用JPA\n\n- 一个应用里面多个 ORM 带来的维护复杂问题\n\n\n## 规范类\n### Bean层\n```markdown\n- bo      [业务对象]\n- entity  [bean]\n- ro      [请求对象]\n- vo      [响应对象]\n- event   [事件 OR 消息]\n- convert [各个之间DTO层的转换]\n```\n\n### 禁用类\n```markdown\n- 禁止用 JPA \n- 禁止用 Mybatis Plus\n- 禁止用 BeanUtils.copy...\n- 禁止用 Date\n- 禁止生成  Mybatis XML, 哪怕生成请保证  XML 裸干净【是纯粹用到的 SQL】\n- 禁止 Vo 出现在  XML  内\n- ...\n```\n### 明确类\n```markdown\n- 明确用 LocalDateTime 替代 Date\n- 明确用 Builder 链式替代 setXXX\n- 明确用 Convert 进行多层DTO转换 \n- 明确 Dubbo API 层使用 Service 结尾\n- 明确 Dubbo API  实现使用  Provider 结尾\n- 明确 Dubbo 应用层内 实现逻辑层使用 Repo 结尾[不要啊使用 Service 结尾]\n- 明确 List 之间的转化优先使用 CommonConvert 统一处理\n- 明确 代码内校验类使用  OrcaAssert 处理【抛出异常体系】\n- 至于 Hibernate validator 校验(@NotNull等这类的) 后续将统一处理 \n- 推荐返回 Optional\u003cT\u003e 不推荐返回 null  \n- ...\n```\n\n### API 规范类\n```markdown\n- 明确 优先 Restful 风格\n- 禁止 API 上出现驼峰、无法明确表达请使用 多路径('/') 或者 ('-')\n- 禁止 API 路径上出现 list、insert、save、update、del(delete) 等等\n- 确实需要使用 请求体 (DELETE 方法)无法满足、改用 POST, 路径出现 remove\n- 功能解构\n- ...\n```\n\n[//]: # (docker system prune)\n\n[//]: # (docker system prune -a)\n\n[//]: # (docker image prune)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forca-yun%2Fliving","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forca-yun%2Fliving","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forca-yun%2Fliving/lists"}