user.go 360 B

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