Files
api-poliklinik/pkg/models/mongo/master/masteraddress/masteraddress.go
T
2025-05-11 22:15:40 +07:00

54 lines
2.6 KiB
Go

package masteraddress
import (
_struct "api-poliklinik/pkg/models/struct"
"go.mongodb.org/mongo-driver/bson/primitive"
)
type State struct {
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
Status string `bson:"status" json:"status"`
Name string `bson:"name" json:"name"`
Period _struct.Period `bson:"period" json:"period"`
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}
type City struct {
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
Status string `bson:"status" json:"status"`
Name string `bson:"name" json:"name"`
State _struct.Reference `bson:"state" json:"state"`
Period _struct.Period `bson:"period" json:"period"`
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}
type District struct {
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
Status string `bson:"status" json:"status"`
Name string `bson:"name" json:"name"`
City _struct.Reference `bson:"city" json:"city"`
Period _struct.Period `bson:"period" json:"period"`
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}
type Village struct {
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
Status string `bson:"status" json:"status"`
Name string `bson:"name" json:"name"`
District _struct.Reference `bson:"district" json:"district"`
Period _struct.Period `bson:"period" json:"period"`
CreatedAt string `bson:"createdAt" json:"createdAt"`
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
}