post

package
v0.0.0-...-7f9097d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2018 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Create

type Create struct {
	AccountID uuid.UUID `json:"accountId"`
	Comment   string    `json:"comment"`
	Photos    []string  `json:"photos"`
	Rate      float64   `json:"rating"`
}

Create post create payload

type Media

type Media struct {
	User      account.Media `json:"user"`
	Comment   string        `json:"comment"`
	Rate      float64       `json:"rating"`
	Photo     string        `json:"photo"`
	CreatedAt time.Time     `json:"createdAt"`
}

Media post media

type Post

type Post struct {
	ID        uuid.UUID       `json:"id" gorm:"primary_key" sql:"type:uuid" name:"ID"`
	AccountID uuid.UUID       `json:"accountId" sql:"type:uuid" name:"アカウントID"`
	Comment   string          `json:"comment" name:"コメント"`
	Rate      sql.NullFloat64 `json:"rate" name:"レート"`
	CreatedBy uuid.UUID       `json:"createdBy" name:"作成者" sql:"type:uuid"`
	UpdatedBy uuid.UUID       `json:"updatedBy" name:"更新者" sql:"type:uuid"`
	CreatedAt time.Time       `json:"createdAt" name:"作成日"`
	UpdatedAt time.Time       `json:"updatedAt" name:"更新日"`
	DeletedAt *time.Time      `json:"deletedAt" name:"削除日"`
}

Post post

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL