Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
51ff2f22
Commit
51ff2f22
authored
Apr 29, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
fb5f81e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
center-manage/app/base/controller/ctl.base.js
+4
-0
center-manage/app/base/controller/impl/auth/roleCtl.js
+4
-0
No files found.
center-manage/app/base/controller/ctl.base.js
View file @
51ff2f22
...
...
@@ -15,6 +15,10 @@ class CtlBase {
const
up
=
await
this
.
service
.
update
(
pobj
);
return
system
.
getResult
(
up
);
}
async
create
(
pobj
,
qobj
,
req
)
{
const
up
=
await
this
.
service
.
create
(
pobj
);
return
system
.
getResult
(
up
);
}
async
delete
(
pobj
,
qobj
,
req
)
{
const
up
=
await
this
.
service
.
delete
(
pobj
);
return
system
.
getResult
(
up
);
...
...
center-manage/app/base/controller/impl/auth/roleCtl.js
View file @
51ff2f22
...
...
@@ -15,5 +15,9 @@ class RoleCtl extends CtlBase {
rtn
.
roles
=
[];
return
system
.
getResultSuccess
(
rtn
);
}
async
create
(
pobj
,
queryobj
,
req
)
{
let
r
=
await
super
.
create
(
pobj
,
queryobj
,
req
)
return
system
.
getResult
(
r
);
}
}
module
.
exports
=
RoleCtl
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment