26 lines
506 B
Go
26 lines
506 B
Go
package model
|
|
|
|
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"`
|
|
}
|
|
|
|
type CreateRoleRequest struct {
|
|
Name string `json:"name"`
|
|
Code string `json:"code"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type UpdateRoleRequest struct {
|
|
ID string `json:"_id"`
|
|
Name string `json:"name"`
|
|
Code string `json:"code"`
|
|
Type string `json:"type"`
|
|
}
|