Browse Source

server: Move the AddressTransactionDetails model to the persisted package

master
Alexis Hernandez 6 years ago
parent
commit
38a83f23ae
  1. 4
      server/app/com/xsn/explorer/data/anorm/dao/AddressTransactionDetailsPostgresDAO.scala
  2. 2
      server/app/com/xsn/explorer/data/anorm/parsers/TransactionParsers.scala
  3. 5
      server/app/com/xsn/explorer/models/persisted/AddressTransactionDetails.scala

4
server/app/com/xsn/explorer/data/anorm/dao/AddressTransactionDetailsPostgresDAO.scala

@ -4,8 +4,8 @@ import java.sql.Connection
import anorm._
import com.xsn.explorer.data.anorm.parsers.TransactionParsers._
import com.xsn.explorer.models.persisted.Transaction
import com.xsn.explorer.models.{AddressTransactionDetails, TransactionId}
import com.xsn.explorer.models.persisted.{AddressTransactionDetails, Transaction}
import com.xsn.explorer.models.TransactionId
class AddressTransactionDetailsPostgresDAO {

2
server/app/com/xsn/explorer/data/anorm/parsers/TransactionParsers.scala

@ -3,7 +3,7 @@ package com.xsn.explorer.data.anorm.parsers
import anorm.SqlParser.{get, str}
import anorm.~
import com.xsn.explorer.models._
import com.xsn.explorer.models.persisted.Transaction
import com.xsn.explorer.models.persisted.{AddressTransactionDetails, Transaction}
object TransactionParsers {

5
server/app/com/xsn/explorer/models/AddressTransactionDetails.scala → server/app/com/xsn/explorer/models/persisted/AddressTransactionDetails.scala

@ -1,4 +1,6 @@
package com.xsn.explorer.models
package com.xsn.explorer.models.persisted
import com.xsn.explorer.models.{Address, TransactionId}
case class AddressTransactionDetails(
address: Address,
@ -6,4 +8,3 @@ case class AddressTransactionDetails(
time: Long,
received: BigDecimal = 0,
sent: BigDecimal = 0)
Loading…
Cancel
Save