This commit is contained in:
2026-04-28 17:55:09 +08:00
parent 83a1c5ca8a
commit 0817e73dc4
3 changed files with 41 additions and 0 deletions
+8
View File
@@ -210,6 +210,14 @@ func ApiWarehouse(r *gin.RouterGroup) {
}
}
// 查重:同层级下 Title 不能重复
// var dupContainer TabWarehouseContainer
// dupQuery := models.DB.Where("title = ? AND parent_id = ? AND deleted_at IS NULL", from.Title, from.ParentID)
// if dupQuery.First(&dupContainer).Error == nil {
// ReturnJson(ctx, "container_title_exist", nil)
// return
// }
color := from.Color
if color == "" {
color = "#3788d9"