Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type ProductModel ¶
type ProductModel interface { Insert(ctx context.Context, data *Product) (sql.Result, error) FindOne(ctx context.Context, id int64) (*Product, error) Update(ctx context.Context, data *Product) error Delete(ctx context.Context, id int64) error }
func NewProductModel ¶
func NewProductModel(conn sqlx.SqlConn, c cache.CacheConf) ProductModel
Click to show internal directories.
Click to hide internal directories.