Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package dao
import (
. "github.com/smartystreets/goconvey/convey"
"go-common/app/service/live/wallet/model"
"testing"
"time"
)
func TestDao_NewCoinExchangeRecord(t *testing.T) {
Convey("New CoinExchange", t, func() {
once.Do(startService)
record := new(model.CoinExchangeRecord)
record.ExchangeTime = time.Now().Unix()
record.Status = 1
record.DestNum = 1
record.DestType = 1
record.SrcType = 2
record.SrcNum = 1
record.TransactionId = "abcdef"
record.Uid = 1
affect, err := d.NewCoinExchangeRecord(ctx, record)
So(affect, ShouldEqual, 1)
So(err, ShouldBeNil)
})
}