You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1315 lines
27 KiB

// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
package auxpi
import (
json "encoding/json"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
)
// suppress unused package warning
var (
_ *json.RawMessage
_ *jlexer.Lexer
_ *jwriter.Writer
_ easyjson.Marshaler
)
func easyjsonB926644bDecodeAuxpiAuxpiAll(in *jlexer.Lexer, out *picInfo) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "width":
out.Width = int(in.Int())
case "size":
out.Size = int(in.Int())
case "ret":
out.Ret = int(in.Int())
case "height":
out.Height = int(in.Int())
case "name":
out.Name = string(in.String())
case "pid":
out.Pid = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonB926644bEncodeAuxpiAuxpiAll(out *jwriter.Writer, in picInfo) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"width\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int(int(in.Width))
}
{
const prefix string = ",\"size\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int(int(in.Size))
}
{
const prefix string = ",\"ret\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int(int(in.Ret))
}
{
const prefix string = ",\"height\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int(int(in.Height))
}
{
const prefix string = ",\"name\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name))
}
{
const prefix string = ",\"pid\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Pid))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v picInfo) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonB926644bEncodeAuxpiAuxpiAll(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v picInfo) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonB926644bEncodeAuxpiAuxpiAll(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *picInfo) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonB926644bDecodeAuxpiAuxpiAll(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *picInfo) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonB926644bDecodeAuxpiAuxpiAll(l, v)
}
func easyjsonB926644bDecodeAuxpiAuxpiAll1(in *jlexer.Lexer, out *fileData) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "name":
out.Name = string(in.String())
case "url":
out.Url = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonB926644bEncodeAuxpiAuxpiAll1(out *jwriter.Writer, in fileData) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"name\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Name))
}
{
const prefix string = ",\"url\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Url))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v fileData) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonB926644bEncodeAuxpiAuxpiAll1(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v fileData) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonB926644bEncodeAuxpiAuxpiAll1(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *fileData) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonB926644bDecodeAuxpiAuxpiAll1(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *fileData) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonB926644bDecodeAuxpiAuxpiAll1(l, v)
}
func easyjsonB926644bDecodeAuxpiAuxpiAll2(in *jlexer.Lexer, out *UploadConfig) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "local_store":
out.LocalStore = bool(in.Bool())
case "open_sina_pic_store":
out.OpenSinaPicStore = bool(in.Bool())
case "sina_account":
(out.SinaAccount).UnmarshalEasyJSON(in)
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonB926644bEncodeAuxpiAuxpiAll2(out *jwriter.Writer, in UploadConfig) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"local_store\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.LocalStore))
}
{
const prefix string = ",\"open_sina_pic_store\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.OpenSinaPicStore))
}
{
const prefix string = ",\"sina_account\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.SinaAccount).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v UploadConfig) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonB926644bEncodeAuxpiAuxpiAll2(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v UploadConfig) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonB926644bEncodeAuxpiAuxpiAll2(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *UploadConfig) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonB926644bDecodeAuxpiAuxpiAll2(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *UploadConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonB926644bDecodeAuxpiAuxpiAll2(l, v)
}
func easyjsonB926644bDecodeAuxpiAuxpiAll3(in *jlexer.Lexer, out *SmResponse) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "code":
out.Code = string(in.String())
case "data":
(out.Data).UnmarshalEasyJSON(in)
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonB926644bEncodeAuxpiAuxpiAll3(out *jwriter.Writer, in SmResponse) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"code\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Code))
}
{
const prefix string = ",\"data\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Data).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SmResponse) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonB926644bEncodeAuxpiAuxpiAll3(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SmResponse) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonB926644bEncodeAuxpiAuxpiAll3(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SmResponse) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonB926644bDecodeAuxpiAuxpiAll3(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SmResponse) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonB926644bDecodeAuxpiAuxpiAll3(l, v)
}
func easyjsonB926644bDecodeAuxpiAuxpiAll4(in *jlexer.Lexer, out *SmData) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "width":
out.Width = int(in.Int())
case "height":
out.Height = int(in.Int())
case "filename":
out.Filename = string(in.String())
case "storename":
out.Storename = string(in.String())
case "size":
out.Size = int(in.Int())
case "path":
out.Path = string(in.String())
case "hash":
out.Hash = string(in.String())
case "timestamp":
out.Timestamp = int(in.Int())
case "ip":
out.Ip = string(in.String())
case "url":
out.Url = string(in.String())
case "delete":
out.Delete = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonB926644bEncodeAuxpiAuxpiAll4(out *jwriter.Writer, in SmData) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"width\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int(int(in.Width))
}
{
const prefix string = ",\"height\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int(int(in.Height))
}
{
const prefix string = ",\"filename\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Filename))
}
{
const prefix string = ",\"storename\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Storename))
}
{
const prefix string = ",\"size\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int(int(in.Size))
}
{
const prefix string = ",\"path\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Path))
}
{
const prefix string = ",\"hash\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Hash))
}
{
const prefix string = ",\"timestamp\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int(int(in.Timestamp))
}
{
const prefix string = ",\"ip\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Ip))
}
{
const prefix string = ",\"url\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Url))
}
{
const prefix string = ",\"delete\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Delete))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SmData) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonB926644bEncodeAuxpiAuxpiAll4(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SmData) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonB926644bEncodeAuxpiAuxpiAll4(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SmData) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonB926644bDecodeAuxpiAuxpiAll4(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SmData) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonB926644bDecodeAuxpiAuxpiAll4(l, v)
}
func easyjsonB926644bDecodeAuxpiAuxpiAll5(in *jlexer.Lexer, out *SiteConfig) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "site_name":
out.SiteName = string(in.String())
case "site_footer":
out.SiteFooter = string(in.String())
case "site_url":
out.SiteUrl = string(in.String())
case "site_upload_max_number":
out.SiteUploadMaxNumber = int(in.Int())
case "site_up_load_max_size":
out.SiteUpLoadMaxSize = int64(in.Int64())
case "open_api_up_load":
out.OpenApiUpLoad = bool(in.Bool())
case "api_token":
out.ApiToken = string(in.String())
case "api_default":
out.ApiDefault = string(in.String())
case "cache_config":
out.CacheConfig = bool(in.Bool())
case "site_upload_way":
(out.SiteUploadWay).UnmarshalEasyJSON(in)
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonB926644bEncodeAuxpiAuxpiAll5(out *jwriter.Writer, in SiteConfig) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"site_name\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SiteName))
}
{
const prefix string = ",\"site_footer\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SiteFooter))
}
{
const prefix string = ",\"site_url\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.SiteUrl))
}
{
const prefix string = ",\"site_upload_max_number\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int(int(in.SiteUploadMaxNumber))
}
{
const prefix string = ",\"site_up_load_max_size\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int64(int64(in.SiteUpLoadMaxSize))
}
{
const prefix string = ",\"open_api_up_load\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.OpenApiUpLoad))
}
{
const prefix string = ",\"api_token\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ApiToken))
}
{
const prefix string = ",\"api_default\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ApiDefault))
}
{
const prefix string = ",\"cache_config\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Bool(bool(in.CacheConfig))
}
{
const prefix string = ",\"site_upload_way\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.SiteUploadWay).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SiteConfig) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonB926644bEncodeAuxpiAuxpiAll5(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SiteConfig) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonB926644bEncodeAuxpiAuxpiAll5(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SiteConfig) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonB926644bDecodeAuxpiAuxpiAll5(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SiteConfig) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonB926644bDecodeAuxpiAuxpiAll5(l, v)
}
func easyjsonB926644bDecodeAuxpiAuxpiAll6(in *jlexer.Lexer, out *SinaPics) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "pic_1":
(out.Pic_1).UnmarshalEasyJSON(in)
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonB926644bEncodeAuxpiAuxpiAll6(out *jwriter.Writer, in SinaPics) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"pic_1\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Pic_1).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SinaPics) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonB926644bEncodeAuxpiAuxpiAll6(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SinaPics) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonB926644bEncodeAuxpiAuxpiAll6(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SinaPics) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonB926644bDecodeAuxpiAuxpiAll6(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SinaPics) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonB926644bDecodeAuxpiAuxpiAll6(l, v)
}
func easyjsonB926644bDecodeAuxpiAuxpiAll7(in *jlexer.Lexer, out *SinaMsg) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "code":
out.Code = string(in.String())
case "data":
(out.Data).UnmarshalEasyJSON(in)
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonB926644bEncodeAuxpiAuxpiAll7(out *jwriter.Writer, in SinaMsg) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"code\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Code))
}
{
const prefix string = ",\"data\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Data).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SinaMsg) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonB926644bEncodeAuxpiAuxpiAll7(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SinaMsg) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonB926644bEncodeAuxpiAuxpiAll7(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SinaMsg) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonB926644bDecodeAuxpiAuxpiAll7(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SinaMsg) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonB926644bDecodeAuxpiAuxpiAll7(l, v)
}
func easyjsonB926644bDecodeAuxpiAuxpiAll8(in *jlexer.Lexer, out *SinaData) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "count":
out.Count = int(in.Int())
case "data":
out.Data = string(in.String())
case "pics":
(out.Pics).UnmarshalEasyJSON(in)
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonB926644bEncodeAuxpiAuxpiAll8(out *jwriter.Writer, in SinaData) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"count\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int(int(in.Count))
}
{
const prefix string = ",\"data\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Data))
}
{
const prefix string = ",\"pics\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Pics).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SinaData) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonB926644bEncodeAuxpiAuxpiAll8(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SinaData) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonB926644bEncodeAuxpiAuxpiAll8(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SinaData) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonB926644bDecodeAuxpiAuxpiAll8(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SinaData) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonB926644bDecodeAuxpiAuxpiAll8(l, v)
}
func easyjsonB926644bDecodeAuxpiAuxpiAll9(in *jlexer.Lexer, out *ResultJson) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "code":
out.Code = int(in.Int())
case "msg":
out.Msg = string(in.String())
case "data":
(out.Data).UnmarshalEasyJSON(in)
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonB926644bEncodeAuxpiAuxpiAll9(out *jwriter.Writer, in ResultJson) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"code\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int(int(in.Code))
}
{
const prefix string = ",\"msg\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Msg))
}
{
const prefix string = ",\"data\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(in.Data).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v ResultJson) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonB926644bEncodeAuxpiAuxpiAll9(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v ResultJson) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonB926644bEncodeAuxpiAuxpiAll9(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *ResultJson) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonB926644bDecodeAuxpiAuxpiAll9(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ResultJson) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonB926644bDecodeAuxpiAuxpiAll9(l, v)
}
func easyjsonB926644bDecodeAuxpiAuxpiAll10(in *jlexer.Lexer, out *ErrorJson) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "code":
out.Code = int(in.Int())
case "msg":
out.Msg = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonB926644bEncodeAuxpiAuxpiAll10(out *jwriter.Writer, in ErrorJson) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"code\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int(int(in.Code))
}
{
const prefix string = ",\"msg\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.Msg))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v ErrorJson) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonB926644bEncodeAuxpiAuxpiAll10(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v ErrorJson) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonB926644bEncodeAuxpiAuxpiAll10(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *ErrorJson) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonB926644bDecodeAuxpiAuxpiAll10(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ErrorJson) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonB926644bDecodeAuxpiAuxpiAll10(l, v)
}
func easyjsonB926644bDecodeAuxpiAuxpiAll11(in *jlexer.Lexer, out *Account) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "user_name":
out.UserName = string(in.String())
case "pass_word":
out.PassWord = string(in.String())
case "reset_sina_cookie_time":
out.ResetSinaCookieTime = int(in.Int())
case "defult_pic_size":
out.DefultPicSize = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonB926644bEncodeAuxpiAuxpiAll11(out *jwriter.Writer, in Account) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"user_name\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.UserName))
}
{
const prefix string = ",\"pass_word\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.PassWord))
}
{
const prefix string = ",\"reset_sina_cookie_time\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Int(int(in.ResetSinaCookieTime))
}
{
const prefix string = ",\"defult_pic_size\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.DefultPicSize))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v Account) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonB926644bEncodeAuxpiAuxpiAll11(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v Account) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonB926644bEncodeAuxpiAuxpiAll11(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *Account) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonB926644bDecodeAuxpiAuxpiAll11(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *Account) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonB926644bDecodeAuxpiAuxpiAll11(l, v)
}