git.sr.ht/~sircmpwn/gqlgen@v0.0.0-20200522192042-c84d29a1c940/example/fileupload/model/generated.go (about) 1 // Code generated by git.sr.ht/~sircmpwn/gqlgen, DO NOT EDIT. 2 3 package model 4 5 import ( 6 "git.sr.ht/~sircmpwn/gqlgen/graphql" 7 ) 8 9 // The `File` type, represents the response of uploading a file. 10 type File struct { 11 ID int `json:"id"` 12 Name string `json:"name"` 13 Content string `json:"content"` 14 ContentType string `json:"contentType"` 15 } 16 17 // The `UploadFile` type, represents the request for uploading a file with certain payload. 18 type UploadFile struct { 19 ID int `json:"id"` 20 File graphql.Upload `json:"file"` 21 }