Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help wanted! Here are some simple tasks that can be handled🎉. #135

Open
7 of 10 tasks
crossoverJie opened this issue Jul 26, 2024 · 6 comments
Open
7 of 10 tasks
Labels
help wanted Extra attention is needed
Milestone

Comments

@crossoverJie
Copy link
Owner

crossoverJie commented Jul 26, 2024

I have created some help want label issue, welcome friends who are interested to contribute!

Pick your favorite(s) and then remind me.

Or if see any areas for improvement, feel free to submit a PR and submit🎉.

@crossoverJie crossoverJie changed the title Help wanted! Help wanted! Here are some simple tasks than can be handled. Jul 26, 2024
@crossoverJie crossoverJie added the help wanted Extra attention is needed label Jul 26, 2024
@baiyina
Copy link
Contributor

baiyina commented Jul 26, 2024

@crossoverJie I'd like to take care of the first one "Use @Slf4j instead of private final static Logger LOGGER"

@crossoverJie crossoverJie changed the title Help wanted! Here are some simple tasks than can be handled. Help wanted! Here are some simple tasks that can be handled. Jul 26, 2024
@crossoverJie crossoverJie added this to the 
v2.0.0 milestone Jul 30, 2024
@baiyina
Copy link
Contributor

baiyina commented Jul 30, 2024

@crossoverJie I'd like to take care of “Use application.yaml instead of application.properties.”

@crossoverJie crossoverJie pinned this issue Jul 30, 2024
@crossoverJie crossoverJie changed the title Help wanted! Here are some simple tasks that can be handled. Help wanted! Here are some simple tasks that can be handled🎉. Jul 31, 2024
@cmgyqjj
Copy link
Contributor

cmgyqjj commented Sep 17, 2024

@crossoverJie I'd like to take care of "Use Spring IOC to refactor ProxyManager". I've noticed that ProxyManager has been deprecated in the latest branch. Are you referring to RPCProxyManager instead?
If I have understood the requirements correctly, we can add the injection of the corresponding API proxy objects under the BeanConfig in both cim-server and cim-client. Additionally, we should modify the invocation points to use injected instances instead of directly calling the create method. This approach will leverage the Spring IOC container to manage the lifecycle and dependencies of these proxy objects, ensuring a more maintainable and testable codebase.


@crossoverJie
Copy link
Owner Author

If I have understood the requirements correctly, we can add the injection of the corresponding API proxy objects under the BeanConfig in both cim-server and cim-client

Please update the latest code, the core logic of cim-client has been implemented by the cim-client-sdk, and currently only the route and server are directly using RpcProxyManager:

RouteApi routeApi = RpcProxyManager.create(RouteApi.class, configuration.getRouteUrl(), okHttpClient);
ChatReqVO vo = new ChatReqVO(userInfo.getUserId(), userInfo.getUserName());
routeApi.offLine(vo);

String url = "http://" + cimServerResVO.getIp() + ":" + cimServerResVO.getHttpPort();
ServerApi serverApi = RpcProxyManager.create(ServerApi.class, url, okHttpClient);
SendMsgReqVO vo = new SendMsgReqVO(cimUserInfo.getUserName() + ":" + groupReqVO.getMsg(), groupReqVO.getUserId());
serverApi.sendMsg(vo);

@cmgyqjj
Copy link
Contributor

cmgyqjj commented Sep 18, 2024

Please update the latest code, the core logic of cim-client has been implemented by the cim-client-sdk, and currently only the route and server are directly using RpcProxyManager:

String url = "http://" + cimServerResVO.getIp() + ":" + cimServerResVO.getHttpPort();
ServerApi serverApi = RpcProxyManager.create(ServerApi.class, url, okHttpClient);
SendMsgReqVO vo = new SendMsgReqVO(cimUserInfo.getUserName() + ":" + groupReqVO.getMsg(), groupReqVO.getUserId());
serverApi.sendMsg(vo);

Thank you for your response. In the route module, I've noticed that RpcProxyManager.create(ServerApi.class, url, okHttpClient); cannot be simply managed by IOC, as the url is a variable parameter. Is it necessary to implement with a FactoryBean? Or have I misunderstood the requirements?

@crossoverJie
Copy link
Owner Author

Thank you for your response. In the route module, I've noticed that RpcProxyManager.create(ServerApi.class, url, okHttpClient); cannot be simply managed by IOC, as the url is a variable parameter. Is it necessary to implement with a FactoryBean? Or have I misunderstood the requirements?

I have created a PR that can use dynamic url for a request #151.

Please update the latest code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants