2022-10-28 02:31:39 +00:00
|
|
|
package model
|
|
|
|
|
2022-10-31 03:04:13 +00:00
|
|
|
type GetListRoleResponse struct {
|
|
|
|
Roles []RoleBrief `json:"roles"`
|
|
|
|
Total int64 `json:"total"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type RoleBrief struct {
|
2022-11-02 07:56:58 +00:00
|
|
|
ID string `json:"_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Code string `json:"code"`
|
|
|
|
Type string `json:"type"`
|
|
|
|
Permissions []PermissionShort `json:"permissions"`
|
|
|
|
SupplierId string `json:"supplierId"`
|
|
|
|
CreatedAt string `json:"createdAt"`
|
|
|
|
UpdatedAt string `json:"updatedAt"`
|
2022-10-31 03:04:13 +00:00
|
|
|
}
|
|
|
|
|
2022-10-28 02:31:39 +00:00
|
|
|
type CreateRoleResponse struct {
|
|
|
|
ID string `json:"_id"`
|
|
|
|
}
|
2022-11-01 04:40:37 +00:00
|
|
|
|
|
|
|
type RoleShort struct {
|
2022-11-02 07:56:58 +00:00
|
|
|
ID string `json:"_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Code string `json:"code"`
|
|
|
|
Type string `json:"type"`
|
|
|
|
SupplierId string `json:"supplierId"`
|
2022-11-01 04:40:37 +00:00
|
|
|
}
|