Vestmore_GO/model/killara_customer_device_logic.go

16 lines
317 B
Go
Raw Normal View History

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