基础架构
This commit is contained in:
@@ -29,7 +29,7 @@ type Repository[T any] interface {
|
||||
BaseRepository
|
||||
|
||||
// 基础CRUD操作
|
||||
Create(ctx context.Context, entity T) error
|
||||
Create(ctx context.Context, entity T) (T, error)
|
||||
GetByID(ctx context.Context, id string) (T, error)
|
||||
Update(ctx context.Context, entity T) error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user