美文网首页
gin添加swagger

gin添加swagger

作者: heliping_peter | 来源:发表于2021-11-04 16:33 被阅读0次

    1.使用url传参

    // @Param   planid     path    string     true        "plan id"
    // @Produce json
    // @Success 200 {string} Helloworld
    // @Router /operation/plan/{planid} [get]
    

    2.使用body传参

    //@Param   planresult     body    InformData     true    "planresult"
    // @Produce json
    // @Success 200 {string} Helloworld
    // @Router /inform/planresult [post]
    

    相关文章

      网友评论

          本文标题:gin添加swagger

          本文链接:https://www.haomeiwen.com/subject/dpskzltx.html