41 lines
727 B
Go
41 lines
727 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Request struct {
|
|
ID uuid.UUID
|
|
UserID int
|
|
RequestTxt string
|
|
GeneratedTZ bool
|
|
FinalTZ string
|
|
GeneratedFinalTZ bool
|
|
FinalUpdateTZ string
|
|
MailingStatusID int
|
|
MailingStatus string
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
type MailingStatus struct {
|
|
ID int
|
|
StatusName string
|
|
}
|
|
|
|
type RequestDetail struct {
|
|
RequestID uuid.UUID
|
|
Title string
|
|
MailText string
|
|
Suppliers []SupplierInfo
|
|
}
|
|
|
|
type SupplierInfo struct {
|
|
CompanyID int `json:"company_id"`
|
|
Email string `json:"email"`
|
|
Phone string `json:"phone"`
|
|
CompanyName string `json:"company_name"`
|
|
URL string `json:"url"`
|
|
}
|