This commit is contained in:
18
src/main/kotlin/database/service/SampleObjectService.kt
Normal file
18
src/main/kotlin/database/service/SampleObjectService.kt
Normal file
@@ -0,0 +1,18 @@
|
||||
package database.service
|
||||
|
||||
import database.model.SampleObject
|
||||
import api.ApiObject
|
||||
import org.jetbrains.exposed.sql.transactions.transaction
|
||||
|
||||
class SampleObjectService : ISampleObjectService {
|
||||
|
||||
override fun addOne(apiObject: ApiObject) {
|
||||
transaction {
|
||||
SampleObject.new {
|
||||
tag = apiObject.tag
|
||||
device_date = apiObject.device_date
|
||||
device_id = apiObject.device_id
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user