554325746@qq.com
2019-12-23 0222e79afe45d9fc55aed9a7e62ca239c228ab73
controllers/sdk.go
@@ -5,7 +5,7 @@
   uuid "github.com/satori/go.uuid"
   "webserver/extend/code"
   "webserver/extend/config"
   "webserver/extend/logger"
   "basic.com/valib/logger.git"
   "webserver/extend/util"
   "github.com/gin-gonic/gin"
   "webserver/service"
@@ -34,12 +34,16 @@
   Name  string `json:"name"`  //参数名称
   Type  string `json:"type"`  //参数类型(整数,字符串或数组)
   Must  bool   `json:"must"`  //是否必填
   Unit  string `json:"unit"`
   Range string `json:"range"` //值的范围,eg:0,100表示从0到100
   DefaultValue string `json:"default_value"`
   Sort  int    `json:"sort"`  //参数顺序
}
// @Security ApiKeyAuth
// @Summary 算法保存
// @Description 算法保存
// @Accept json
// @Produce json
// @Tags sdk
// @Param reqMap body controllers.SdkVo true "人脸检测"
@@ -63,6 +67,7 @@
   }
}
// @Security ApiKeyAuth
// @Summary 查找所有算法
// @Description 查找所有算法
// @Produce json
@@ -79,6 +84,7 @@
   util.ResponseFormat(c, code.Success, sdks)
}
// @Security ApiKeyAuth
// @Summary 根据id获取算法信息
// @Description 根据id获取算法信息
// @Produce json
@@ -121,6 +127,7 @@
   }
}
// @Security ApiKeyAuth
// @Summary 根据taskId获取算法信息
// @Description 根据taskId获取算法信息
// @Produce json