2022-10-28 02:31:39 +00:00
|
|
|
package model
|
|
|
|
|
2022-10-31 03:04:13 +00:00
|
|
|
type GetListRoleRequest struct {
|
|
|
|
Page int `json:"page"`
|
|
|
|
Limit int `json:"limit"`
|
|
|
|
Type string `json:"type"`
|
|
|
|
SupplierID string `json:"supplierId"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DetailRoleRequest struct {
|
|
|
|
ID string `json:"_id"`
|
|
|
|
}
|
|
|
|
|
2022-10-28 02:31:39 +00:00
|
|
|
type CreateRoleRequest struct {
|
2022-10-31 09:59:38 +00:00
|
|
|
Name string `json:"name"`
|
|
|
|
Code string `json:"code"`
|
|
|
|
Type string `json:"type"`
|
2022-11-02 07:56:58 +00:00
|
|
|
SupplierID string `json:"supplierId"`
|
2022-10-31 09:59:38 +00:00
|
|
|
Permissions []string `json:"permissions"`
|
2022-10-28 02:31:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateRoleRequest struct {
|
2022-10-31 09:59:38 +00:00
|
|
|
ID string `json:"_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Code string `json:"code"`
|
|
|
|
Type string `json:"type"`
|
2022-11-02 07:56:58 +00:00
|
|
|
SupplierID string `json:"supplierId"`
|
2022-10-31 09:59:38 +00:00
|
|
|
Permissions []string `json:"permissions"`
|
2022-10-28 02:31:39 +00:00
|
|
|
}
|