2021-11-10 04:01:39 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
// User ...
|
|
|
|
type User struct {
|
2021-11-12 05:16:38 +00:00
|
|
|
ID string `json:"_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Phone string `json:"phone"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
Role RoleShort `json:"role"`
|
|
|
|
Other interface{} `json:"other"`
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
2021-11-10 04:01:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type (
|
|
|
|
// UserAll ...
|
|
|
|
UserAll struct {
|
|
|
|
List []User `json:"list"`
|
|
|
|
Total int64 `json:"total"`
|
2021-11-16 10:47:54 +00:00
|
|
|
Limit int64 `json:"limit"`
|
2021-11-10 04:01:39 +00:00
|
|
|
}
|
|
|
|
)
|