feat: 重构内容列表接口,使用过滤器结构体简化参数传递;更新相关服务和测试用例
This commit is contained in:
@@ -62,7 +62,7 @@ func (s *WalletTestSuite) Test_GetWallet() {
|
||||
So(err, ShouldBeNil)
|
||||
So(res.Balance, ShouldEqual, 50.0)
|
||||
So(len(res.Transactions), ShouldEqual, 2)
|
||||
|
||||
|
||||
// Order by CreatedAt Desc
|
||||
types := []string{res.Transactions[0].Type, res.Transactions[1].Type}
|
||||
So(types, ShouldContain, "income")
|
||||
|
||||
Reference in New Issue
Block a user