Documentation ¶
Index ¶
- type GeneralRepository
- func (db *GeneralRepository) Announce(announce *model.AnnouncementData) error
- func (db *GeneralRepository) Connections() (connections int, err error)
- func (r *GeneralRepository) ExecTx(f func(tx *sqlx.Tx) error) error
- func (db *GeneralRepository) Initialize() error
- func (db *GeneralRepository) Inquiry(characterId *int, inquiry string) error
- func (db *GeneralRepository) MigrateDrop() error
- func (db *GeneralRepository) MigrateLatest() error
- func (db *GeneralRepository) RetrieveAnnouncement(announcementId int) (announcement *model.Announcement, ...)
- func (db *GeneralRepository) RetrieveAnnouncementEditData(announcementId int) (announcement *model.AnnouncementEditData, err error)
- func (db *GeneralRepository) RetrieveAnnouncementOverviews(basePoint, number int) (announcements *[]model.AnnouncementOverview, isContinue bool, err error)
- func (db *GeneralRepository) RetrieveInquiries(basePoint, number int, unresolvedOnly bool) (inquiries *[]model.Inquiry, isContinue bool, err error)
- func (db *GeneralRepository) Update() error
- func (db *GeneralRepository) UpdateAnnouncement(announcementId int, announce *model.AnnouncementEditDataUpdate) error
- func (db *GeneralRepository) UpdateInquiryState(inquiryId int, resolved bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeneralRepository ¶
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 (*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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.