Documentation ¶
Index ¶
- type Embedded
- func (f *Embedded) AddFileByIds(fileIds []string, excludeFileIds ...string) error
- func (f *Embedded) DeleteByInstance(m *dbschema.FileEmbedded) error
- func (f *Embedded) DeleteByTableID(project string, table string, tableID string) error
- func (f *Embedded) DeleteFileByIds(fileIds []string, excludeFileIds ...string) error
- func (f *Embedded) FileIDs() []uint64
- func (f *Embedded) MoveFileToOwner(tableName string, fileIDs []uint64, ownerID string) (map[string]string, error)
- func (f *Embedded) RelationEmbeddedFiles(project string, table string, field string, tableID string, v string) error
- func (f *Embedded) RelationFiles(project string, table string, field string, tableID string, v string, ...) error
- func (f *Embedded) UpdateByFileID(project string, table string, field string, tableID string, fileID uint64) error
- func (f *Embedded) UpdateEmbedded(embedded bool, project string, table string, field string, tableID string, ...) (err error)
- func (f *Embedded) Updater(table string, field string, tableID string) *fileupdater.FileUpdater
- type File
- func (f *File) Add(reader io.Reader) error
- func (f *File) CondByNoTarget() db.Compound
- func (f *File) CondByOwner(ownerType string, ownerID uint64) db.Compound
- func (f *File) Decr(fileIds ...interface{}) (err error)
- func (f *File) DeleteBy(cond db.Compound) error
- func (f *File) DeleteByID(id uint64, ownerType string, ownerID uint64) (err error)
- func (f *File) DeleteBySavePath(savePath string) (err error)
- func (f *File) FieldName() string
- func (f *File) FillData(reader io.Reader, forceReset bool, schemas ...*dbschema.File) error
- func (f *File) FnGetByMd5() func(r *uploadClient.Result) error
- func (f *File) GetAvatar() (*dbschema.File, error)
- func (f *File) GetBySavePath(storerName string, savePath string) (err error)
- func (f *File) GetByViewURL(storerName string, viewURL string) (err error)
- func (f *File) GetIDByViewURLs(viewURLs []interface{}) (r []interface{})
- func (f *File) GetViewURLByIds(ids ...interface{}) (r map[string]interface{})
- func (f *File) Incr(fileIds ...interface{}) (err error)
- func (f *File) NewFile(m *dbschema.File) *File
- func (f *File) RemoveAvatar(ownerType string, ownerID int64) error
- func (f *File) RemoveUnused(ago int64, ownerType string, ownerID uint64) error
- func (f *File) RemoveUnusedAvatar(ownerType string, excludeID uint64) error
- func (f *File) SetByUploadResult(result *uploadClient.Result) *File
- func (f *File) SetFieldName(field string) table.TableInfoStorer
- func (f *File) SetTableID(tableID string) table.TableInfoStorer
- func (f *File) SetTableName(table string) table.TableInfoStorer
- func (f *File) TableID() string
- func (f *File) TableName() string
- func (f *File) UnbindTargetData() echo.H
- func (f *File) UpdateAvatar(project string, ownerType string, ownerID uint64) error
- func (f *File) UpdateUnrelation(project string, table string, field string, tableID string, ...) (err error)
- type Thumb
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Embedded ¶
type Embedded struct { *dbschema.FileEmbedded File *File // contains filtered or unexported fields }
func (*Embedded) AddFileByIds ¶
func (*Embedded) DeleteByInstance ¶
func (f *Embedded) DeleteByInstance(m *dbschema.FileEmbedded) error
func (*Embedded) DeleteByTableID ¶
DeleteByTableID 删除嵌入文件
func (*Embedded) DeleteFileByIds ¶
func (*Embedded) MoveFileToOwner ¶
func (*Embedded) RelationEmbeddedFiles ¶
func (f *Embedded) RelationEmbeddedFiles(project string, table string, field string, tableID string, v string) error
RelationEmbeddedFiles 关联嵌入的文件 @param project 项目名称 @param table 表名称 @param field 被嵌入的字段名 @param tableID 表中行主键ID @param v 内容 @return @author AdamShen <swh@admpub.com>
func (*Embedded) RelationFiles ¶
func (*Embedded) UpdateByFileID ¶
func (*Embedded) UpdateEmbedded ¶
func (*Embedded) Updater ¶
func (f *Embedded) Updater(table string, field string, tableID string) *fileupdater.FileUpdater
type File ¶
func (*File) CondByOwner ¶
CondByOwner 所有者条件
func (*File) DeleteByID ¶
func (*File) DeleteBySavePath ¶
func (*File) FnGetByMd5 ¶
func (f *File) FnGetByMd5() func(r *uploadClient.Result) error
func (*File) GetBySavePath ¶
func (*File) GetByViewURL ¶
func (*File) GetIDByViewURLs ¶
func (f *File) GetIDByViewURLs(viewURLs []interface{}) (r []interface{})
func (*File) GetViewURLByIds ¶
func (*File) RemoveUnused ¶
func (*File) RemoveUnusedAvatar ¶
func (*File) SetByUploadResult ¶
func (f *File) SetByUploadResult(result *uploadClient.Result) *File
func (*File) SetFieldName ¶
func (f *File) SetFieldName(field string) table.TableInfoStorer
func (*File) SetTableID ¶
func (f *File) SetTableID(tableID string) table.TableInfoStorer
func (*File) SetTableName ¶
func (f *File) SetTableName(table string) table.TableInfoStorer
func (*File) UpdateAvatar ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.