moment

package
v0.0.0-...-418b934 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Moment

type Moment struct {
	entity.Base
	EntityID      uuid.UUID `gorm:"not null;index:entityID"`
	Title         string
	Message       string
	ImageURLs     []string    `gorm:"type:text[]"`
	VideoURLs     []string    `gorm:"type:text[]"`
	LikedEntities []uuid.UUID `gorm:"type:UUID[]"`

	Replies []*Reply
}

Moment entity

func (*Moment) MarshalBinary

func (m *Moment) MarshalBinary() ([]byte, error)

MarshalBinary for redis

func (*Moment) ToDTO

func (m *Moment) ToDTO() *module.MomentDTO

ToDTO dto

func (*Moment) UnmarshalBinary

func (m *Moment) UnmarshalBinary(data []byte) error

UnmarshalBinary for redis

type Reply

type Reply struct {
	entity.Base
	EntityID  uuid.UUID `gorm:"not null;index:entityID"`
	Message   string    `gorm:"not null"`
	ImageURLs []string  `gorm:"type:text[]"`
	VideoURLs []string  `gorm:"type:text[]"`
}

Reply entity

func (*Reply) MarshalBinary

func (r *Reply) MarshalBinary() ([]byte, error)

MarshalBinary for redis

func (*Reply) ToDTO

func (r *Reply) ToDTO() *module.ReplyDTO

ToDTO dto

func (*Reply) UnmarshalBinary

func (r *Reply) UnmarshalBinary(data []byte) error

UnmarshalBinary for redis

Jump to

Keyboard shortcuts

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