File size: 711 Bytes
83a59ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package responses

import "github.com/NdoleStudio/httpsms/pkg/entities"

// ContactResponse is the payload containing entities.Contact.
type ContactResponse struct {
	response
	Data entities.Contact `json:"data"`
}

// ContactsCreatedResponse is the payload returned after creating contacts.
type ContactsCreatedResponse struct {
	response
	Data []entities.Contact `json:"data"`
}

// ContactsResponse is the payload containing []entities.Contact.
type ContactsResponse struct {
	response
	Data []entities.Contact `json:"data"`
	// Total is the number of contacts matching the request filter for the
	// user, independent of the pagination skip/limit applied to Data.
	Total int64 `json:"total" example:"57"`
}