Documentation ¶
Index ¶
- type IOrderDao
- type IUserDao
- type OrderDao
- func (m *OrderDao) Count(ctx context.Context, condition *model.OrderOption) (count int64, err error)
- func (m *OrderDao) Delete(ctx context.Context, condition *model.OrderOption) (err error)
- func (m *OrderDao) Error(db *gorm.DB) error
- func (m *OrderDao) FindList(ctx context.Context, condition *model.OrderOption) (orders []model.Order, total int64, err error)
- func (m *OrderDao) FindOne(ctx context.Context, condition *model.OrderOption) (order *model.Order, err error)
- func (m *OrderDao) Insert(ctx context.Context, orders ...*model.Order) (err error)
- func (m *OrderDao) Save(ctx context.Context, order *model.Order) (err error)
- func (m *OrderDao) Update(ctx context.Context, updated, condition *model.OrderOption) (err error)
- type UserDao
- func (m *UserDao) Count(ctx context.Context, condition *model.UserOption) (count int64, err error)
- func (m *UserDao) Delete(ctx context.Context, condition *model.UserOption) (err error)
- func (m *UserDao) Error(db *gorm.DB) error
- func (m *UserDao) FindList(ctx context.Context, condition *model.UserOption) (users []model.User, total int64, err error)
- func (m *UserDao) FindOne(ctx context.Context, condition *model.UserOption) (user *model.User, err error)
- func (m *UserDao) Insert(ctx context.Context, users ...*model.User) (err error)
- func (m *UserDao) Save(ctx context.Context, user *model.User) (err error)
- func (m *UserDao) Update(ctx context.Context, updated, condition *model.UserOption) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOrderDao ¶
type IOrderDao interface { Insert(ctx context.Context, orders ...*model.Order) (err error) FindOne(ctx context.Context, condition *model.OrderOption) (order *model.Order, err error) FindList(ctx context.Context, condition *model.OrderOption) (orders []model.Order, total int64, err error) Count(ctx context.Context, condition *model.OrderOption) (count int64, err error) Save(ctx context.Context, order *model.Order) (err error) Update(ctx context.Context, updated, condition *model.OrderOption) (err error) Delete(ctx context.Context, condition *model.OrderOption) (err error) }
type IUserDao ¶
type IUserDao interface { Insert(ctx context.Context, users ...*model.User) (err error) FindOne(ctx context.Context, condition *model.UserOption) (user *model.User, err error) FindList(ctx context.Context, condition *model.UserOption) (users []model.User, total int64, err error) Count(ctx context.Context, condition *model.UserOption) (count int64, err error) Save(ctx context.Context, user *model.User) (err error) Update(ctx context.Context, updated, condition *model.UserOption) (err error) Delete(ctx context.Context, condition *model.UserOption) (err error) }
type OrderDao ¶
type OrderDao struct {
// contains filtered or unexported fields
}
func NewOrderDao ¶
Click to show internal directories.
Click to hide internal directories.