user.go 310 B

123456789101112131415161718
  1. package models
  2. import (
  3. "time"
  4. )
  5. type User struct {
  6. ID int
  7. Username string
  8. Password string
  9. CreatedAt time.Time
  10. UpdatedAt time.Time
  11. }
  12. type ChangePasswordForm struct {
  13. OldPassword string `form:"old_password" validate:"required"`
  14. NewPassword string `form:"new_password" validate:"required"`
  15. }