Content.go 480 B

123456789101112131415161718192021
  1. package models
  2. import (
  3. "gorm.io/gorm"
  4. "html/template"
  5. )
  6. type Content struct {
  7. gorm.Model
  8. Title string `json:"title"`
  9. Detail template.HTML `json:"detail"`
  10. Synopsis string `json:"synopsis"`
  11. Types string `json:"types"`
  12. }
  13. type ContentDto struct {
  14. ID uint `json:"id"`
  15. Title string `json:"title"`
  16. Detail template.HTML `json:"detail"`
  17. Synopsis string `json:"synopsis"`
  18. Types string `json:"types"`
  19. }