diary

package
v0.0.0-...-31a4683 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiaryRepository

type DiaryRepository struct {
	*sqlx.DB
}

func NewDiaryRepository

func NewDiaryRepository(db *sqlx.DB) *DiaryRepository

func (*DiaryRepository) ClearReservedDiary

func (db *DiaryRepository) ClearReservedDiary(characterId int) error

func (*DiaryRepository) ExecTx

func (db *DiaryRepository) ExecTx(f func(tx *sqlx.Tx) error) error

func (*DiaryRepository) ReservePublishDiary

func (db *DiaryRepository) ReservePublishDiary(characterId int, title, diary string) error

func (*DiaryRepository) RetrieveDiary

func (db *DiaryRepository) RetrieveDiary(characterId *int, targetId, nth int) (*model.Diary, error)

func (*DiaryRepository) RetrieveDiaryEditData

func (db *DiaryRepository) RetrieveDiaryEditData(characterId int) (*model.DiaryEditData, error)

func (*DiaryRepository) RetrieveDiaryOverviews

func (db *DiaryRepository) RetrieveDiaryOverviews(characterId, nth int) (diaries *[]model.DiaryOverview, err error)

func (*DiaryRepository) RetrieveDiaryPreview

func (db *DiaryRepository) RetrieveDiaryPreview(characterId int) (*model.Diary, error)

func (*DiaryRepository) RetrieveLatestDiaryNth

func (db *DiaryRepository) RetrieveLatestDiaryNth() (nth int, err error)

Jump to

Keyboard shortcuts

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