2020-04-30 14:32:48 +02:00
|
|
|
package entity
|
|
|
|
|
2020-05-10 19:43:49 +02:00
|
|
|
type LabelMap map[string]Label
|
|
|
|
|
|
|
|
func (m LabelMap) Get(name string) Label {
|
|
|
|
if result, ok := m[name]; ok {
|
|
|
|
return result
|
|
|
|
}
|
|
|
|
|
|
|
|
return *NewLabel(name, 0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m LabelMap) Pointer(name string) *Label {
|
|
|
|
if result, ok := m[name]; ok {
|
|
|
|
return &result
|
|
|
|
}
|
|
|
|
|
|
|
|
return NewLabel(name, 0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m LabelMap) PhotoLabel(photoId uint, labelName string, uncertainty int, source string) PhotoLabel {
|
|
|
|
label := m.Get(labelName)
|
|
|
|
|
|
|
|
photoLabel := NewPhotoLabel(photoId, label.ID, uncertainty, source)
|
|
|
|
photoLabel.Label = &label
|
|
|
|
|
|
|
|
return *photoLabel
|
|
|
|
}
|
|
|
|
|
|
|
|
var LabelFixtures = LabelMap{
|
2020-04-30 14:32:48 +02:00
|
|
|
"landscape": {
|
|
|
|
ID: 1000000,
|
2020-05-23 20:58:58 +02:00
|
|
|
LabelUID: "lt9k3pw1wowuy3c2",
|
2020-04-30 14:32:48 +02:00
|
|
|
LabelSlug: "landscape",
|
|
|
|
CustomSlug: "landscape",
|
|
|
|
LabelName: "Landscape",
|
|
|
|
LabelPriority: 0,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
2020-05-10 19:43:49 +02:00
|
|
|
PhotoCount: 1,
|
2020-04-30 14:32:48 +02:00
|
|
|
LabelCategories: []*Label{},
|
2021-08-29 13:26:05 +02:00
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
2020-04-30 14:32:48 +02:00
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
2020-04-30 17:26:21 +02:00
|
|
|
"flower": {
|
|
|
|
ID: 1000001,
|
2020-05-23 20:58:58 +02:00
|
|
|
LabelUID: "lt9k3pw1wowuy3c3",
|
2020-04-30 17:26:21 +02:00
|
|
|
LabelSlug: "flower",
|
|
|
|
CustomSlug: "flower",
|
|
|
|
LabelName: "Flower",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
2020-05-10 19:43:49 +02:00
|
|
|
PhotoCount: 2,
|
2020-04-30 17:26:21 +02:00
|
|
|
LabelCategories: []*Label{},
|
2021-08-29 13:26:05 +02:00
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
2020-04-30 17:26:21 +02:00
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"cake": {
|
|
|
|
ID: 1000002,
|
2020-05-23 20:58:58 +02:00
|
|
|
LabelUID: "lt9k3pw1wowuy3c4",
|
2020-04-30 17:26:21 +02:00
|
|
|
LabelSlug: "cake",
|
|
|
|
CustomSlug: "kuchen",
|
|
|
|
LabelName: "Cake",
|
|
|
|
LabelPriority: 5,
|
|
|
|
LabelFavorite: false,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
2020-05-10 19:43:49 +02:00
|
|
|
PhotoCount: 3,
|
2020-04-30 17:26:21 +02:00
|
|
|
LabelCategories: []*Label{},
|
2021-08-29 13:26:05 +02:00
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
2020-04-30 17:26:21 +02:00
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"cow": {
|
|
|
|
ID: 1000003,
|
2020-05-23 20:58:58 +02:00
|
|
|
LabelUID: "lt9k3pw1wowuy3c5",
|
2020-04-30 17:26:21 +02:00
|
|
|
LabelSlug: "cow",
|
|
|
|
CustomSlug: "kuh",
|
2020-05-01 14:13:59 +02:00
|
|
|
LabelName: "COW",
|
2020-04-30 17:26:21 +02:00
|
|
|
LabelPriority: -1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
2020-05-10 19:43:49 +02:00
|
|
|
PhotoCount: 4,
|
2020-04-30 17:26:21 +02:00
|
|
|
LabelCategories: []*Label{},
|
2021-08-29 13:26:05 +02:00
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
2020-04-30 17:26:21 +02:00
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
2020-05-03 17:19:20 +02:00
|
|
|
"batchdelete": {
|
|
|
|
ID: 1000004,
|
2020-05-23 20:58:58 +02:00
|
|
|
LabelUID: "lt9k3pw1wowuy3c6",
|
2021-07-22 18:31:56 +02:00
|
|
|
LabelSlug: "batch-delete",
|
|
|
|
CustomSlug: "batch-delete",
|
|
|
|
LabelName: "Batch Delete",
|
2020-05-03 17:19:20 +02:00
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
2020-05-10 19:43:49 +02:00
|
|
|
PhotoCount: 5,
|
2020-05-03 17:19:20 +02:00
|
|
|
LabelCategories: []*Label{},
|
2021-08-29 13:26:05 +02:00
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
2020-05-03 17:19:20 +02:00
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
2020-05-04 16:02:49 +02:00
|
|
|
"updateLabel": {
|
|
|
|
ID: 1000005,
|
2020-05-23 20:58:58 +02:00
|
|
|
LabelUID: "lt9k3pw1wowuy3c7",
|
2021-07-22 18:31:56 +02:00
|
|
|
LabelSlug: "update-label",
|
|
|
|
CustomSlug: "update-label",
|
|
|
|
LabelName: "Update Label",
|
2020-05-04 16:02:49 +02:00
|
|
|
LabelPriority: 2,
|
|
|
|
LabelFavorite: false,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
2020-05-10 19:43:49 +02:00
|
|
|
PhotoCount: 1,
|
2020-05-04 16:02:49 +02:00
|
|
|
LabelCategories: []*Label{},
|
2021-08-29 13:26:05 +02:00
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
2020-05-04 16:02:49 +02:00
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
2020-05-05 09:28:30 +02:00
|
|
|
"updatePhotoLabel": {
|
|
|
|
ID: 1000006,
|
2020-05-23 20:58:58 +02:00
|
|
|
LabelUID: "lt9k3pw1wowuy3c8",
|
2021-07-22 18:31:56 +02:00
|
|
|
LabelSlug: "update-photo-label",
|
|
|
|
CustomSlug: "update-label-photo",
|
|
|
|
LabelName: "Update Photo Label",
|
2020-05-05 09:28:30 +02:00
|
|
|
LabelPriority: 2,
|
|
|
|
LabelFavorite: false,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
2020-05-10 19:43:49 +02:00
|
|
|
PhotoCount: 1,
|
2020-05-05 09:28:30 +02:00
|
|
|
LabelCategories: []*Label{},
|
2021-08-29 13:26:05 +02:00
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
2020-05-05 09:28:30 +02:00
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
2020-05-14 14:17:12 +02:00
|
|
|
"likeLabel": {
|
|
|
|
ID: 1000007,
|
2020-05-23 20:58:58 +02:00
|
|
|
LabelUID: "lt9k3pw1wowuy3c9",
|
2021-07-22 18:31:56 +02:00
|
|
|
LabelSlug: "like-label",
|
|
|
|
CustomSlug: "like-label",
|
|
|
|
LabelName: "Like Label",
|
2020-05-14 14:17:12 +02:00
|
|
|
LabelPriority: 3,
|
|
|
|
LabelFavorite: false,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
2021-08-29 13:26:05 +02:00
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
2020-05-14 14:17:12 +02:00
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
2020-05-25 19:10:44 +02:00
|
|
|
"no-jpeg": {
|
|
|
|
ID: 1000008,
|
2020-07-14 11:24:00 +02:00
|
|
|
LabelUID: "lt9k3aa1wowuy310",
|
2020-05-25 19:10:44 +02:00
|
|
|
LabelSlug: "no-jpeg",
|
|
|
|
CustomSlug: "no-jpeg",
|
|
|
|
LabelName: "NO JPEG",
|
|
|
|
LabelPriority: -1,
|
|
|
|
LabelFavorite: false,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 4,
|
|
|
|
LabelCategories: []*Label{},
|
2021-08-29 13:26:05 +02:00
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
2020-05-25 19:10:44 +02:00
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
2020-07-14 11:24:00 +02:00
|
|
|
"apilikeLabel": {
|
|
|
|
ID: 1000009,
|
|
|
|
LabelUID: "lt9k3pw1wowuy311",
|
2021-07-22 18:31:56 +02:00
|
|
|
LabelSlug: "api-like-label",
|
|
|
|
CustomSlug: "api-like-label",
|
|
|
|
LabelName: "Api Like Label",
|
2020-07-14 11:24:00 +02:00
|
|
|
LabelPriority: -1,
|
|
|
|
LabelFavorite: false,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
2021-08-29 13:26:05 +02:00
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
2020-07-14 11:24:00 +02:00
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"apidislikeLabel": {
|
|
|
|
ID: 1000010,
|
|
|
|
LabelUID: "lt9k3pw1wowuy312",
|
2021-07-22 18:31:56 +02:00
|
|
|
LabelSlug: "api-dislike-label",
|
|
|
|
CustomSlug: "api-dislike-label",
|
|
|
|
LabelName: "Api Dislike Label",
|
2020-07-14 11:24:00 +02:00
|
|
|
LabelPriority: -2,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
2021-08-29 13:26:05 +02:00
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
2020-07-14 11:24:00 +02:00
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
2022-03-30 11:43:30 +02:00
|
|
|
"%tennis": {
|
|
|
|
ID: 1000011,
|
|
|
|
LabelUID: "lt9k3pw1wowuy313",
|
|
|
|
LabelSlug: "%tennis",
|
|
|
|
CustomSlug: "%tennis",
|
|
|
|
LabelName: "%tennis",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"chem%stry": {
|
|
|
|
ID: 1000012,
|
|
|
|
LabelUID: "lt9k3pw1wowuy314",
|
|
|
|
LabelSlug: "chem%stry",
|
|
|
|
CustomSlug: "chem%stry",
|
|
|
|
LabelName: "chem%stry",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"cell%": {
|
|
|
|
ID: 1000013,
|
|
|
|
LabelUID: "lt9k3pw1wowuy315",
|
2022-03-30 18:21:14 +02:00
|
|
|
LabelSlug: "cell%",
|
2022-03-30 11:43:30 +02:00
|
|
|
CustomSlug: "cell%",
|
|
|
|
LabelName: "cell%",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"&friendship": {
|
|
|
|
ID: 1000014,
|
|
|
|
LabelUID: "lt9k3pw1wowuy316",
|
|
|
|
LabelSlug: "&friendship",
|
|
|
|
CustomSlug: "&friendship",
|
|
|
|
LabelName: "&friendship",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"construction&failure": {
|
|
|
|
ID: 1000015,
|
|
|
|
LabelUID: "lt9k3pw1wowuy317",
|
|
|
|
LabelSlug: "construction&failure",
|
|
|
|
CustomSlug: "construction&failure",
|
|
|
|
LabelName: "construction&failure",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"goal&": {
|
|
|
|
ID: 1000016,
|
|
|
|
LabelUID: "lt9k3pw1wowuy318",
|
|
|
|
LabelSlug: "goal&",
|
|
|
|
CustomSlug: "goal&",
|
|
|
|
LabelName: "goal&",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"'activity": {
|
|
|
|
ID: 1000017,
|
|
|
|
LabelUID: "lt9k3pw1wowuy319",
|
|
|
|
LabelSlug: "'activity",
|
|
|
|
CustomSlug: "'activity",
|
|
|
|
LabelName: "'activity",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"funera'l": {
|
|
|
|
ID: 1000018,
|
|
|
|
LabelUID: "lt9k3pw1wowuy320",
|
|
|
|
LabelSlug: "funera'l",
|
|
|
|
CustomSlug: "funera'l",
|
|
|
|
LabelName: "funera'l",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"technology'": {
|
|
|
|
ID: 1000019,
|
|
|
|
LabelUID: "lt9k3pw1wowuy321",
|
|
|
|
LabelSlug: "technology'",
|
|
|
|
CustomSlug: "technology'",
|
|
|
|
LabelName: "technology'",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"*tea": {
|
|
|
|
ID: 1000020,
|
|
|
|
LabelUID: "lt9k3pw1wowuy322",
|
|
|
|
LabelSlug: "*tea",
|
|
|
|
CustomSlug: "*tea",
|
|
|
|
LabelName: "*tea",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"soup*menu": {
|
|
|
|
ID: 1000021,
|
|
|
|
LabelUID: "lt9k3pw1wowuy323",
|
|
|
|
LabelSlug: "soup*menu",
|
|
|
|
CustomSlug: "soup*menu",
|
|
|
|
LabelName: "soup*menu",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"proposal*": {
|
|
|
|
ID: 1000022,
|
|
|
|
LabelUID: "lt9k3pw1wowuy324",
|
|
|
|
LabelSlug: "proposal*",
|
|
|
|
CustomSlug: "proposal*",
|
|
|
|
LabelName: "proposal*",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"|college": {
|
|
|
|
ID: 1000023,
|
|
|
|
LabelUID: "lt9k3pw1wowuy325",
|
|
|
|
LabelSlug: "|college",
|
|
|
|
CustomSlug: "|college",
|
|
|
|
LabelName: "|college",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"potato|couch": {
|
|
|
|
ID: 1000024,
|
|
|
|
LabelUID: "lt9k3pw1wowuy326",
|
|
|
|
LabelSlug: "potato|couch",
|
|
|
|
CustomSlug: "potato|couch",
|
|
|
|
LabelName: "potato|couch",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"mall|": {
|
|
|
|
ID: 1000025,
|
|
|
|
LabelUID: "lt9k3pw1wowuy327",
|
|
|
|
LabelSlug: "mall|",
|
|
|
|
CustomSlug: "mall|",
|
|
|
|
LabelName: "mall|",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"2020-world": {
|
|
|
|
ID: 1000026,
|
|
|
|
LabelUID: "lt9k3pw1wowuy328",
|
|
|
|
LabelSlug: "2020-world",
|
|
|
|
CustomSlug: "2020-world",
|
|
|
|
LabelName: "2020-world",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"sport-2021-event": {
|
|
|
|
ID: 1000027,
|
|
|
|
LabelUID: "lt9k3pw1wowuy329",
|
|
|
|
LabelSlug: "sport-2021-event",
|
|
|
|
CustomSlug: "sport-2021-event",
|
|
|
|
LabelName: "Sport 2021 Event",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"oven-3000": {
|
|
|
|
ID: 1000028,
|
|
|
|
LabelUID: "lt9k3pw1wowuy330",
|
|
|
|
LabelSlug: "oven-3000",
|
|
|
|
CustomSlug: "oven-3000",
|
|
|
|
LabelName: "Oven3000",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"\"king": {
|
|
|
|
ID: 1000029,
|
|
|
|
LabelUID: "lt9k3pw1wowuy331",
|
|
|
|
LabelSlug: "\"king",
|
|
|
|
CustomSlug: "\"king",
|
|
|
|
LabelName: "\"king",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"town\"ship": {
|
|
|
|
ID: 1000030,
|
|
|
|
LabelUID: "lt9k3pw1wowuy332",
|
|
|
|
LabelSlug: "town\"ship",
|
|
|
|
CustomSlug: "town\"ship",
|
|
|
|
LabelName: "town\"ship",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
|
|
|
"ladder\"": {
|
|
|
|
ID: 1000031,
|
|
|
|
LabelUID: "lt9k3pw1wowuy333",
|
|
|
|
LabelSlug: "ladder\"",
|
|
|
|
CustomSlug: "ladder\"",
|
|
|
|
LabelName: "ladder\"",
|
|
|
|
LabelPriority: 1,
|
|
|
|
LabelFavorite: true,
|
|
|
|
LabelDescription: "",
|
|
|
|
LabelNotes: "",
|
|
|
|
PhotoCount: 1,
|
|
|
|
LabelCategories: []*Label{},
|
|
|
|
CreatedAt: TimeStamp(),
|
|
|
|
UpdatedAt: TimeStamp(),
|
|
|
|
DeletedAt: nil,
|
|
|
|
New: false,
|
|
|
|
},
|
2020-04-30 14:32:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// CreateLabelFixtures inserts known entities into the database for testing.
|
2020-04-30 20:07:03 +02:00
|
|
|
func CreateLabelFixtures() {
|
2020-04-30 14:32:48 +02:00
|
|
|
for _, entity := range LabelFixtures {
|
2020-04-30 20:07:03 +02:00
|
|
|
Db().Create(&entity)
|
2020-04-30 14:32:48 +02:00
|
|
|
}
|
|
|
|
}
|