github.com/fortexxx/gqlgen@v0.10.3-0.20191216030626-ca5ea8b21ead/example/fileupload/model/generated.go (about)

     1  // Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
     2  
     3  package model
     4  
     5  import (
     6  	"github.com/99designs/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  }
    15  
    16  // The `UploadFile` type, represents the request for uploading a file with certain payload.
    17  type UploadFile struct {
    18  	ID   int            `json:"id"`
    19  	File graphql.Upload `json:"file"`
    20  }