tag.go 247 B

12345678910111213
  1. package models
  2. type Tag struct {
  3. ID uint64 `db:"id"`
  4. Tag string `db:"tag"`
  5. URL string `db:"url"`
  6. }
  7. type TagForm struct {
  8. ID uint64
  9. Tag string `form:"tag" validate:"required,max=255"`
  10. URL string `form:"url" validate:"required,max=255"`
  11. }