model

package
v0.0.0-...-b70bbfa Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FavoriteCreateReq

type FavoriteCreateReq struct {
	Response map[string]any `json:"response"`
}

FavoriteCreateReq запрос на добавление предикта в избранное.

type FavoriteDao

type FavoriteDao struct {
	ID        int64
	Username  string
	Response  []byte
	IsDeleted bool
	CreatedAt time.Time
	UpdatedAt time.Time
}

FavoriteDao представление избранных предиктов в базе данных.

func (*FavoriteDao) ToDto

func (f *FavoriteDao) ToDto() FavoriteDto

ToDto конвертирует FavoriteDao в FavoriteDto.

type FavoriteDto

type FavoriteDto struct {
	ID        int64          `json:"id"`
	Response  map[string]any `json:"response"`
	CreatedAt time.Time      `json:"created_at"`
	UpdatedAt time.Time      `json:"updated_at"`
}

FavoriteDto представление избранных предиктов в API.

type FavoriteUpdateReq

type FavoriteUpdateReq struct {
	ID       int64          `json:"id"`
	Response map[string]any `json:"response"`
}

FavoriteUpdateReq запрос на обновление предикта в избранном.

Jump to

Keyboard shortcuts

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