Skip to content

[Question] How to obtain information about App objects in the data, service, and biz layers in the project #3614

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

Open
windzhu0514 opened this issue Apr 7, 2025 · 1 comment
Labels
question Further information is requested

Comments

@windzhu0514
Copy link
Contributor

app.og#App 对象实现了 AppInfo 接口,并且通过 context 传递了 App 对象,服务侧的 handler 都可以通过 AppInfo 接口拿到 app 数据。
项目中的data、service、biz层如何获取App对象的信息?是否考虑 app 对象设计成全局对象?

@windzhu0514 windzhu0514 added the question Further information is requested label Apr 7, 2025
@kratos-ci-bot kratos-ci-bot changed the title [Question] 项目中的data、service、biz层如何获取App对象的信息 [Question] How to obtain information about App objects in the data, service, and biz layers in the project Apr 7, 2025
@kratos-ci-bot
Copy link
Collaborator

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


The app.og#App object implements the AppInfo interface and passes the App object through context. The handler on the service side can get the app data through the AppInfo interface.
How to obtain information about App objects in the data, service, and biz layers in the project? Are you considering the design of app objects as global objects?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants