Documentation ¶
Index ¶
- type DiaryRepository
- func (db *DiaryRepository) ClearReservedDiary(characterId int) error
- func (db *DiaryRepository) ExecTx(f func(tx *sqlx.Tx) error) error
- func (db *DiaryRepository) ReservePublishDiary(characterId int, title, diary string) error
- func (db *DiaryRepository) RetrieveDiary(characterId *int, targetId, nth int) (*model.Diary, error)
- func (db *DiaryRepository) RetrieveDiaryEditData(characterId int) (*model.DiaryEditData, error)
- func (db *DiaryRepository) RetrieveDiaryOverviews(characterId, nth int) (diaries *[]model.DiaryOverview, err error)
- func (db *DiaryRepository) RetrieveDiaryPreview(characterId int) (*model.Diary, error)
- func (db *DiaryRepository) RetrieveLatestDiaryNth() (nth int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiaryRepository ¶
func NewDiaryRepository ¶
func NewDiaryRepository(db *sqlx.DB) *DiaryRepository
func (*DiaryRepository) ClearReservedDiary ¶
func (db *DiaryRepository) ClearReservedDiary(characterId int) error
func (*DiaryRepository) ReservePublishDiary ¶
func (db *DiaryRepository) ReservePublishDiary(characterId int, title, diary string) error
func (*DiaryRepository) RetrieveDiary ¶
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)
Click to show internal directories.
Click to hide internal directories.