Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tank
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
tank
Commits
f4e59cd2
Commit
f4e59cd2
authored
6 years ago
by
Christian Pointner
Browse files
Options
Downloads
Patches
Plain Diff
fix struct tags
parent
3510ec1c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
store/types.go
+7
-7
7 additions, 7 deletions
store/types.go
with
7 additions
and
7 deletions
store/types.go
+
7
−
7
View file @
f4e59cd2
...
@@ -55,8 +55,8 @@ type Meta struct {
...
@@ -55,8 +55,8 @@ type Meta struct {
//******* Groups
//******* Groups
type
Group
struct
{
type
Group
struct
{
ID
uint
`json:"-"
,
gorm:"primary_key"`
ID
uint
`json:"-" gorm:"primary_key"`
Name
string
`json:"name
,
gorm:"unique;not null"`
Name
string
`json:"name
"
gorm:"unique;not null"`
}
}
func
(
g
Group
)
String
()
string
{
func
(
g
Group
)
String
()
string
{
...
@@ -136,14 +136,14 @@ func (g Group) String() string {
...
@@ -136,14 +136,14 @@ func (g Group) String() string {
// }
// }
type
FileSource
struct
{
type
FileSource
struct
{
ID
uint
`json:"-"
,
gorm:"primary_key"`
ID
uint
`json:"-" gorm:"primary_key"`
FileName
string
`json:"filename"`
FileName
string
`json:"filename"`
Hash
string
`json:"hash"`
Hash
string
`json:"hash"`
// Import Import `json:"import"`
// Import Import `json:"import"`
}
}
type
FileMetadata
struct
{
type
FileMetadata
struct
{
ID
uint
`hson:"-"
,
gorm:"primary_key"`
ID
uint
`hson:"-" gorm:"primary_key"`
Artist
string
`json:"artist"`
Artist
string
`json:"artist"`
Title
string
`json:"title"`
Title
string
`json:"title"`
Album
string
`json:"album"`
Album
string
`json:"album"`
...
@@ -151,11 +151,11 @@ type FileMetadata struct {
...
@@ -151,11 +151,11 @@ type FileMetadata struct {
}
}
type
File
struct
{
type
File
struct
{
ID
uint
`json:"id"
,
gorm:"primary_key"`
ID
uint
`json:"id" gorm:"primary_key"`
CreatedAt
time
.
Time
`json:"created"`
CreatedAt
time
.
Time
`json:"created"`
UpdatedAt
time
.
Time
`json:"updated"`
UpdatedAt
time
.
Time
`json:"updated"`
GroupName
string
`json:"group"`
GroupName
string
`json:"group"`
Group
Group
`json:"-"
,
gorm:"association_foreignkey:Name"`
Group
Group
`json:"-" gorm:"association_foreignkey:Name"`
Source
FileSource
`json:"source"`
Source
FileSource
`json:"source"`
SourceID
uint
`json:"-"`
SourceID
uint
`json:"-"`
Metadata
FileMetadata
`json:"metadata"`
Metadata
FileMetadata
`json:"metadata"`
...
@@ -176,7 +176,7 @@ type PlaylistEntry struct {
...
@@ -176,7 +176,7 @@ type PlaylistEntry struct {
}
}
type
Playlist
struct
{
type
Playlist
struct
{
ID
uint
`json:"id"
,
gorm:"primary_key"`
ID
uint
`json:"id" gorm:"primary_key"`
CreatedAt
time
.
Time
`json:"created"`
CreatedAt
time
.
Time
`json:"created"`
UpdatedAt
time
.
Time
`json:"updated"`
UpdatedAt
time
.
Time
`json:"updated"`
PlaylistEntries
[]
PlaylistEntry
PlaylistEntries
[]
PlaylistEntry
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment