mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
19 lines
606 B
Go
19 lines
606 B
Go
package models
|
|
|
|
import "context"
|
|
|
|
type CustomFieldMap map[string]interface{}
|
|
|
|
type CustomFieldsInput struct {
|
|
// If populated, the entire custom fields map will be replaced with this value
|
|
Full map[string]interface{} `json:"full"`
|
|
// If populated, only the keys in this map will be updated
|
|
Partial map[string]interface{} `json:"partial"`
|
|
// Remove any keys in this list
|
|
Remove []string `json:"remove"`
|
|
}
|
|
|
|
type CustomFieldsReader interface {
|
|
GetCustomFields(ctx context.Context, id int) (map[string]interface{}, error)
|
|
GetCustomFieldsBulk(ctx context.Context, ids []int) ([]CustomFieldMap, error)
|
|
}
|