Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Report ¶
type Report struct {
ID uint `json:"id" gorm:"primaryKey"`
Name string `json:"name" gorm:"not null"`
Description string `json:"description"`
UserID string `json:"user_id" gorm:"index;not null"`
Type string `json:"type" gorm:"not null"`
Status ReportStatus `json:"status" gorm:"default:0"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `json:"-" gorm:"index"`
}
type ReportStatus ¶
type ReportStatus int
const ( ReportStatusPending ReportStatus = iota ReportStatusGenerating ReportStatusCompleted ReportStatusFailed )
func (ReportStatus) String ¶
func (r ReportStatus) String() string
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService() *Service
func (*Service) CreateReport ¶
func (*Service) GetReports ¶
Click to show internal directories.
Click to hide internal directories.