entity

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetUserAnimeRequest

type GetUserAnimeRequest struct {
	Username string
	Page     int
	Limit    int
}

GetUserAnimeRequest is get user anime request model.

type Priority

type Priority string

Priority is user anime priority.

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

Available user anime priority.

type RewatchValue

type RewatchValue string

RewatchValue is user anime rewatch value.

const (
	RewatchValueVeryLow  RewatchValue = "VERY_LOW"
	RewatchValueLow      RewatchValue = "LOW"
	RewatchValueMedium   RewatchValue = "MEDIUM"
	RewatchValueHigh     RewatchValue = "HIGH"
	RewatchValueVeryHigh RewatchValue = "VERY_HIGH"
)

Available user anime rewatch value.

type Status

type Status string

Status is user anime status.

const (
	StatusWatching  Status = "WATCHING"
	StatusCompleted Status = "COMPLETED"
	StatusOnHold    Status = "ON_HOLD"
	StatusDropped   Status = "DROPPED"
	StatusPlanned   Status = "PLANNED"
)

Available user anime status.

type UserAnime

type UserAnime struct {
	ID           int64
	Username     string
	AnimeID      int64
	Status       Status
	Score        int
	Episode      int
	StartDay     int
	StartMonth   int
	StartYear    int
	EndDay       int
	EndMonth     int
	EndYear      int
	Priority     Priority
	IsRewatching bool
	RewatchCount int
	RewatchValue RewatchValue
	Tags         []string
	Comment      string
	UpdatedAt    time.Time
}

UserAnime is user anime entity.

func UserAnimeFromMal

func UserAnimeFromMal(ctx context.Context, username string, anime nagato.UserAnime) UserAnime

UserAnimeFromMal to convert mal to user anime.

Jump to

Keyboard shortcuts

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