|
|
@@ -20,10 +20,10 @@ import ( |
|
|
|
// @Description Demo样例测试 |
|
|
|
// @Accept json |
|
|
|
// @Produce json |
|
|
|
// @Param req body interface{} true "用户名密码" |
|
|
|
// @Success 200 {object} map[string]interface{} "token" |
|
|
|
// @Param req body interface{} true "任意参数" |
|
|
|
// @Success 200 {object} map[string]interface{} "返回任意参数" |
|
|
|
// @Failure 400 {object} md.Response "具体错误" |
|
|
|
// @Router /api/v1/demo [post] |
|
|
|
// @Router /api/v1/test [POST] |
|
|
|
func Demo(c *gin.Context) { |
|
|
|
var args interface{} |
|
|
|
if c.Request.Method == "GET" { |
|
|
|