entity

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Date

type Date struct {
	Year  int
	Month int
	Day   int
}

Date is entity for date.

type GetUserMangaRequest

type GetUserMangaRequest struct {
	Username string
	Page     int
	Limit    int
}

GetUserMangaRequest is get user manga request model.

type Priority

type Priority string

Priority is user manga priority.

const (
	PriorityLow    Priority = "LOW"
	PriorityMedium Priority = "MEDIUM"
	PriorityHigh   Priority = "HIGH"
)

Available user manga priority.

type RereadValue

type RereadValue string

RereadValue is user manga reread value.

const (
	RereadValueVeryLow  RereadValue = "VERY_LOW"
	RereadValueLow      RereadValue = "LOW"
	RereadValueMedium   RereadValue = "MEDIUM"
	RereadValueHigh     RereadValue = "HIGH"
	RereadValueVeryHigh RereadValue = "VERY_HIGH"
)

Available user manga reread value.

type Status

type Status string

Status is user manga status.

const (
	StatusReading   Status = "READING"
	StatusCompleted Status = "COMPLETED"
	StatusOnHold    Status = "ON_HOLD"
	StatusDropped   Status = "DROPPED"
	StatusPlanned   Status = "PLANNED"
)

Available user manga status.

type UserManga

type UserManga struct {
	Username    string
	MangaID     int64
	Title       string
	Status      Status
	Score       int
	Volume      int
	Chapter     int
	StartDate   Date
	EndDate     Date
	Priority    Priority
	IsRereading bool
	RereadCount int
	RereadValue RereadValue
	Tags        []string
	Comment     string
	UpdatedAt   time.Time
}

UserManga is entity for user manga.

func UserMangaFromNagato

func UserMangaFromNagato(username string, manga nagato.UserManga) UserManga

UserMangaFromNagato to convert nagato to user manga.

Jump to

Keyboard shortcuts

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