12345678910111213141516171819202122 |
- package model
- import (
- "context"
- "gxt-file-server/app/schema"
- )
- // IFileChunk demo存储接口
- type IFileChunk interface {
- // Query 查询数据
- Query(ctx context.Context, params schema.FileChunkQueryParam, opts ...schema.FileChunkQueryOptions) (*schema.FileChunkQueryResult, error)
- // Get 查询指定数据
- Get(ctx context.Context, recordID string, opts ...schema.FileChunkQueryOptions) (*schema.FileChunk, error)
- // Create 创建数据
- Create(ctx context.Context, item schema.FileChunk) error
- // Update 更新数据
- Update(ctx context.Context, recordID string, item schema.FileChunk) error
- // Delete 真实删除数据
- Delete(ctx context.Context, recordID string) error
- //DeleteHash 根据HASH真实删除数据
- DeleteHash(ctx context.Context, hash string) error
- }
|