Skip to content

Commit

Permalink
add payloadtime
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaasishlah committed Nov 18, 2023
1 parent 7ca32d3 commit 91ab779
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions type.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package pasetobackendpasabar

import (
"time"

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

Expand All @@ -26,6 +28,14 @@ type Response struct {
Data interface{} `json:"data" bson:"data"`
}

type Payload struct {
Id primitive.ObjectID `json:"id"`
Role string `json:"role"`
Exp time.Time `json:"exp"`
Iat time.Time `json:"iat"`
Nbf time.Time `json:"nbf"`
}

type Catalog struct {
ID primitive.ObjectID `bson:"_id,omitempty" `
Nomorid int `json:"nomorid" bson:"nomorid"`
Expand Down

0 comments on commit 91ab779

Please sign in to comment.