tariffs/internal/models/privilege.go
skeris 30075d4043
Some checks failed
Lint / Lint (push) Failing after 59s
Deploy / CreateImage (push) Successful in 1m46s
Deploy / DeployService (push) Successful in 24s
add json tags to privilege model. front contract needs
2025-01-23 01:13:41 +03:00

24 lines
889 B
Go

package models
import (
"go.mongodb.org/mongo-driver/bson/primitive"
"time"
)
type Privilege struct {
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"`
}