Add missing response fields for pagination (#584)

This commit is contained in:
Albert Putra Purnama
2023-11-17 23:01:06 -08:00
committed by GitHub
parent 9efad284d0
commit a130cfee26
2 changed files with 11 additions and 1 deletions

View File

@@ -29,6 +29,11 @@ type Message struct {
type MessagesList struct {
Messages []Message `json:"data"`
Object string `json:"object"`
FirstID *string `json:"first_id"`
LastID *string `json:"last_id"`
HasMore bool `json:"has_more"`
httpHeader
}