Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convention($module=core): 项目约定 核心 #2

Open
o-w-o opened this issue Oct 25, 2019 · 0 comments
Open

convention($module=core): 项目约定 核心 #2

o-w-o opened this issue Oct 25, 2019 · 0 comments
Assignees
Milestone

Comments

@o-w-o
Copy link
Owner

o-w-o commented Oct 25, 2019

数据格式 definition

  • 服务泛型:ServiceResult
  • 接口泛型:ApiResult
  • 异常处理 Exception
    • 全局异常处理:ApiExceptionsControllerAdvice
    • 接口异常:ApiException
    • 服务异常:ServiceException
    • 系统异常:SystemException

安全配置 security

  • 权限配置:访问控制形式
  • 认证 / 授权
    • 认证:JWT 生成、注册、校验、刷新、注销
    • 授权:解析、注入

数据库 database

  • postgrel
    • 资源:
      • 用户
      • 权限
  • redis
    • 认证
    • IP 访问限制
    • 接口访问限制
  • flyway
    • 数据库维护

缓存 cache

  • redis

测试 test

  • 单元测试
  • 测试覆盖率

持续集成 / 部署 ci/cd

  • Aliyun Docker Registry
  • Github App Integration
  • Jenkins

代码自动生成

  • 接口 OpenApi
@o-w-o o-w-o self-assigned this Oct 25, 2019
@o-w-o o-w-o added this to the feature/0-to-1 milestone Oct 25, 2019
o-w-o added a commit that referenced this issue Oct 26, 2019
- 数据复杂查询整合 querydsl
- 删除暂时无用代码

- 待改进:
  - ServiceResult 异常与 error 以及 Service 内部的异常是否可以直接抛出
  - User 的主键是否可以替换为 u.name:String 和 spring security 的 UserDetail 保持一致

- ref #2
o-w-o added a commit that referenced this issue Oct 29, 2019
o-w-o added a commit that referenced this issue Oct 29, 2019
o-w-o added a commit that referenced this issue Oct 29, 2019
o-w-o added a commit that referenced this issue Oct 30, 2019
o-w-o added a commit that referenced this issue Nov 7, 2019
o-w-o added a commit that referenced this issue Nov 8, 2019
o-w-o added a commit that referenced this issue Nov 8, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 9, 2019
o-w-o added a commit that referenced this issue Nov 10, 2019
- invalid argument "0.0.1-SNAPSHOT" for "-t, --tag" flag: invalid reference format: repository name must be lowercase
- docker build 错误用法 --tag

- ref #2
o-w-o added a commit that referenced this issue Nov 10, 2019
o-w-o added a commit that referenced this issue Nov 11, 2019
o-w-o added a commit that referenced this issue Nov 11, 2019
o-w-o added a commit that referenced this issue Nov 11, 2019
o-w-o added a commit that referenced this issue Nov 11, 2019
o-w-o added a commit that referenced this issue Nov 11, 2019
o-w-o added a commit that referenced this issue Nov 11, 2019
o-w-o added a commit that referenced this issue Nov 11, 2019
o-w-o added a commit that referenced this issue Nov 11, 2019
o-w-o added a commit that referenced this issue Nov 12, 2019
o-w-o added a commit that referenced this issue Nov 12, 2019
o-w-o added a commit that referenced this issue Nov 12, 2019
o-w-o added a commit that referenced this issue Nov 12, 2019
o-w-o added a commit that referenced this issue Nov 12, 2019
o-w-o added a commit that referenced this issue Nov 12, 2019
o-w-o added a commit that referenced this issue Nov 12, 2019
…pt/app.jar ]

- JAR_PATH >> JAR_FILE
- archiveArtifacts PATH

- ref #2
o-w-o added a commit that referenced this issue Nov 12, 2019
…pt/app.jar ]

- JAR_PATH >> JAR_FILE
- archiveArtifacts PATH

- ref #2
@o-w-o o-w-o changed the title feat($module=convention/core): 项目约定 核心 Version 1.0.0 Jun 13, 2020
@o-w-o o-w-o changed the title Version 1.0.0 feat($module=convention/core): 项目约定 核心 Jun 13, 2020
@o-w-o o-w-o changed the title feat($module=convention/core): 项目约定 核心 feat($module=convention): 项目约定 核心 Jun 20, 2020
@o-w-o o-w-o pinned this issue Nov 22, 2020
@o-w-o o-w-o changed the title feat($module=convention): 项目约定 核心 convention($module=core): 项目约定 核心 Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant