Compare commits
4 Commits
6beb72688e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
2625fac6d8
|
|||
|
a7fa29e3ec
|
|||
|
e10bcfa734
|
|||
|
3be04dab3a
|
@@ -5,7 +5,7 @@ description: Apply British English spelling and grammar as a global default when
|
|||||||
|
|
||||||
# British English
|
# British English
|
||||||
|
|
||||||
Conventions for writing in British English, as distinct from American English. Follow these rules consistently throughout a document.
|
Conventions for writing in British English, as distinct from American English.
|
||||||
|
|
||||||
## Spelling
|
## Spelling
|
||||||
|
|
||||||
|
|||||||
+26
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"name": "Claude Code Skills",
|
||||||
|
"skills": [
|
||||||
|
{
|
||||||
|
"name": "british-english",
|
||||||
|
"description": "Apply British English spelling and grammar conventions to project documents and code",
|
||||||
|
"repository": "https://onixbyte.dev/onixbyte/claude-code-skills",
|
||||||
|
"branch": "main",
|
||||||
|
"path": "british-english"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "commit-message",
|
||||||
|
"description": "Generate well-formatted git commit messages following conventional commits",
|
||||||
|
"repository": "https://onixbyte.dev/onixbyte/claude-code-skills",
|
||||||
|
"branch": "main",
|
||||||
|
"path": "commit-message"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "spring-boot",
|
||||||
|
"description": "Add JPA CRUD resources following Spring Boot layered architecture",
|
||||||
|
"repository": "https://onixbyte.dev/onixbyte/claude-code-skills",
|
||||||
|
"branch": "main",
|
||||||
|
"path": "spring-boot"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -507,14 +507,14 @@ A protected no-arg constructor is required by JPA. Static factories (`fromReques
|
|||||||
public interface UserMapper {
|
public interface UserMapper {
|
||||||
|
|
||||||
@Select("""
|
@Select("""
|
||||||
SELECT id, email, display_name AS displayName, status, created_at AS createdAt
|
SELECT id, email, display_name, status, created_at
|
||||||
FROM users
|
FROM users
|
||||||
WHERE id = #{id}
|
WHERE id = #{id}
|
||||||
""")
|
""")
|
||||||
Optional<UserEntity> findById(Long id);
|
Optional<UserEntity> findById(Long id);
|
||||||
|
|
||||||
@Select("""
|
@Select("""
|
||||||
SELECT id, email, display_name AS displayName, status, created_at AS createdAt
|
SELECT id, email, display_name, status, created_at
|
||||||
FROM users
|
FROM users
|
||||||
<where>
|
<where>
|
||||||
<if test="email != null">AND email LIKE CONCAT('%', #{email}, '%')</if>
|
<if test="email != null">AND email LIKE CONCAT('%', #{email}, '%')</if>
|
||||||
@@ -780,12 +780,13 @@ com.example.app/
|
|||||||
│ └── UserMapper.java (MyBatis, when needed)
|
│ └── UserMapper.java (MyBatis, when needed)
|
||||||
├── entity/
|
├── entity/
|
||||||
│ └── UserEntity.java
|
│ └── UserEntity.java
|
||||||
├── request/
|
├── domain/
|
||||||
│ ├── CreateUserRequest.java
|
│ ├── request/
|
||||||
│ ├── UpdateUserRequest.java
|
│ │ ├── CreateUserRequest.java
|
||||||
│ └── UserSearchCriteria.java
|
│ │ ├── UpdateUserRequest.java
|
||||||
├── response/
|
│ │ └── UserSearchCriteria.java
|
||||||
│ └── UserResponse.java
|
│ └── response/
|
||||||
|
│ └── UserResponse.java
|
||||||
└── enums/
|
└── enums/
|
||||||
└── UserStatus.java
|
└── UserStatus.java
|
||||||
```
|
```
|
||||||
@@ -822,4 +823,3 @@ public class App {
|
|||||||
- Spring Data JPA Reference
|
- Spring Data JPA Reference
|
||||||
- Jakarta Bean Validation 3.0
|
- Jakarta Bean Validation 3.0
|
||||||
- springdoc-openapi 2.x
|
- springdoc-openapi 2.x
|
||||||
- 阿里巴巴《Java 开发手册》(层结构、Manager/Client 命名来源)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user