table

package
v2.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2019 License: AGPL-3.0 Imports: 2 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrExistsFile       = errors.New("exists file")
	ErrInvalidFieldName = errors.New("Invalid field name")
)

Functions

func GetTableInfo

func GetTableInfo(uploadType string) (tableName string, fieldName string, defaults []string)

GetTableInfo 从上传所属内容类型获取表相关信息

Types

type TableInfo

type TableInfo struct {
	// contains filtered or unexported fields
}

func (*TableInfo) FieldName

func (t *TableInfo) FieldName() string

func (*TableInfo) SetFieldName

func (t *TableInfo) SetFieldName(fieldName string) TableInfoStorer

func (*TableInfo) SetTableID

func (t *TableInfo) SetTableID(tableID string) TableInfoStorer

func (*TableInfo) SetTableName

func (t *TableInfo) SetTableName(tableName string) TableInfoStorer

func (*TableInfo) TableID

func (t *TableInfo) TableID() string

func (*TableInfo) TableName

func (t *TableInfo) TableName() string

type TableInfoStorer

type TableInfoStorer interface {
	SetTableID(string) TableInfoStorer
	SetTableName(string) TableInfoStorer
	SetFieldName(string) TableInfoStorer
	TableID() string
	TableName() string
	FieldName() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL