Documentation ¶
Index ¶
- type AbstractDao
- func (d *AbstractDao) Add(model interface{}) (interface{}, error)
- func (d *AbstractDao) AddBatch(models interface{}) (interface{}, error)
- func (d *AbstractDao) DeleteByPrimaryKey(primaryKey string) error
- func (d *AbstractDao) DeleteByPrimaryKeys(primaryKeys []string) error
- func (d *AbstractDao) GetList(queryCond utils.QueryConditions) (interface{}, error)
- func (d *AbstractDao) GetListByPrimaryKeys(primaryKeys []string) (interface{}, error)
- func (d *AbstractDao) GetOneByPrimaryKey(primaryKey string) (interface{}, error)
- func (d *AbstractDao) Update(model interface{}, pk string) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractDao ¶
func NewAbstractDao ¶
func NewAbstractDao(db *gorm.DB, modelInfo *utils.ModelInfo) *AbstractDao
func (*AbstractDao) Add ¶
func (d *AbstractDao) Add(model interface{}) (interface{}, error)
func (*AbstractDao) AddBatch ¶
func (d *AbstractDao) AddBatch(models interface{}) (interface{}, error)
func (*AbstractDao) DeleteByPrimaryKey ¶
func (d *AbstractDao) DeleteByPrimaryKey(primaryKey string) error
func (*AbstractDao) DeleteByPrimaryKeys ¶
func (d *AbstractDao) DeleteByPrimaryKeys(primaryKeys []string) error
func (*AbstractDao) GetList ¶
func (d *AbstractDao) GetList(queryCond utils.QueryConditions) (interface{}, error)
func (*AbstractDao) GetListByPrimaryKeys ¶
func (d *AbstractDao) GetListByPrimaryKeys(primaryKeys []string) (interface{}, error)
func (*AbstractDao) GetOneByPrimaryKey ¶
func (d *AbstractDao) GetOneByPrimaryKey(primaryKey string) (interface{}, error)
func (*AbstractDao) Update ¶
func (d *AbstractDao) Update(model interface{}, pk string) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.