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
feb3802f
Commit
feb3802f
authored
Jul 01, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
ef12f280
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
33 deletions
+23
-33
esign-merchant/app/base/controller/impl/uc/userCtl.js
+15
-33
esign-merchant/app/base/service/impl/uc/userSve.js
+8
-0
No files found.
esign-merchant/app/base/controller/impl/uc/userCtl.js
View file @
feb3802f
...
@@ -46,37 +46,6 @@ class UserCtl extends CtlBase {
...
@@ -46,37 +46,6 @@ class UserCtl extends CtlBase {
return
loginsid
;
return
loginsid
;
}
}
getMenu
(
loginUser
)
{
if
(
!
loginUser
)
{
return
[];
}
return
[{
"name"
:
"数据概览"
,
"icon"
:
"iconfont icon-gth-gsshujugailan"
,
"team"
:
[{
"name"
:
"业务数据汇总"
,
"path"
:
"/home"
}]
},
{
"name"
:
"订单中心"
,
"icon"
:
"iconfont icon-gth-gsdingdanzhongxin"
,
"team"
:
[{
"name"
:
"订单管理"
,
"path"
:
"/trading/ordersAll"
},
]
},
{
"name"
:
"个体户中心"
,
"icon"
:
"iconfont icon-gth-gsgetihuzhongxin"
,
"team"
:
[{
"name"
:
"个体户管理"
,
"path"
:
"/trading/userInformation"
},
]
},
];
}
async
currentUser
(
qobj
,
pobj
,
req
)
{
async
currentUser
(
qobj
,
pobj
,
req
)
{
return
system
.
getResultSuccess
(
this
.
loginDTO
(
req
.
loginUser
));
return
system
.
getResultSuccess
(
this
.
loginDTO
(
req
.
loginUser
));
}
}
...
@@ -105,9 +74,22 @@ class UserCtl extends CtlBase {
...
@@ -105,9 +74,22 @@ class UserCtl extends CtlBase {
}
}
}
}
async
delUser
(
params
,
pobj2
,
req
)
{
async
resetPassword
(
params
,
pobj2
,
req
)
{
try
{
try
{
return
await
this
.
userSve
.
delUser
(
params
);
let
p
=
{
id
:
req
.
loginUser
.
id
,
uctype_id
:
params
.
uctype_id
,
oldPassword
:
this
.
trim
(
params
.
oldPassword
),
newPassword
:
this
.
trim
(
params
.
newPassword
),
newPasswordConfirm
:
this
.
trim
(
params
.
newPasswordConfirm
),
};
if
(
!
p
.
newPassword
)
{
return
system
.
getResult
(
null
,
"修改密码失败,新密码不能为空"
);
}
if
(
p
.
newPassword
!=
p
.
newPasswordConfirm
)
{
return
system
.
getResult
(
null
,
"修改密码失败,两次密码输入不一致"
);
}
return
await
this
.
userSve
.
resetPassword
(
p
);
}
catch
(
error
)
{
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
...
...
esign-merchant/app/base/service/impl/uc/userSve.js
View file @
feb3802f
...
@@ -38,6 +38,14 @@ class UserService extends ServiceBase {
...
@@ -38,6 +38,14 @@ class UserService extends ServiceBase {
}
}
}
}
async
resetPassword
(
params
)
{
try
{
return
await
this
.
callms
(
"sve_uc"
,
"userResetPassword"
,
params
);
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
async
mapByIds
(
params
)
{
async
mapByIds
(
params
)
{
try
{
try
{
return
await
this
.
callms
(
"sve_uc"
,
"userMapByIds"
,
params
);
return
await
this
.
callms
(
"sve_uc"
,
"userMapByIds"
,
params
);
...
...
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