tag.go 363 B

12345678910111213141516171819202122
  1. package models
  2. import "time"
  3. type Tag struct {
  4. ID uint64 `db:"id"`
  5. Title string `db:"title"`
  6. Style string `db:"style"`
  7. CreatedAt time.Time `db:"created_at"`
  8. UpdatedAt time.Time `db:"updated_at"`
  9. }
  10. type AddTagRequest struct {
  11. Title string
  12. Style string
  13. }
  14. type UpdateTagRequest struct {
  15. ID uint64
  16. Title string
  17. Style string
  18. }