Backend: Add comments (#562)
This commit is contained in:
parent
4be12cd33e
commit
f10459c447
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,7 @@ import (
|
|||
"github.com/ulule/deepcopier"
|
||||
)
|
||||
|
||||
// Details contains detailed photo information
|
||||
type Details struct {
|
||||
PhotoID uint `json:"PhotoID" deepcopier:"skip"`
|
||||
Keywords string `json:"Keywords"`
|
||||
|
@ -55,6 +56,7 @@ type Photo struct {
|
|||
OriginalName string `json:"OriginalName"`
|
||||
}
|
||||
|
||||
// NewPhoto creates Photo struct from interface
|
||||
func NewPhoto(m interface{}) (f Photo, err error) {
|
||||
err = deepcopier.Copy(m).To(&f)
|
||||
|
||||
|
|
Loading…
Reference in a new issue