31 lines
442 B
Go
Executable File
31 lines
442 B
Go
Executable File
package entities
|
|
|
|
import "time"
|
|
|
|
// In user.go
|
|
|
|
// User Domain
|
|
type User struct {
|
|
ID string
|
|
Name string
|
|
Email string
|
|
Password string
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
// UserCreate DTO
|
|
type UserCreate struct {
|
|
Name string
|
|
Email string
|
|
Password string
|
|
}
|
|
|
|
// UserUpdate DTO
|
|
type UserUpdate struct {
|
|
ID string
|
|
Name *string
|
|
Email *string
|
|
Password *string
|
|
}
|