2024-01-02 15:35:26 +00:00
|
|
|
package entity
|
|
|
|
|
|
|
|
type Admin struct {
|
2024-01-19 16:56:11 +00:00
|
|
|
ID uint
|
|
|
|
FirstName string
|
|
|
|
LastName string
|
|
|
|
password string
|
|
|
|
PhoneNumber string
|
|
|
|
Role AdminRole
|
|
|
|
Description string
|
|
|
|
Email string
|
|
|
|
Gender Gender
|
|
|
|
Status AdminStatus
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *Admin) GetPassword() string {
|
|
|
|
return a.password
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *Admin) SetPassword(password string) {
|
|
|
|
a.password = password
|
2024-01-02 15:35:26 +00:00
|
|
|
}
|