serializers

package
v0.0.0-...-4711403 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2023 License: MPL-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FavState

type FavState struct {
	State string `json:"state" example:"INSERT"`
}

type Image

type Image struct {
	Id int64 `json:"image_id"`
}

type ImagesJsonResponse

type ImagesJsonResponse struct {
	Images []models.Image `json:"images"`
}

ImagesJsonResponse Represent A JSON Response Content just before it is Serialized

func JsonLike

func JsonLike(rows database.ImageRows) ImagesJsonResponse

type JSONError

type JSONError struct {
	Detail string `json:"detail"`
}

type ReportImage

type ReportImage struct {
	Id          int64   `json:"image_id"`
	Description *string `json:"description" maxLength:"200" example:"Here is a less than 200 characters and optional description"`
}

type TagsJsonResponse

type TagsJsonResponse struct {
	Versatile []interface{} `json:"versatile"`
	Nsfw      []interface{} `json:"nsfw"`
}

type User

type User struct {
	Id int64 `json:"user_id"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL