sunty
2019-08-22 a527225f7f3cc93882aa870c20f0985d07d6fe92
controllers/dbtableperson.go
@@ -148,7 +148,6 @@
// @Success 200 {string} json "{"code":200, msg:"目录结构数据", success:true}"
// @Failure 500 {string} json "{"code":500,  msg:"返回错误信息", success:false}"
// @Router /data/api-v/dbperson/deleteDbPersonById/{uuid} [POST]
func (dbc DbPersonController) DeleteDbPerson(c *gin.Context) {
   id := c.Params.ByName("uuid")
   if id == "" {
@@ -164,12 +163,14 @@
   }
}
// @Summary 删除底库人员
// @Description 删除库人员
type multiIds []string
// @Summary 批量删除底库人员
// @Description 批量删除库人员
// @Accept  json
// @Produce json
// @Tags dbperson 底库人员
// @Param uuids body []string true "底库人员ids "
// @Param uuids body controllers.multiIds true "底库人员ids"
// @Success 200 {string} json "{"code":200, msg:"目录结构数据", success:true}"
// @Failure 500 {string} json "{"code":500,  msg:"返回错误信息", success:false}"
// @Router /data/api-v/dbperson/deleteMoreDbPerson [POST]
@@ -195,7 +196,7 @@
// @Accept  json
// @Produce json
// @Tags dbperson 底库人员
// @Param reqMap body map false "{"tableId":"","orderName":"uuid","orderType":"desc","contentValue":"","page":1,"size":8}"
// @Param reqMap body map false "{"tableId":"","orderName":"id","orderType":"desc","contentValue":"","page":1,"size":8}"
// @Success 200 {string} json "{"code":200, "msg":"目录结构数据", "success":true,"data":{}}"
// @Failure 500 {string} json "{code:500,  msg:"返回错误信息", success:false,data:{}}"
// @Router /data/api-v/dbperson/queryDbPersonsByTbId [POST]
@@ -205,6 +206,10 @@
   tableId := ""
   if reqBody["tableId"] != nil {
      tableId = reqBody["tableId"].(string)
   }
   if tableId == "" {
      util.ResponseFormat(c,code.RequestParamError,"参数有误,底库id不能为空")
      return
   }
   orderName := "id"
   if reqBody["orderName"] != nil {
@@ -251,7 +256,6 @@
   } else {
      util.ResponseFormat(c,code.ComError,[]interface{}{})
   }
   util.ResponseFormat(c, code.Success, data)
}
// @Summary 查询底库人员列表
@@ -259,7 +263,7 @@
// @Accept  json
// @Produce json
// @Tags dbperson 底库人员
// @Param reqMap body map false "{"tableId":"","orderName":"uuid","orderType":"desc","contentValue":"","page":1,"size":8}"
// @Param reqMap body map false "{"tableId":"","orderName":"id","orderType":"desc","contentValue":"","page":1,"size":8}"
// @Success 200 {string} json "{"code":200, "msg":"目录结构数据", "success":true,"data":{}}"
// @Failure 500 {string} json "{code:500,  msg:"返回错误信息", success:false,data:{}}"
// @Router /data/api-v/dbperson/queryDbPersonsByCampare [POST]