20 lines
407 B
Go
20 lines
407 B
Go
package model
|
|
|
|
type GetListRoleResponse struct {
|
|
Roles []RoleBrief `json:"roles"`
|
|
Total int64 `json:"total"`
|
|
}
|
|
|
|
type RoleBrief struct {
|
|
ID string `json:"_id"`
|
|
Name string `json:"name"`
|
|
Code string `json:"code"`
|
|
Type string `json:"type"`
|
|
CreatedAt string `json:"createdAt"`
|
|
UpdatedAt string `json:"updatedAt"`
|
|
}
|
|
|
|
type CreateRoleResponse struct {
|
|
ID string `json:"_id"`
|
|
}
|