一键导入
repositories-and-data-access
Implement repository interfaces for data persistence and abstraction over database operations using Bun ORM.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Implement repository interfaces for data persistence and abstraction over database operations using Bun ORM.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Implement HTTP handlers that parse requests, invoke use cases, and format responses following REST conventions.
Write unit tests in Go following Red-Green-Refactor TDD principles.
Define and implement services that encapsulate business logic with proper constructor-based dependency injection.
Build pluggable authentication features using the plugin system with initialization, migrations, routes, and service registration.
Orchestrate services and repositories through use cases to implement application-level workflows and business scenarios.
Wire dependencies using constructor-based dependency injection throughout services, repositories, and handlers.
| name | repositories-and-data-access |
| description | Implement repository interfaces for data persistence and abstraction over database operations using Bun ORM. |
WithTx(tx bun.IDB)context.ContextRepositories are data access only:
bun_*.go filesbun.IDB at construction (not concrete *bun.DB)nil, nil for single queries; empty slice for batch queriesSee examples/bun_todo_repository.go for:
WithTx() method