mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
[Feature] Images new fields : URL & Date (#3015)
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -25,6 +25,9 @@ const (
|
||||
var (
|
||||
title = "title"
|
||||
rating = 5
|
||||
url = "http://a.com"
|
||||
date = "2001-01-01"
|
||||
dateObj = models.NewDate(date)
|
||||
organized = true
|
||||
ocounter = 2
|
||||
)
|
||||
@@ -52,6 +55,8 @@ func createFullImage(id int) models.Image {
|
||||
Title: title,
|
||||
OCounter: ocounter,
|
||||
Rating: &rating,
|
||||
Date: &dateObj,
|
||||
URL: url,
|
||||
Organized: organized,
|
||||
CreatedAt: createTime,
|
||||
UpdatedAt: updateTime,
|
||||
@@ -63,6 +68,8 @@ func createFullJSONImage() *jsonschema.Image {
|
||||
Title: title,
|
||||
OCounter: ocounter,
|
||||
Rating: rating,
|
||||
Date: date,
|
||||
URL: url,
|
||||
Organized: organized,
|
||||
Files: []string{path},
|
||||
CreatedAt: json.JSONTime{
|
||||
|
||||
Reference in New Issue
Block a user