github.com/maeglindeveloper/gqlgen@v0.13.1-0.20210413081235-57808b12a0a0/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  	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  }