d32c3d0fa8
modelHelper for getting value from request and apply it to a Form Getting value from a Form and apply to a Model
18 lignes
427 o
Go
18 lignes
427 o
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Comment is a comment model.
|
|
type Comment struct {
|
|
Id int `json:"id"`
|
|
Content string `json:"content"`
|
|
UserId int `json:"userId"`
|
|
TorrentId int
|
|
// LikingCount int `json:"likingCount"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
DeletedAt time.Time `json:"deletedAt"`
|
|
User User `json:"user"`
|
|
}
|