|
|
@ -48,7 +48,7 @@ void UserMgrService::chpasswd(shared_ptr<MsgProcessContext> cxt, int id, string |
|
|
|
|
|
|
|
void UserMgrService::changeUsrRoleType(shared_ptr<MsgProcessContext> cxt, int id, UsrRoleType roleType) { |
|
|
|
auto user = m_db->updateUserRoleType(id, roleType); |
|
|
|
APPCHECK(!user, err::kappe_user_not_exist, fmt::format("user {} not exist", id)); |
|
|
|
APPCHECK(user, err::kappe_user_not_exist, fmt::format("user {} not exist", id)); |
|
|
|
} |
|
|
|
|
|
|
|
void UserMgrService::addUser(shared_ptr<MsgProcessContext> cxt, string name, string passwd, UsrRoleType roleType) { //
|
|
|
@ -56,7 +56,7 @@ void UserMgrService::addUser(shared_ptr<MsgProcessContext> cxt, string name, str |
|
|
|
} |
|
|
|
void UserMgrService::delUser(shared_ptr<MsgProcessContext> cxt, int id) { |
|
|
|
auto user = m_db->delUser(id); |
|
|
|
APPCHECK(!user, err::kappe_user_not_exist, fmt::format("user {} not exist", id)); |
|
|
|
APPCHECK(user, err::kappe_user_not_exist, fmt::format("user {} not exist", id)); |
|
|
|
} |
|
|
|
|
|
|
|
void UserMgrService::updateUserName(shared_ptr<MsgProcessContext> cxt, int id, string name) { |
|
|
|