Skip to content

Commit

Permalink
Change order date field to utc timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
blaz-cerpnjak committed Mar 28, 2024
1 parent a7b5f5d commit 0249057
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 1,296 deletions.
883 changes: 0 additions & 883 deletions API_GatewayWeb/DataStructures/com.blazc/order_service.pb.go

This file was deleted.

376 changes: 0 additions & 376 deletions API_GatewayWeb/DataStructures/com.blazc/order_service_grpc.pb.go

This file was deleted.

3 changes: 1 addition & 2 deletions API_GatewayWeb/DataStructures/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package DataStructures

import (
"go.mongodb.org/mongo-driver/bson/primitive"
"time"
)

type User struct {
Expand Down Expand Up @@ -37,7 +36,7 @@ type Order struct {
CustomerName string `json:"customerName" bson:"customerName"`
OrderItems []OrderItem `json:"items" bson:"items"`
Status string `json:"status" bson:"status"`
OrderDate time.Time `json:"orderDate" bson:"orderDate"`
Timestamp int64 `json:"timestamp" bson:"timestamp"`
PaymentType string `json:"paymentType" bson:"paymentType"`
TotalPrice int32 `json:"totalPrice" bson:"totalPrice"` // in cents
}
Expand Down
Loading

0 comments on commit 0249057

Please sign in to comment.