gin添加swagger

2021-11-04  本文已影响0人  heliping_peter

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]
上一篇下一篇

猜你喜欢

热点阅读