update roles

This commit is contained in:
2024-11-30 23:15:03 +07:00
parent 332993cda3
commit 5a3c355a5f
3 changed files with 4 additions and 2 deletions

View File

@ -243,6 +243,7 @@ export class UserRoleController {
}]
#swagger.requestBody = {
required: true,
description: "Fill field roles with id from API master data in api/menu/list",
content: {
"application/json": {
schema: {
@ -293,6 +294,7 @@ export class UserRoleController {
#swagger.requestBody = {
required: true,
description: "Fill field roles with id from API master data in api/menu/list",
content: {
"application/json": {
schema: {

View File

@ -24,7 +24,7 @@ export class RoutePrivate {
app.get('/api/user_role/list', UserRoleController.list)
app.get('/api/user_role/export', UserRoleController.export)
app.get('/api/user_role/role', UserRoleController.role)
// app.get('/api/user_role/role', UserRoleController.role)
app.post('/api/user_role/create', UserRoleController.create)
app.put('/api/user_role/update/:id', UserRoleController.update)
app.delete('/api/user_role/delete/:id', UserRoleController.delete)

View File

@ -39,7 +39,7 @@ const doc = {
},
user_role: {
$name: "Administrator",
$roles: ["dashboard"],
$roles: ["4a6991b6-78a0-4b3b-bf5c-fa0af5f69be8", "1a1221b6-78a0-4b3b-bf5c-fa0af5f69be8"],
$status: "Y"
},
user_activity: {