Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQL ¶
type SQL struct {
// contains filtered or unexported fields
}
SQL contains functions for user sql database.
func (*SQL) Get ¶
func (sql *SQL) Get(ctx context.Context, data entity.GetUserAnimeRequest) ([]*entity.UserAnime, int, int, error)
Get to get user anime.
type UserAnime ¶
type UserAnime struct { ID int64 Username string `gorm:"index:username_index"` AnimeID int64 `gorm:"index:anime_id_index"` Status entity.Status Score int Episode int StartDay int StartMonth int StartYear int EndDay int EndMonth int EndYear int Priority entity.Priority IsRewatching bool RewatchCount int RewatchValue entity.RewatchValue Tags string Comment string CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt }
UserAnime is user_anime database model.
Click to show internal directories.
Click to hide internal directories.