refactor: python to go
This commit is contained in:
15
internal/models/models.go
Normal file
15
internal/models/models.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type Subscriber struct {
|
||||
ID int
|
||||
Email string
|
||||
}
|
||||
|
||||
type Newsletter struct {
|
||||
ID int
|
||||
Subject string
|
||||
Body string
|
||||
SentAt time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user