| | |
| | | Content string `gorm:"type:text" json:"content"` |
| | | CreatedAt time.Time `json:"created_at"` |
| | | } |
| | | |
| | | // PasswordResetRequest 用户找回密码申请(客户端提交,管理员在后台同意并重置) |
| | | type PasswordResetRequest struct { |
| | | ID uint `gorm:"primaryKey" json:"id"` |
| | | Phone string `gorm:"size:20;index" json:"phone"` |
| | | ProposedPwd string `gorm:"size:20" json:"proposed_password"` // 用户期望的新密码(管理员同意后默认采用) |
| | | Status int `gorm:"default:0" json:"status"` // 0待处理 1已同意 |
| | | NewPwd string `gorm:"size:20" json:"new_password"` // 同意时实际设置的新密码(明文,便于管理员告知用户) |
| | | HandledAt *time.Time `json:"handled_at"` |
| | | CreatedAt time.Time `json:"created_at"` |
| | | } |