Documentation ¶
Index ¶
- type OrderItemRepository
- type OrderRepository
- func (_m *OrderRepository) Delete(ctx context.Context, id int) error
- func (_m *OrderRepository) Fetch(ctx context.Context, cursor string, num int) ([]domain.Order, string, error)
- func (_m *OrderRepository) GetByID(ctx context.Context, id int) (domain.Order, error)
- func (_m *OrderRepository) Store(ctx context.Context, createOrder *domain.Order) error
- func (_m *OrderRepository) Update(ctx context.Context, updateOrder *domain.Order) error
- type OrderUsecase
- func (_m *OrderUsecase) Delete(ctx context.Context, id int) error
- func (_m *OrderUsecase) Fetch(ctx context.Context, cursor string, num int) ([]domain.Order, string, error)
- func (_m *OrderUsecase) GetByID(ctx context.Context, id int) (domain.Order, error)
- func (_m *OrderUsecase) Store(ctx context.Context, createOrder *domain.Order) error
- func (_m *OrderUsecase) Update(ctx context.Context, updateOrder *domain.Order) error
- type ProductRepository
- func (_m *ProductRepository) Delete(ctx context.Context, id int64) error
- func (_m *ProductRepository) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Product, string, error)
- func (_m *ProductRepository) GetByID(ctx context.Context, id int64) (domain.Product, error)
- func (_m *ProductRepository) Store(ctx context.Context, a *domain.Product) error
- func (_m *ProductRepository) Update(ctx context.Context, ar *domain.Product) error
- type ProductUsecase
- func (_m *ProductUsecase) Delete(ctx context.Context, id int64) error
- func (_m *ProductUsecase) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Product, string, error)
- func (_m *ProductUsecase) GetByID(ctx context.Context, id int64) (domain.Product, error)
- func (_m *ProductUsecase) Store(_a0 context.Context, _a1 *domain.Product) error
- func (_m *ProductUsecase) Update(ctx context.Context, ar *domain.Product) error
- type ReviewRepository
- type ShippingAddressRepository
- type UserRepository
- func (_m *UserRepository) Delete(ctx context.Context, id int64) error
- func (_m *UserRepository) Fetch(ctx context.Context, cursor string, num int64) ([]domain.User, string, error)
- func (_m *UserRepository) GetByID(ctx context.Context, id int64) (domain.User, error)
- func (_m *UserRepository) GetByUsername(ctx context.Context, username string) (domain.User, error)
- func (_m *UserRepository) Login(ctx context.Context, username string, password string) (domain.User, error)
- func (_m *UserRepository) Register(ctx context.Context, users *domain.User) error
- func (_m *UserRepository) Store(ctx context.Context, a *domain.User) error
- func (_m *UserRepository) Update(ctx context.Context, ar *domain.User) error
- type UserUsecase
- func (_m *UserUsecase) CreateAdmin(ctx context.Context, user *domain.User) error
- func (_m *UserUsecase) CreateStaff(ctx context.Context, user *domain.User) error
- func (_m *UserUsecase) Delete(ctx context.Context, id int64) error
- func (_m *UserUsecase) Fetch(ctx context.Context, cursor string, num int64) ([]domain.User, string, error)
- func (_m *UserUsecase) GetByID(ctx context.Context, id int64) (domain.User, error)
- func (_m *UserUsecase) GetByUsername(ctx context.Context, username string) (domain.User, error)
- func (_m *UserUsecase) Login(ctx context.Context, username string, password string) (domain.User, error)
- func (_m *UserUsecase) Register(ctx context.Context, users *domain.User) error
- func (_m *UserUsecase) Store(_a0 context.Context, _a1 *domain.User) error
- func (_m *UserUsecase) Update(ctx context.Context, ar *domain.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderItemRepository ¶
OrderItemRepository is an autogenerated mock type for the OrderItemRepository type
type OrderRepository ¶
OrderRepository is an autogenerated mock type for the OrderRepository type
func (*OrderRepository) Delete ¶
func (_m *OrderRepository) Delete(ctx context.Context, id int) error
Delete provides a mock function with given fields: ctx, id
func (*OrderRepository) Fetch ¶
func (_m *OrderRepository) Fetch(ctx context.Context, cursor string, num int) ([]domain.Order, string, error)
Fetch provides a mock function with given fields: ctx, cursor, num
type OrderUsecase ¶
OrderUsecase is an autogenerated mock type for the OrderUsecase type
func (*OrderUsecase) Delete ¶
func (_m *OrderUsecase) Delete(ctx context.Context, id int) error
Delete provides a mock function with given fields: ctx, id
func (*OrderUsecase) Fetch ¶
func (_m *OrderUsecase) Fetch(ctx context.Context, cursor string, num int) ([]domain.Order, string, error)
Fetch provides a mock function with given fields: ctx, cursor, num
type ProductRepository ¶
ProductRepository is an autogenerated mock type for the ProductRepository type
func (*ProductRepository) Delete ¶
func (_m *ProductRepository) Delete(ctx context.Context, id int64) error
Delete provides a mock function with given fields: ctx, id
func (*ProductRepository) Fetch ¶
func (_m *ProductRepository) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Product, string, error)
Fetch provides a mock function with given fields: ctx, cursor, num
type ProductUsecase ¶
ProductUsecase is an autogenerated mock type for the ProductUsecase type
func (*ProductUsecase) Delete ¶
func (_m *ProductUsecase) Delete(ctx context.Context, id int64) error
Delete provides a mock function with given fields: ctx, id
func (*ProductUsecase) Fetch ¶
func (_m *ProductUsecase) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Product, string, error)
Fetch provides a mock function with given fields: ctx, cursor, num
type ReviewRepository ¶
ReviewRepository is an autogenerated mock type for the ReviewRepository type
type ShippingAddressRepository ¶
ShippingAddressRepository is an autogenerated mock type for the ShippingAddressRepository type
func (*ShippingAddressRepository) Fetch ¶
func (_m *ShippingAddressRepository) Fetch(ctx context.Context, cursor string, id int) ([]domain.ShippingAddress, string, error)
Fetch provides a mock function with given fields: ctx, cursor, id
func (*ShippingAddressRepository) GetByID ¶
func (_m *ShippingAddressRepository) GetByID(ctx context.Context, id int64) (domain.ShippingAddress, error)
GetByID provides a mock function with given fields: ctx, id
type UserRepository ¶
UserRepository is an autogenerated mock type for the UserRepository type
func (*UserRepository) Delete ¶
func (_m *UserRepository) Delete(ctx context.Context, id int64) error
Delete provides a mock function with given fields: ctx, id
func (*UserRepository) Fetch ¶
func (_m *UserRepository) Fetch(ctx context.Context, cursor string, num int64) ([]domain.User, string, error)
Fetch provides a mock function with given fields: ctx, cursor, num
func (*UserRepository) GetByUsername ¶
GetByUsername provides a mock function with given fields: ctx, username
func (*UserRepository) Login ¶
func (_m *UserRepository) Login(ctx context.Context, username string, password string) (domain.User, error)
Login provides a mock function with given fields: ctx, username, password
type UserUsecase ¶
UserUsecase is an autogenerated mock type for the UserUsecase type
func (*UserUsecase) CreateAdmin ¶
CreateAdmin provides a mock function with given fields: ctx, user
func (*UserUsecase) CreateStaff ¶
CreateStaff provides a mock function with given fields: ctx, user
func (*UserUsecase) Delete ¶
func (_m *UserUsecase) Delete(ctx context.Context, id int64) error
Delete provides a mock function with given fields: ctx, id
func (*UserUsecase) Fetch ¶
func (_m *UserUsecase) Fetch(ctx context.Context, cursor string, num int64) ([]domain.User, string, error)
Fetch provides a mock function with given fields: ctx, cursor, num
func (*UserUsecase) GetByUsername ¶
GetByUsername provides a mock function with given fields: ctx, username
func (*UserUsecase) Login ¶
func (_m *UserUsecase) Login(ctx context.Context, username string, password string) (domain.User, error)
Login provides a mock function with given fields: ctx, username, password