use int64 timestamps everywhere (#59)

This commit is contained in:
sashabaranov
2023-01-28 23:18:59 +04:00
committed by GitHub
parent 8dac9408c1
commit 3695eb3ade
6 changed files with 9 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ import (
// Model struct represents an OpenAPI model.
type Model struct {
CreatedAt int `json:"created_at"`
CreatedAt int64 `json:"created_at"`
ID string `json:"id"`
Object string `json:"object"`
OwnedBy string `json:"owned_by"`
@@ -18,7 +18,7 @@ type Model struct {
// Permission struct represents an OpenAPI permission.
type Permission struct {
CreatedAt int `json:"created_at"`
CreatedAt int64 `json:"created_at"`
ID string `json:"id"`
Object string `json:"object"`
AllowCreateEngine bool `json:"allow_create_engine"`