package dto // LoginRequest 登录请求 // Logan.Li type LoginRequest struct { Username string `json:"username" binding:"required"` Password string `json:"password" binding:"required"` } // LoginResponse 登录响应 // Logan.Li type LoginResponse struct { Token string `json:"token"` UserInfo UserInfoResponse `json:"user_info"` } // UserInfoResponse 用户信息响应 // Logan.Li type UserInfoResponse struct { ID uint `json:"id"` Username string `json:"username"` Email string `json:"email"` Avatar string `json:"avatar"` Role string `json:"role"` } // ChangePasswordRequest 修改密码请求 // Logan.Li type ChangePasswordRequest struct { OldPassword string `json:"old_password" binding:"required"` NewPassword string `json:"new_password" binding:"required,min=6"` }