Documentation ¶
Index ¶
- type DataOperatorBuilder
- func (op *DataOperatorBuilder) Delete(obj interface{}, id string, ctx *web.EventContext) (err error)
- func (op *DataOperatorBuilder) Fetch(obj interface{}, id string, ctx *web.EventContext) (r interface{}, err error)
- func (op *DataOperatorBuilder) Save(obj interface{}, id string, ctx *web.EventContext) (err error)
- func (op *DataOperatorBuilder) Search(obj interface{}, params *presets.SearchParams, ctx *web.EventContext) (r interface{}, totalCount int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataOperatorBuilder ¶
type DataOperatorBuilder struct {
// contains filtered or unexported fields
}
func DataOperator ¶
func DataOperator(db *gorm.DB) (r *DataOperatorBuilder)
func (*DataOperatorBuilder) Delete ¶
func (op *DataOperatorBuilder) Delete(obj interface{}, id string, ctx *web.EventContext) (err error)
func (*DataOperatorBuilder) Fetch ¶
func (op *DataOperatorBuilder) Fetch(obj interface{}, id string, ctx *web.EventContext) (r interface{}, err error)
func (*DataOperatorBuilder) Save ¶
func (op *DataOperatorBuilder) Save(obj interface{}, id string, ctx *web.EventContext) (err error)
func (*DataOperatorBuilder) Search ¶
func (op *DataOperatorBuilder) Search(obj interface{}, params *presets.SearchParams, ctx *web.EventContext) (r interface{}, totalCount int, err error)
Click to show internal directories.
Click to hide internal directories.