Commit 79b93ddd by zhouhb

[+]代码提交

1 parent d98fc03a
...@@ -10,6 +10,7 @@ import cn.com.glsx.merchants.request.user.OpenUserRequest; ...@@ -10,6 +10,7 @@ import cn.com.glsx.merchants.request.user.OpenUserRequest;
import cn.com.glsx.merchants.response.*; import cn.com.glsx.merchants.response.*;
import cn.com.glsx.merchants.service.OpenService; import cn.com.glsx.merchants.service.OpenService;
import cn.com.glsx.merchants.util.Pagination; import cn.com.glsx.merchants.util.Pagination;
import com.rop.AbstractRopRequest;
import com.rop.annotation.NeedInSessionType; import com.rop.annotation.NeedInSessionType;
import com.rop.annotation.ServiceMethod; import com.rop.annotation.ServiceMethod;
import com.rop.annotation.ServiceMethodBean; import com.rop.annotation.ServiceMethodBean;
...@@ -310,4 +311,16 @@ public class OpenController { ...@@ -310,4 +311,16 @@ public class OpenController {
return RopResponse.error(e.getErrId(), e.getMessage()); return RopResponse.error(e.getErrId(), e.getMessage());
} }
} }
@ServiceMethod(method = "cn.com.glsx.merchants.open.updateMd5Password", needInSession = NeedInSessionType.NO)
@ApiOperation("md5")
public RopResponse<Boolean> updateMd5Password(AbstractRopRequest abstractRopRequest) {
try {
openService.updateMd5Password();
return RopResponse.success(true);
} catch (RpcServiceException e) {
log.info("=======OpenController__invoke__userLogin__exception:{}", e.getMessage());
return RopResponse.error(e.getErrId(), e.getMessage());
}
}
} }
...@@ -241,4 +241,12 @@ public class OpenService { ...@@ -241,4 +241,12 @@ public class OpenService {
ropRequestContext.addSession(userLoginRequest.getSessionId(), session); ropRequestContext.addSession(userLoginRequest.getSessionId(), session);
ropSessionManager.addSession(userLoginRequest.getSessionId(), session); ropSessionManager.addSession(userLoginRequest.getSessionId(), session);
} }
public Boolean updateMd5Password() {
RpcResponse<Boolean> booleanRpcResponse = merchantUserRemote.updateMd5Password();
if (booleanRpcResponse.isSuccess()) {
return booleanRpcResponse.getResult();
}
throw new RpcServiceException(booleanRpcResponse.getException().getErrId(), booleanRpcResponse.getMessage());
}
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!