Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type FileDao ¶
type FileDao struct { }
func (*FileDao) DeleteByProperty ¶
DeleteById: 删除文件记录
func (*FileDao) Save ¶
func (f *FileDao) Save(in *dto.FileDto) *public.BusinessException
Save: 新增/更新文件记录
func (*FileDao) SaveNew ¶
func (f *FileDao) SaveNew(in *dto.FileDto) *public.BusinessException
Save: 新增文件记录
func (*FileDao) SelectByProperty ¶
SelectByProperty: 通过一个属性查询
type FileShardDao ¶
type FileShardDao struct { }
func (*FileShardDao) DeleteByKey ¶
func (f *FileShardDao) DeleteByKey(key string)
DeleteByKey: 上传完成后删除分片记录
func (*FileShardDao) GetUploadedShards ¶
func (f *FileShardDao) GetUploadedShards(key string) []int32
GetUploadedShards: 获取传入文件的所有已上传分片索引
func (*FileShardDao) Save ¶
func (f *FileShardDao) Save(in *dto.FileShardDto) *public.BusinessException
Save: 保存文件分片记录
Click to show internal directories.
Click to hide internal directories.