add json tags to privilege model. front contract needs
This commit is contained in:
parent
534339533f
commit
30075d4043
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
/node_modules
|
||||
nohup.out
|
||||
.env
|
||||
main
|
||||
/.idea
|
||||
|
@ -5,17 +5,19 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
|
||||
type Privilege struct {
|
||||
ID primitive.ObjectID `bson:"_id"`
|
||||
Name string `bson:"name"`
|
||||
PrivilegeID string `bson:"privilegeId"`
|
||||
ServiceKey string `bson:"serviceKey"`
|
||||
Description string `bson:"description"`
|
||||
Type string `bson:"type"`
|
||||
Value string `bson:"value"`
|
||||
Price float64 `bson:"price"`
|
||||
CreatedAt time.Time `bson:"createdAt"`
|
||||
UpdatedAt time.Time `bson:"updatedAt"`
|
||||
IsDeleted bool `bson:"isDeleted"`
|
||||
DeletedAt *time.Time `bson:"deletedAt"`
|
||||
ID primitive.ObjectID `bson:"_id" json:"_id"`
|
||||
Name string `bson:"name" json:"name"`
|
||||
PrivilegeID string `bson:"privilegeId" json:"privilegeId"`
|
||||
ServiceKey string `bson:"serviceKey" json:"serviceKey"`
|
||||
Description string `bson:"description" json:"description"`
|
||||
Type string `bson:"type" json:"type"`
|
||||
Value string `bson:"value" json:"value"`
|
||||
Price float64 `bson:"price" json:"price"`
|
||||
CreatedAt time.Time `bson:"createdAt" json:"createdAt"`
|
||||
UpdatedAt time.Time `bson:"updatedAt" json:"updatedAt"`
|
||||
IsDeleted bool `bson:"isDeleted" json:"isDeleted"`
|
||||
DeletedAt *time.Time `bson:"deletedAt" json:"deletedAt"`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user