Skip to content

Commit

Permalink
increased int data type value
Browse files Browse the repository at this point in the history
  • Loading branch information
SP Singh committed Oct 26, 2021
1 parent 74e6d3c commit bce9260
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/types/api/sms.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

// Sms represents an outgoing sms response
type Sms struct {
Id int64 `json:"id,omitempty"`
Id uint64 `json:"id,omitempty"`
OutgoingId uint64 `json:"outgoing_id,omitempty"`
Origin string `json:"origin"`
Destination string `json:"destination"`
Expand All @@ -19,7 +19,7 @@ type Sms struct {

// SmsList struct represents the list of outgoing messages
type SmsList struct {
Total uint16 `json:"total,omitempty"`
Total uint32 `json:"total,omitempty"`
Offset uint16 `json:"offset,omitempty"`
Limit uint16 `json:"limit,omitempty"`
Messages []Sms `json:"messages,omitempty"`
Expand Down
4 changes: 2 additions & 2 deletions internal/types/api/sms_incoming.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type Campaign struct {
}

type SmsIncoming struct {
Id int64 `json:"id"`
Id uint64 `json:"id"`
Origin string `json:"origin"`
Destination string `json:"destination"`
Message string `json:"message"`
Expand All @@ -18,7 +18,7 @@ type SmsIncoming struct {
}

type SmsIncomingList struct {
Total uint16 `json:"total,omitempty"`
Total uint32 `json:"total,omitempty"`
Offset uint16 `json:"offset,omitempty"`
Limit uint16 `json:"limit,omitempty"`
Messages []SmsIncoming `json:"messages,omitempty"`
Expand Down

0 comments on commit bce9260

Please sign in to comment.