File size: 365 Bytes
83a59ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package requests

import (
	"github.com/google/uuid"
)

// PhoneDelete is the payload for deleting
type PhoneDelete struct {
	request
	PhoneID string `json:"phoneID" swaggerignore:"true"` // used internally for validation
}

// PhoneIDUuid returns the phoneID as uuid.UUID
func (input *PhoneDelete) PhoneIDUuid() uuid.UUID {
	return uuid.MustParse(input.PhoneID)
}