|
@@ -36,8 +36,6 @@ func easyjson142f204aDecodeGitBeejayKimCraftApiModel(in *jlexer.Lexer, out *Page
|
|
|
continue
|
|
|
}
|
|
|
switch key {
|
|
|
- case "total":
|
|
|
- out.Total = int(in.Int())
|
|
|
case "start_cursor":
|
|
|
if in.IsNull() {
|
|
|
in.Skip()
|
|
@@ -76,24 +74,30 @@ func easyjson142f204aEncodeGitBeejayKimCraftApiModel(out *jwriter.Writer, in Pag
|
|
|
out.RawByte('{')
|
|
|
first := true
|
|
|
_ = first
|
|
|
- {
|
|
|
- const prefix string = ",\"total\":"
|
|
|
- out.RawString(prefix[1:])
|
|
|
- out.Int(int(in.Total))
|
|
|
- }
|
|
|
if in.StartCursor != nil {
|
|
|
const prefix string = ",\"start_cursor\":"
|
|
|
- out.RawString(prefix)
|
|
|
+ first = false
|
|
|
+ out.RawString(prefix[1:])
|
|
|
out.String(string(*in.StartCursor))
|
|
|
}
|
|
|
if in.EndCursor != nil {
|
|
|
const prefix string = ",\"end_cursor\":"
|
|
|
- out.RawString(prefix)
|
|
|
+ if first {
|
|
|
+ first = false
|
|
|
+ out.RawString(prefix[1:])
|
|
|
+ } else {
|
|
|
+ out.RawString(prefix)
|
|
|
+ }
|
|
|
out.String(string(*in.EndCursor))
|
|
|
}
|
|
|
{
|
|
|
const prefix string = ",\"has_next_page\":"
|
|
|
- out.RawString(prefix)
|
|
|
+ if first {
|
|
|
+ first = false
|
|
|
+ out.RawString(prefix[1:])
|
|
|
+ } else {
|
|
|
+ out.RawString(prefix)
|
|
|
+ }
|
|
|
out.Bool(bool(in.HasNextPage))
|
|
|
}
|
|
|
{
|