mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-15 17:53:08 +03:00
22 lines
595 B
Go
22 lines
595 B
Go
package dto
|
|
|
|
import (
|
|
"time"
|
|
|
|
datatype "github.com/pocket-id/pocket-id/backend/internal/model/types"
|
|
)
|
|
|
|
type SignupTokenCreateDto struct {
|
|
ExpiresAt time.Time `json:"expiresAt" binding:"required"`
|
|
UsageLimit int `json:"usageLimit" binding:"required,min=1,max=100"`
|
|
}
|
|
|
|
type SignupTokenDto struct {
|
|
ID string `json:"id"`
|
|
Token string `json:"token"`
|
|
ExpiresAt datatype.DateTime `json:"expiresAt"`
|
|
UsageLimit int `json:"usageLimit"`
|
|
UsageCount int `json:"usageCount"`
|
|
CreatedAt datatype.DateTime `json:"createdAt"`
|
|
}
|