github.com/k0marov/go-socnet@v0.0.0-20220715154813-90d07867c782/features/posts/domain/values/values.go (about)

     1  package values
     2  
     3  import (
     4  	"github.com/k0marov/go-socnet/core/general/core_values"
     5  )
     6  
     7  type PostId = string
     8  
     9  type NewPostData struct {
    10  	Author core_values.UserId
    11  	Text   string
    12  	Images []PostImageFile
    13  }
    14  
    15  type PostImageFile struct {
    16  	File  core_values.FileData
    17  	Index int
    18  }
    19  
    20  type PostImage struct {
    21  	URL   core_values.FileURL
    22  	Index int
    23  }