32 lines
937 B
Go
32 lines
937 B
Go
package services
|
|
|
|
import (
|
|
"context"
|
|
|
|
transaction_dto "quyun/v2/app/http/v1/dto"
|
|
user_dto "quyun/v2/app/http/v1/dto"
|
|
)
|
|
|
|
// @provider
|
|
type order struct{}
|
|
|
|
func (s *order) ListUserOrders(ctx context.Context, status string) ([]user_dto.Order, error) {
|
|
return []user_dto.Order{}, nil
|
|
}
|
|
|
|
func (s *order) GetUserOrder(ctx context.Context, id string) (*user_dto.Order, error) {
|
|
return &user_dto.Order{}, nil
|
|
}
|
|
|
|
func (s *order) Create(ctx context.Context, form *transaction_dto.OrderCreateForm) (*transaction_dto.OrderCreateResponse, error) {
|
|
return &transaction_dto.OrderCreateResponse{}, nil
|
|
}
|
|
|
|
func (s *order) Pay(ctx context.Context, id string, form *transaction_dto.OrderPayForm) (*transaction_dto.OrderPayResponse, error) {
|
|
return &transaction_dto.OrderPayResponse{}, nil
|
|
}
|
|
|
|
func (s *order) Status(ctx context.Context, id string) (*transaction_dto.OrderStatusResponse, error) {
|
|
return &transaction_dto.OrderStatusResponse{}, nil
|
|
}
|