feat: 添加用户统计功能,包括统计接口和相关数据结构
This commit is contained in:
@@ -261,3 +261,15 @@ func (t *UserTestSuite) Test_Relations() {
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
func (t *UserTestSuite) Test_Statistics() {
|
||||
Convey("test page", t.T(), func() {
|
||||
Convey("filter tenant users", func() {
|
||||
m, err := User.Statistics(t.T().Context())
|
||||
So(err, ShouldBeNil)
|
||||
// So(m.OwnedTenant, ShouldNotBeNil)
|
||||
// So(m.Tenants, ShouldHaveLength, 10)
|
||||
t.T().Logf("%s", utils.MustJsonString(m))
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user