natsio/model/supplier_role_request.go

26 lines
506 B
Go
Raw Normal View History

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 {
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"`
}