transformer

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryTransformer

type CategoryTransformer struct {
	ID   uint   `json:"id" example:"1"`
	Name string `json:"name" example:"lorem impsum"`
}

type FastingTransformer

type FastingTransformer struct {
	ID         uint   `json:"id" example:"1"`
	CategoryID uint   `json:"category_id" example:"1"`
	TypeID     uint   `json:"type_id" example:"1"`
	Date       string `json:"date" example:"2020-01-01"`
	Year       uint   `json:"year" example:"2020"`
	Month      uint   `json:"month" example:"1"`
	Day        uint   `json:"day" example:"1"`
	HumanDate  string `json:"human_date"`

	Category CategoryTransformer `json:"category"`
	Type     TypeTransformer     `json:"type"`
}

type SourceTransformer

type SourceTransformer struct {
	ID  uint   `json:"id" example:"1"`
	URL string `json:"url" example:"https://granitebps.com"`
}

type TypeTransformer

type TypeTransformer struct {
	ID              uint   `json:"id" example:"1"`
	Name            string `json:"name" example:"lorem ipsum"`
	Description     string `json:"description" example:"lorem ipsum"`
	BackgroundColor string `json:"background_color" example:"#FFFFFF"`
	TextColor       string `json:"text_color" example:"#FFFFFF"`
}

Jump to

Keyboard shortcuts

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