diff --git a/app/models/brandmodel/brand.go b/app/models/brandmodel/brand.go index fc5da29..80d2aea 100644 --- a/app/models/brandmodel/brand.go +++ b/app/models/brandmodel/brand.go @@ -25,7 +25,7 @@ type Brand struct { // 表名 func (m *Brand) TableName() string { - return "Brand" + return "brand" } // 私有化,防止被外部new diff --git a/app/models/ordersmodel/orders.go b/app/models/ordersmodel/orders.go index 607b643..31c3be2 100644 --- a/app/models/ordersmodel/orders.go +++ b/app/models/ordersmodel/orders.go @@ -40,7 +40,7 @@ type OrdersProductsList struct { // 表名 func (m *Orders) TableName() string { - return "Orders" + return "orders" } // 私有化,防止被外部new diff --git a/app/models/productsmodel/products.go b/app/models/productsmodel/products.go index 5008370..30df5d5 100644 --- a/app/models/productsmodel/products.go +++ b/app/models/productsmodel/products.go @@ -37,7 +37,7 @@ type MilkProductsList struct { // 表名 func (m *Products) TableName() string { - return "Products" + return "products" } // 私有化,防止被外部new diff --git a/app/models/usersmodel/users.go b/app/models/usersmodel/users.go index 50607d0..1ac313b 100644 --- a/app/models/usersmodel/users.go +++ b/app/models/usersmodel/users.go @@ -23,7 +23,7 @@ type Users struct { // 表名 func (m *Users) TableName() string { - return "Users" + return "users" } // 私有化,防止被外部new