mirror of
https://github.com/teamhanko/hanko.git
synced 2025-10-27 06:06:54 +08:00
20 lines
436 B
Go
20 lines
436 B
Go
package dto
|
|
|
|
import "time"
|
|
|
|
type PasscodeFinishRequest struct {
|
|
Id string `json:"id" validate:"required,uuid4"`
|
|
Code string `json:"code" validate:"required"`
|
|
}
|
|
|
|
type PasscodeInitRequest struct {
|
|
UserId string `json:"user_id" validate:"required,uuid4"`
|
|
EmailId *string `json:"email_id"`
|
|
}
|
|
|
|
type PasscodeReturn struct {
|
|
Id string `json:"id"`
|
|
TTL int `json:"ttl"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|