Documentation ¶
Index ¶
- Variables
- type Callback
- type FileRelation
- func (f *FileRelation) Callback() Callback
- func (f *FileRelation) Listen(events ...string)
- func (f *FileRelation) ListenDefault()
- func (f *FileRelation) SetDBI(dbi *factory.DBI) *FileRelation
- func (f *FileRelation) SetEmedded(embedded bool) *FileRelation
- func (f *FileRelation) SetSeperator(seperator string) *FileRelation
- func (f *FileRelation) SetTable(table string, field string) *FileRelation
- type Property
Constants ¶
This section is empty.
Variables ¶
View Source
var DBI = func() *factory.DBI { return dbschema.DBI }
Functions ¶
This section is empty.
Types ¶
type FileRelation ¶
type FileRelation struct { TableName string // 数据表名称 FieldName string // 数据表字段名 Embedded bool // 是否为嵌入图片 Seperator string // 文件字段中多个文件路径之间的分隔符,空字符串代表为单个文件 // contains filtered or unexported fields }
FileRelation 文件关联数据监听 FileRelation.SetTable(`table`,`field`).ListenDefault()
func (*FileRelation) Callback ¶
func (f *FileRelation) Callback() Callback
func (*FileRelation) Listen ¶
func (f *FileRelation) Listen(events ...string)
func (*FileRelation) ListenDefault ¶
func (f *FileRelation) ListenDefault()
func (*FileRelation) SetDBI ¶
func (f *FileRelation) SetDBI(dbi *factory.DBI) *FileRelation
func (*FileRelation) SetEmedded ¶
func (f *FileRelation) SetEmedded(embedded bool) *FileRelation
func (*FileRelation) SetSeperator ¶
func (f *FileRelation) SetSeperator(seperator string) *FileRelation
func (*FileRelation) SetTable ¶
func (f *FileRelation) SetTable(table string, field string) *FileRelation
Click to show internal directories.
Click to hide internal directories.