From a21865da3fe60cb56e4b1295080944206f3162b6 Mon Sep 17 00:00:00 2001 From: Toomore Chiang Date: Tue, 13 Sep 2022 22:48:23 +0800 Subject: [PATCH] Fixed the license type Signed-off-by: Toomore Chiang --- jsonstruct/jsonstruct.go | 2 +- jsonstruct/jsonstruct_easyjson.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/jsonstruct/jsonstruct.go b/jsonstruct/jsonstruct.go index 5172106..a210675 100644 --- a/jsonstruct/jsonstruct.go +++ b/jsonstruct/jsonstruct.go @@ -74,7 +74,7 @@ type PhotosGetInfo struct { Photo struct { ID string `json:"id"` Dateuploaded string `json:"dateuploaded"` - License int64 `json:"license"` + License string `json:"license"` Media string `json:"media"` Orgformat string `json:"originalformat"` Orgsecret string `json:"originalsecret"` diff --git a/jsonstruct/jsonstruct_easyjson.go b/jsonstruct/jsonstruct_easyjson.go index 6fb2273..30d0c75 100644 --- a/jsonstruct/jsonstruct_easyjson.go +++ b/jsonstruct/jsonstruct_easyjson.go @@ -1514,7 +1514,7 @@ func (v *PhotosGetInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { func easyjson1c889379Decode2(in *jlexer.Lexer, out *struct { ID string `json:"id"` Dateuploaded string `json:"dateuploaded"` - License int64 `json:"license"` + License string `json:"license"` Media string `json:"media"` Orgformat string `json:"originalformat"` Orgsecret string `json:"originalsecret"` @@ -1567,7 +1567,7 @@ func easyjson1c889379Decode2(in *jlexer.Lexer, out *struct { case "dateuploaded": out.Dateuploaded = string(in.String()) case "license": - out.License = int64(in.Int64()) + out.License = string(in.String()) case "media": out.Media = string(in.String()) case "originalformat": @@ -1613,7 +1613,7 @@ func easyjson1c889379Decode2(in *jlexer.Lexer, out *struct { func easyjson1c889379Encode2(out *jwriter.Writer, in struct { ID string `json:"id"` Dateuploaded string `json:"dateuploaded"` - License int64 `json:"license"` + License string `json:"license"` Media string `json:"media"` Orgformat string `json:"originalformat"` Orgsecret string `json:"originalsecret"` @@ -1659,7 +1659,7 @@ func easyjson1c889379Encode2(out *jwriter.Writer, in struct { { const prefix string = ",\"license\":" out.RawString(prefix) - out.Int64(int64(in.License)) + out.String(string(in.License)) } { const prefix string = ",\"media\":"