Update controllers
This commit is contained in:
1 parent
338f508460
commit
2de5b87bb9
20 files changed
+317
-3
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"go.mongo.org/mongo-driver/bson/primitive"
|
||||
)
|
||||
|
||||
type Invoice struct {
|
||||
ID primitive.ObjectID `bson:"_id"`
|
||||
Invoice_id string `json:"invoice_id"`
|
||||
Order_id string `json:"order_id"`
|
||||
Payment_method *string `json:"payment_method" validate:"eq=CARD|eq=CASH|eq=`
|
||||
Payment_status *string `json:"payment_status" validate:"required,eq=PENDING|eq=PAID`
|
||||
Payment_due_date time.Time `json:"payment_due_Date"`
|
||||
Created_at time.Time `json:"created_at"`
|
||||
Updated_at time.Time `json:"updated_at"`
|
||||
}
|
||||
Reference in new issue
Block a user