Vestmore_GO/model/killara_customer_device_logic.go

16 lines
317 B
Go
Raw Normal View History

2024-04-08 00:03:37 +08:00
package model
2024-04-08 18:13:01 +08:00
import (
2024-04-10 14:58:19 +08:00
"gorm.io/gorm"
2024-04-08 18:13:01 +08:00
)
2024-04-08 00:03:37 +08:00
type KillaraCustomerDeviceModel struct {
// fields ...
2024-04-10 14:58:19 +08:00
db *gorm.DB
2024-04-08 18:13:01 +08:00
TableName string // 表名
2024-04-08 00:03:37 +08:00
}
2024-04-11 18:04:03 +08:00
func (m *KillaraCustomerModel) InsertCustomerDevice(deviceData *KillaraCustomerDevice) error {
return m.db.Model(&KillaraCustomerDevice{}).Create(deviceData).Error
}