github.com/niko0xdev/gqlgen@v0.17.55-0.20240120102243-2ecff98c3e37/codegen/config/testdata/autobinding/chat/model.go (about)

     1  package chat
     2  
     3  import (
     4  	"time"
     5  )
     6  
     7  type Message struct {
     8  	ID        string    `json:"id"`
     9  	Text      string    `json:"text"`
    10  	CreatedBy string    `json:"createdBy"`
    11  	CreatedAt time.Time `json:"createdAt"`
    12  }
    13  
    14  type ProductSku string
    15  
    16  const (
    17  	ProductSkuTrial ProductSku = "Trial"
    18  )
    19  
    20  type ChatAPI struct {
    21  	ID string `json:"id"`
    22  }