add service
This commit is contained in:
40
internal/model/request.go
Normal file
40
internal/model/request.go
Normal file
@@ -0,0 +1,40 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user