37 lines
1.2 KiB
Go
37 lines
1.2 KiB
Go
package ordersRepo
|
|
|
|
import (
|
|
"git.ma-al.com/goc_daniel/b2b/app/model"
|
|
"git.ma-al.com/goc_daniel/b2b/app/utils/query/filters"
|
|
"git.ma-al.com/goc_daniel/b2b/app/utils/query/find"
|
|
)
|
|
|
|
type UIOrdersRepo interface {
|
|
Find(user_id uint, p find.Paging, filt *filters.FiltersList) (find.Found[model.CustomerOrder], error)
|
|
PlaceNewOrder(user_id uint, cart_id uint, country_id uint, address_info string) error
|
|
ChangeOrderAddress(user_id uint, order_id uint, country_id uint, address_info string) error
|
|
ChangeOrderStatus(user_id uint, order_id uint, status string) error
|
|
}
|
|
|
|
type OrdersRepo struct{}
|
|
|
|
func New() UIOrdersRepo {
|
|
return &OrdersRepo{}
|
|
}
|
|
|
|
func (repo *OrdersRepo) Find(user_id uint, p find.Paging, filt *filters.FiltersList) (find.Found[model.CustomerOrder], error) {
|
|
return find.Found[model.CustomerOrder]{}, nil
|
|
}
|
|
|
|
func (repo *OrdersRepo) PlaceNewOrder(user_id uint, cart_id uint, country_id uint, address_info string) error {
|
|
return nil
|
|
}
|
|
|
|
func (repo *OrdersRepo) ChangeOrderAddress(user_id uint, order_id uint, country_id uint, address_info string) error {
|
|
return nil
|
|
}
|
|
|
|
func (repo *OrdersRepo) ChangeOrderStatus(user_id uint, order_id uint, status string) error {
|
|
return nil
|
|
}
|