router/router.go
@@ -66,6 +66,17 @@
      locationAPI.GET("getLocationTreeList", locationController.GetLocationTreeList)   //获取位置列表树
   }
   // 属性信息
   attributeController := new(controllers.AttributeController)
   attributeAPI := r.Group(urlPrefix + "/attribute")
   {
      attributeAPI.POST("attribute", attributeController.Add)             // 添加属性
      attributeAPI.PUT("updateAttribute/:id", attributeController.Update) // 修改属性
      attributeAPI.DELETE("delete/:id", attributeController.Delete)       // 删除属性
      attributeAPI.GET("attribute", attributeController.List)             // 获取属性
      //attributeAPI.GET("attribute/:id", attributeController.GetAttributeDetail) // 获取属性
   }
   // 业务类型
   operationTypeController := new(controllers.OperationTypeController)
   operationTypeAPI := r.Group(urlPrefix + "/operationType")
@@ -124,6 +135,7 @@
      productAPI.GET("getUserInfo", productController.GetUserInfo)       //获取登录用户信息
      productAPI.GET("getUnitInfo", productController.GetUnitInfo)       //获取单位信息
      productAPI.POST("saveUnitDict", productController.SaveUnitDict)    //更新计量单位字典
      productAPI.POST("inputProduct", productController.InputProduct)    //更新计量单位字典
   }
@@ -193,7 +205,9 @@
   {
      attributeValueAPI.POST("add", attributeValueController.AddAttributeValue)
      attributeValueAPI.POST("update", attributeValueController.UpdateAttributeValue)
      attributeValueAPI.DELETE("delete/:id", attributeValueController.DeleteAttributeValue) //删除位置
      attributeValueAPI.DELETE("delete/:id", attributeValueController.DeleteAttributeValue) //删除
      attributeValueAPI.POST("list", attributeValueController.ListAttributeValue)
      attributeValueAPI.GET("primary/:id", attributeValueController.PrimaryAttributeValue) //删除
   }
   return r