Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusCreated string = "created" StatusUpdated string = "updated" StatusDeleted string = "deleted" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model interface {
Table() database.Table
GetList(whereSql string, args ...interface{}) ([]interface{}, error)
Get(whereSql string, args ...interface{}) (interface{}, error)
Create(resource interface{}, context interface{}) error
Update(resource interface{}, context interface{}, whereSql string, args ...interface{}) error
Delete(context interface{}, whereSql string, args ...interface{}) error
Sync() error
SyncSingle(whereSql string, args ...interface{}) (interface{}, error)
}
Click to show internal directories.
Click to hide internal directories.