feat: align ids to int64
This commit is contained in:
@@ -12,7 +12,6 @@ import (
|
||||
"quyun/v2/pkg/consts"
|
||||
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
"github.com/spf13/cast"
|
||||
"github.com/stretchr/testify/suite"
|
||||
"go.ipao.vip/atom/contracts"
|
||||
"go.uber.org/dig"
|
||||
@@ -145,7 +144,7 @@ func (s *CreatorTestSuite) Test_UpdateContent() {
|
||||
Genre: "video",
|
||||
Price: 20.00,
|
||||
}
|
||||
err := Creator.UpdateContent(ctx, u.ID, cast.ToString(c.ID), form)
|
||||
err := Creator.UpdateContent(ctx, u.ID, c.ID, form)
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
// Verify
|
||||
@@ -281,7 +280,7 @@ func (s *CreatorTestSuite) Test_Withdraw() {
|
||||
Convey("should withdraw successfully", func() {
|
||||
form := &creator_dto.WithdrawForm{
|
||||
Amount: 20.00,
|
||||
AccountID: cast.ToString(pa.ID),
|
||||
AccountID: pa.ID,
|
||||
}
|
||||
err := Creator.Withdraw(ctx, u.ID, form)
|
||||
So(err, ShouldBeNil)
|
||||
@@ -306,7 +305,7 @@ func (s *CreatorTestSuite) Test_Withdraw() {
|
||||
Convey("should fail if insufficient balance", func() {
|
||||
form := &creator_dto.WithdrawForm{
|
||||
Amount: 100.00,
|
||||
AccountID: cast.ToString(pa.ID),
|
||||
AccountID: pa.ID,
|
||||
}
|
||||
err := Creator.Withdraw(ctx, u.ID, form)
|
||||
So(err, ShouldNotBeNil)
|
||||
@@ -349,7 +348,7 @@ func (s *CreatorTestSuite) Test_Refund() {
|
||||
|
||||
Convey("should accept refund", func() {
|
||||
form := &creator_dto.RefundForm{Action: "accept", Reason: "Defective"}
|
||||
err := Creator.ProcessRefund(ctx, creator.ID, cast.ToString(o.ID), form)
|
||||
err := Creator.ProcessRefund(ctx, creator.ID, o.ID, form)
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
// Verify Order
|
||||
|
||||
Reference in New Issue
Block a user