Documentation
¶
Index ¶
- type Area
- type Kind
- type Model
- func (m Model) Find(ctx context.Context, name, fiasID, kladrID, typ, typeFull string, kind Kind) (id primitive.ObjectID, err error)
- func (m Model) GetByID(ctx context.Context, id primitive.ObjectID) (res Area, err error)
- func (m Model) GetByIDs(ctx context.Context, ids []primitive.ObjectID) (res []Area, err error)
- func (m Model) GetBySlug(ctx context.Context, slug string) (res Area, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Area ¶
type Area struct {
ID primitive.ObjectID `bson:"_id,omitempty"`
Slug string `bson:"s,omitempty"`
FiasID string `bson:"fi,omitempty"`
KladrID string `bson:"ki,omitempty"`
Name string `bson:"n,omitempty"`
Kind Kind `bson:"k,omitempty"`
Type string `bson:"t,omitempty"`
TypeFull string `bson:"tf,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.