httpsms-gateway / api /pkg /responses /contact_responses.go
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca
Raw History Blame Contribute Delete
711 Bytes
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"`
}