Documentation ¶
Index ¶
- type Resource
- func (r Resource) Create(obj interface{}, params map[string]string) error
- func (r Resource) Delete(_ interface{}) error
- func (r Resource) Get(cols map[string]string) (interface{}, error)
- func (r Resource) GetByPrimaryKey(id string) (interface{}, error)
- func (r Resource) GetList(cols map[string]string) (interface{}, error)
- func (r Resource) GetListByStatusSets(_ sets.String) (interface{}, error)
- func (r Resource) Update(obj interface{}, cols ...string) error
- func (r Resource) UpdateStatusMsg(_ interface{}, _, _ string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource the dao layer of resource for database CRUD
func (Resource) GetByPrimaryKey ¶
GetByPrimaryKey get the resource by the primary key (id)
func (Resource) GetListByStatusSets ¶
GetListByStatusSets Resource does not implement this method
func (Resource) UpdateStatusMsg ¶
UpdateStatusMsg Resource does not implement this method
Click to show internal directories.
Click to hide internal directories.