Documentation ¶
Index ¶
- type PromoRulesMySQL
- type SkuMySQL
- type TransactionItemMySQL
- func (t *TransactionItemMySQL) Create(ctx context.Context, e *transaction.TransactionItem) (res transaction.TransactionItem, err error)
- func (t *TransactionItemMySQL) Get(ctx context.Context, id *uint32) (res transaction.TransactionItem, err error)
- func (t *TransactionItemMySQL) Update(ctx context.Context, e *transaction.TransactionItem) (err error)
- type TransactionMySQL
- func (t *TransactionMySQL) Create(ctx context.Context, e *transaction.Transaction) (res *transaction.Transaction, err error)
- func (t *TransactionMySQL) Get(ctx context.Context, id uint32) (res *transaction.Transaction, err error)
- func (s *TransactionMySQL) Update(ctx context.Context, e *transaction.Transaction) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PromoRulesMySQL ¶
type PromoRulesMySQL struct {
// contains filtered or unexported fields
}
func NewPromoRulesMysql ¶
func NewPromoRulesMysql(db *sqlx.DB) *PromoRulesMySQL
func (*PromoRulesMySQL) GetBySkuID ¶
func (p *PromoRulesMySQL) GetBySkuID(ctx context.Context, skuID uint32) (res transaction.PromoRule, err error)
type SkuMySQL ¶
type SkuMySQL struct {
// contains filtered or unexported fields
}
func NewSkuMySQL ¶
func (*SkuMySQL) Create ¶
func (s *SkuMySQL) Create(ctx context.Context, e *transaction.Sku) (res *transaction.Sku, err error)
func (*SkuMySQL) Get ¶
func (s *SkuMySQL) Get(ctx context.Context, id transaction.Sku) (res transaction.Sku, err error)
type TransactionItemMySQL ¶
type TransactionItemMySQL struct {
// contains filtered or unexported fields
}
func NewTransactionItemMysql ¶
func NewTransactionItemMysql(db *sqlx.DB) *TransactionItemMySQL
func (*TransactionItemMySQL) Create ¶
func (t *TransactionItemMySQL) Create(ctx context.Context, e *transaction.TransactionItem) (res transaction.TransactionItem, err error)
func (*TransactionItemMySQL) Get ¶
func (t *TransactionItemMySQL) Get(ctx context.Context, id *uint32) (res transaction.TransactionItem, err error)
func (*TransactionItemMySQL) Update ¶
func (t *TransactionItemMySQL) Update(ctx context.Context, e *transaction.TransactionItem) (err error)
type TransactionMySQL ¶
type TransactionMySQL struct {
// contains filtered or unexported fields
}
func NewTransactionMySQL ¶
func NewTransactionMySQL(db *sqlx.DB) *TransactionMySQL
func (*TransactionMySQL) Create ¶
func (t *TransactionMySQL) Create(ctx context.Context, e *transaction.Transaction) (res *transaction.Transaction, err error)
func (*TransactionMySQL) Get ¶
func (t *TransactionMySQL) Get(ctx context.Context, id uint32) (res *transaction.Transaction, err error)
func (*TransactionMySQL) Update ¶
func (s *TransactionMySQL) Update(ctx context.Context, e *transaction.Transaction) (err error)
Click to show internal directories.
Click to hide internal directories.