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

微服务中的实体是否可以抽离出一个项目,不用放到接口项目中? #50

Open
daofenglg opened this issue Jan 29, 2018 · 4 comments
Labels

Comments

@daofenglg
Copy link

image
上图在服务中调用另一个微服务时,报找不到实体类,下图是可以的
image

@fanliang11
Copy link
Owner

你添加引用了吗?或者把Memberp.Api.Model也拷贝BIN目录下了吗

@daofenglg
Copy link
Author

daofenglg commented Jan 29, 2018

引用已经添加下图是调用服务器文件目录
111
下图是调试出的信息
image

@phil-guo
Copy link
Contributor

可以的,我就是这么干的

@fanliang11
Copy link
Owner

接口拆分独立的Model需要添加model引用,以避免编译代理报错。

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

No branches or pull requests

3 participants