2021-11-10 02:54:49 +00:00
|
|
|
package model
|
2021-11-10 01:44:22 +00:00
|
|
|
|
2021-11-10 07:50:43 +00:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2021-11-10 04:42:23 +00:00
|
|
|
// RoleShort ...
|
2021-11-10 01:44:22 +00:00
|
|
|
type RoleShort struct {
|
|
|
|
ID string `json:"_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
IsAdmin bool `json:"isAdmin"`
|
2021-11-10 05:07:58 +00:00
|
|
|
}
|
2021-11-10 07:50:43 +00:00
|
|
|
|
|
|
|
// Role ...
|
|
|
|
type Role struct {
|
|
|
|
ID string `json:"_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Code string `json:"code"`
|
|
|
|
IsAdmin bool `json:"isAdmin"`
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type (
|
|
|
|
// RoleAll ...
|
|
|
|
RoleAll struct {
|
|
|
|
List []Role `json:"list"`
|
|
|
|
Total int64 `json:"total"`
|
|
|
|
}
|
|
|
|
)
|