|
@@ -23,7 +23,7 @@ import ( |
|
|
// @Param req body interface{} true "任意参数" |
|
|
// @Param req body interface{} true "任意参数" |
|
|
// @Success 200 {object} map[string]interface{} "返回任意参数" |
|
|
// @Success 200 {object} map[string]interface{} "返回任意参数" |
|
|
// @Failure 400 {object} md.Response "具体错误" |
|
|
// @Failure 400 {object} md.Response "具体错误" |
|
|
// @Router /api/v1/test [POST] |
|
|
|
|
|
|
|
|
// @Router /api/v1/test [GET] |
|
|
func Demo(c *gin.Context) { |
|
|
func Demo(c *gin.Context) { |
|
|
var args interface{} |
|
|
var args interface{} |
|
|
if c.Request.Method == "GET" { |
|
|
if c.Request.Method == "GET" { |
|
|