refactor: 自定义业务错误
This commit is contained in:
@@ -17,13 +17,13 @@ type UserSubscriptionRepoSuite struct {
|
||||
suite.Suite
|
||||
ctx context.Context
|
||||
db *gorm.DB
|
||||
repo *UserSubscriptionRepository
|
||||
repo *userSubscriptionRepository
|
||||
}
|
||||
|
||||
func (s *UserSubscriptionRepoSuite) SetupTest() {
|
||||
s.ctx = context.Background()
|
||||
s.db = testTx(s.T())
|
||||
s.repo = NewUserSubscriptionRepository(s.db)
|
||||
s.repo = NewUserSubscriptionRepository(s.db).(*userSubscriptionRepository)
|
||||
}
|
||||
|
||||
func TestUserSubscriptionRepoSuite(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user