Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { ID int64 `gorm:"primaryKey" json:"id"` UserID uuid.UUID `gorm:"column:user_id" json:"userId"` Title string `gorm:"column:title" form:"title" json:"title" validate:"required,min=2,max=64"` Text string `gorm:"column:text" form:"text" json:"text" validate:"required,min=10,max=10000"` DateAdded time.Time `gorm:"column:date_added;type:timestamp(0) without time zone;autoCreateTime" json:"dateAdded"` }
type ArticleDto ¶
type Comment ¶
type Comment struct { ID int64 `gorm:"primaryKey" json:"id"` UserID uuid.UUID `gorm:"column:user_id" json:"userId"` ArticleID int64 `gorm:"column:article_id" form:"articleId" json:"articleId" validate:"required"` Body string `gorm:"column:body" form:"body" json:"body" validate:"required,min=1,max=512"` DateAdded time.Time `gorm:"column:date_added;type:timestamp(0) without time zone;autoCreateTime" json:"dateAdded"` }
type CommentDto ¶
type ResetPasswordToken ¶
type User ¶
type User struct { ID uuid.UUID `gorm:"primaryKey" json:"id"` Username string `gorm:"column:username;unique" form:"username" json:"username" validate:"required,min=3,max=20"` Email string `gorm:"column:email;unique" form:"email" json:"email" validate:"required,email"` Password string `gorm:"column:password" form:"password" json:"password" validate:"required,min=8,max=24"` Avatar string `gorm:"column:avatar" json:"avatar"` Activated bool `gorm:"column:activated" json:"activated"` ActivationLink *string `gorm:"column:activation_link;unique" json:"activationLink"` DateAdded time.Time `gorm:"column:date_added;type:timestamp(0) without time zone;autoCreateTime" json:"dateAdded"` }
Click to show internal directories.
Click to hide internal directories.