usermngmt/model/role_response.go

34 lines
629 B
Go
Raw Normal View History

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"`
2021-11-19 02:59:33 +00:00
Level int `json:"level"`
2021-11-10 01:44:22 +00:00
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"`
2021-11-12 05:16:38 +00:00
Level int `json:"level"`
2021-11-10 07:50:43 +00:00
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"`
2021-11-16 10:47:54 +00:00
Limit int64 `json:"limit"`
2021-11-10 07:50:43 +00:00
}
)