Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookModel ¶
type BookModel interface { Insert(data *Book) error FindOne(id int64) (*Book, error) FindOneByFilter(filter map[string]interface{}, opts ...sqlx.Option) (*Book, error) FindByFilter(filter map[string]interface{}, opts ...sqlx.Option) ([]*Book, error) Save(*Book) *gorm.DB Updates(*Book) *gorm.DB UpdateByFilter(filter map[string]interface{}, upVal map[string]interface{}) *gorm.DB Delete(id int64) error DeleteByFilter(filter map[string]interface{}) error }
BookModel defines a model for user
func NewBookModel ¶
NewBookModel creates an instance for UserModel
Click to show internal directories.
Click to hide internal directories.