123456789101112131415161718 |
- package models
- import (
- "time"
- )
- type User struct {
- ID int
- Username string
- Password string
- CreatedAt time.Time
- UpdatedAt time.Time
- }
- type ChangePasswordForm struct {
- OldPassword string `form:"old_password" validate:"required"`
- NewPassword string `form:"new_password" validate:"required"`
- }
|