Skip to content

Commit

Permalink
updsted
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinandpn committed Oct 11, 2023
1 parent 32d59de commit f58bac8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pkg/repository/interface/orderinterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ import (
type OrderRepository interface {
CreateUserOrder(id uint) error
FindUserOrderByUId(uid uint) (domain.UserOrder, error)
AddOrderInfo(orderId, AdrsId, CopId uint, price float64, status string, payId uint) (uint, error)
FindAllOrderInfoByUid(uid uint) (domain.OrderInfo, error)
AddOrderInfo(orderId, AdrsId, CopId uint, price float64, status uint, payid uint) (uint, error)
FindOrderInfoByUid(uid uint) (domain.OrderInfo, error)
AddOrderItem(oid, pfid, qty uint) error
UpdatePaymentMethod(id, pid uint) error
CartAllOrder(orderId, OrderinfoId uint, cart []res.CartDisplay) error // updation
OrderDetail(uid uint) ([]res.ResOrder, error)
ChangeOrderStatus(status string, id uint) error

/*
UPDATION NEED ....!
*/
FindOrderInfoByOrderId(id uint) (domain.OrderInfo, error)
Expand All @@ -30,4 +29,12 @@ type OrderRepository interface {
GetOrderStatusByStatus(status string) (domain.OrderStatus, error)
GetAllOrderStatus() ([]domain.OrderStatus, error)
//
// 01 - 09 - 2023 - Order status updation

ListOrderDetailByUid(uid uint) ([]res.OrderDetailByUid, error)
ListALlOrderByUid(id uint) ([]domain.OrderInfo, error)
UpdateOrderStatusToOrdered(id uint) error
UpdateOrderStatusToDelivered(id uint) error
UpdateOrderStatusToCancelled(id uint) error
UpdateOrderStatusToReturned(id uint) error
}

0 comments on commit f58bac8

Please sign in to comment.