feat: 重构内容和订单列表接口,使用过滤器结构体简化参数传递;更新相关服务和测试用例
This commit is contained in:
@@ -1,9 +1,31 @@
|
||||
package dto
|
||||
|
||||
import (
|
||||
"quyun/v2/app/requests"
|
||||
"quyun/v2/pkg/consts"
|
||||
)
|
||||
|
||||
// Filters
|
||||
type UserListFilter struct {
|
||||
requests.Pagination
|
||||
Username *string `query:"username"`
|
||||
}
|
||||
|
||||
type TenantListFilter struct {
|
||||
requests.Pagination
|
||||
Name *string `query:"name"`
|
||||
}
|
||||
|
||||
type SuperContentListFilter struct {
|
||||
requests.Pagination
|
||||
// Add filters if needed, currently list signature is just pagination in super.go service
|
||||
}
|
||||
|
||||
type SuperOrderListFilter struct {
|
||||
requests.Pagination
|
||||
// Add filters if needed
|
||||
}
|
||||
|
||||
// SuperUserLite 用于平台用户列表的轻量级用户信息
|
||||
type SuperUserLite struct {
|
||||
ID int64 `json:"id"`
|
||||
|
||||
Reference in New Issue
Block a user