basic setup
This commit is contained in:
36
app/repos/ordersRepo/ordersRepo.go
Normal file
36
app/repos/ordersRepo/ordersRepo.go
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user