general

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeneralRepository

type GeneralRepository struct {
	*sqlx.DB
}

func NewGeneralRepository

func NewGeneralRepository(db *sqlx.DB) *GeneralRepository

func (*GeneralRepository) Announce

func (db *GeneralRepository) Announce(announce *model.AnnouncementData) error

func (*GeneralRepository) Connections

func (db *GeneralRepository) Connections() (connections int, err error)

func (*GeneralRepository) ExecTx

func (r *GeneralRepository) ExecTx(f func(tx *sqlx.Tx) error) error

func (*GeneralRepository) Initialize

func (db *GeneralRepository) Initialize() error

func (*GeneralRepository) Inquiry

func (db *GeneralRepository) Inquiry(characterId *int, inquiry string) error

func (*GeneralRepository) MigrateDrop

func (db *GeneralRepository) MigrateDrop() error

func (*GeneralRepository) MigrateLatest

func (db *GeneralRepository) MigrateLatest() error

func (*GeneralRepository) RetrieveAnnouncement

func (db *GeneralRepository) RetrieveAnnouncement(announcementId int) (announcement *model.Announcement, prevGuide, nextGuide *model.AnnouncementGuideData, err error)

func (*GeneralRepository) RetrieveAnnouncementEditData

func (db *GeneralRepository) RetrieveAnnouncementEditData(announcementId int) (announcement *model.AnnouncementEditData, err error)

func (*GeneralRepository) RetrieveAnnouncementOverviews

func (db *GeneralRepository) RetrieveAnnouncementOverviews(basePoint, number int) (announcements *[]model.AnnouncementOverview, isContinue bool, err error)

func (*GeneralRepository) RetrieveInquiries

func (db *GeneralRepository) RetrieveInquiries(basePoint, number int, unresolvedOnly bool) (inquiries *[]model.Inquiry, isContinue bool, err error)

func (*GeneralRepository) Update

func (db *GeneralRepository) Update() error

func (*GeneralRepository) UpdateAnnouncement

func (db *GeneralRepository) UpdateAnnouncement(announcementId int, announce *model.AnnouncementEditDataUpdate) error

func (*GeneralRepository) UpdateInquiryState

func (db *GeneralRepository) UpdateInquiryState(inquiryId int, resolved bool) error

Jump to

Keyboard shortcuts

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