Giter Site home page Giter Site logo

Comments (10)

caspar-chen avatar caspar-chen commented on July 30, 2024

可以是用@ApiOperation注解的response参数来指定文档返回的类型,
例如返回User类: @ApiOperation(response = User.class)
User 类里面的属性用@ApiModelProperty注解
@ApiModelProperty("姓名")
private String name;

from swagger-ui-layer.

youz88 avatar youz88 commented on July 30, 2024

主要是嵌套对象的问题,我全局统一返回的是一个Result对象,这个对象里包含code、msg、真正返回的实体对象T。我希望能实现这种效果(以下是同样的代码)

springfox-swagger-ui
1
swagger-ui-layer
2

from swagger-ui-layer.

caspar-chen avatar caspar-chen commented on July 30, 2024

理解了,返回对象里面包括了引用对象,这个功能会在之后的版本里体现

from swagger-ui-layer.

dada0901 avatar dada0901 commented on July 30, 2024

@youz88 我也遇到类似的问题,请问最后怎样解决的?

from swagger-ui-layer.

caspar-chen avatar caspar-chen commented on July 30, 2024

感谢反馈,0.0.5 版本已经解决了这个问题,可以显示任意层嵌套对象的属性

from swagger-ui-layer.

mengxuef avatar mengxuef commented on July 30, 2024

今天刚刚也遇到这个问题,google到这里 ,直接就解决了,swagger 太强大了

from swagger-ui-layer.

ronghuaxueleng avatar ronghuaxueleng commented on July 30, 2024

这个是怎么解决的?

from swagger-ui-layer.

hzwjs avatar hzwjs commented on July 30, 2024

如何 解决了的?

from swagger-ui-layer.

zhourui9797 avatar zhourui9797 commented on July 30, 2024

如何解决的

from swagger-ui-layer.

caspar-chen avatar caspar-chen commented on July 30, 2024

用新版本就可以了: 1.1.3

from swagger-ui-layer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.