feat: 重构内容和订单列表接口,使用过滤器结构体简化参数传递;更新相关服务和测试用例
This commit is contained in:
@@ -66,8 +66,9 @@ func (s *ContentTestSuite) Test_List() {
|
||||
models.ContentQuery.WithContext(ctx).Create(c1, c2)
|
||||
|
||||
Convey("should list only published contents", func() {
|
||||
tid := "1"
|
||||
filter := &content_dto.ContentListFilter{
|
||||
TenantID: "1",
|
||||
TenantID: &tid,
|
||||
Pagination: requests.Pagination{
|
||||
Page: 1,
|
||||
Limit: 10,
|
||||
|
||||
Reference in New Issue
Block a user