Initial commit: ai4se-harness-suite

Import harness suite (skills, installers, overnight-runner, docs) as a fresh history for InspireChina.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ning-inspire
2026-11-17 09:57:41 +08:00
commit 26975e5c3a
347 changed files with 37438 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
# Repository 接口(Domain 层)
```java
package com.xxx.domain.repository;
import com.xxx.domain.aggregate.Xxx;
import java.time.LocalDate;
import java.util.List;
import java.util.Optional;
public interface XxxRepository {
Optional<Xxx> findById(String id);
List<Xxx> findByUserId(String userId, int page, int pageSize);
List<Xxx> findByField1(String field1);
List<Xxx> findAll(int page, int pageSize);
Xxx save(Xxx xxx);
void update(Xxx xxx);
long count();
}
```
## 要点
- 接口定义在 Domain 层,实现放在 Infrastructure 层(依赖反转)
- 方法操作的是 Domain 对象(`Xxx`),而非 PO
- 方法命名贴近业务语言