Authorization: ********************{
"id": 2,
"name": "运营专员",
"code": "operator",
"parent_id": 1,
"sort": 1,
"status": 1
}curl --location '/admin/role/update' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": 2,
"name": "运营专员",
"code": "operator",
"parent_id": 1,
"sort": 1,
"status": 1
}'{
"code": 0,
"msg": "success",
"data": {
"id": 1,
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z",
"name": "运营专员",
"code": "operator",
"parent_id": 0,
"sort": 0,
"status": 1,
"remark": "string"
}
}