Documentation ¶
Index ¶
- type Admin
- type Login
- type Register
- type ReportTemplate
- type ReportWithMail
- type Reports
- func (db Reports) Check(reportID, adminID int, answer string) error
- func (db Reports) DeleteByID(id int) error
- func (db Reports) Get(id int) (*ReportTemplate, error)
- func (db Reports) GetReports(offset, limit int, checked bool) ([]ReportWithMail, error)
- func (db Reports) New(report *model.Reports) error
- type Reset
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Login ¶
func (Login) GetUserByID ¶
GetUserByID returns user struct by id
type ReportTemplate ¶
type Reports ¶
func (Reports) DeleteByID ¶
DeleteByID deletes report by report_id value
func (Reports) Get ¶
func (db Reports) Get(id int) (*ReportTemplate, error)
Get returns report with mails and dates
func (Reports) GetReports ¶
func (db Reports) GetReports(offset, limit int, checked bool) ([]ReportWithMail, error)
GetReports returns slice with reports, nil if not exists offset: offset relative to query; limit: how much return (max 100)
type Session ¶
func (Session) DeleteByKey ¶
DeleteByKey deletes sessions by uuid key
func (Session) DeleteByUserID ¶
DeleteByUserID deletes session by user_id value
Click to show internal directories.
Click to hide internal directories.