fix: query
This commit is contained in:
8
backend_v1/app/http/dto/common.go
Normal file
8
backend_v1/app/http/dto/common.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package dto
|
||||
|
||||
import "quyun/v2/app/requests"
|
||||
|
||||
type ListQuery struct {
|
||||
*requests.Pagination
|
||||
Keyword *string `query:"keyword"`
|
||||
}
|
||||
11
backend_v1/app/http/dto/order.go
Normal file
11
backend_v1/app/http/dto/order.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package dto
|
||||
|
||||
import "quyun/v2/app/requests"
|
||||
|
||||
type OrderListQuery struct {
|
||||
*requests.Pagination
|
||||
|
||||
Keyword *string `query:"keyword"`
|
||||
OrderNumber *string `query:"order_number"`
|
||||
UserID *int64 `query:"user_id"`
|
||||
}
|
||||
8
backend_v1/app/http/dto/post.go
Normal file
8
backend_v1/app/http/dto/post.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package dto
|
||||
|
||||
import "quyun/v2/app/requests"
|
||||
|
||||
type PostListQuery struct {
|
||||
*requests.Pagination
|
||||
Keyword *string `query:"keyword"`
|
||||
}
|
||||
8
backend_v1/app/http/dto/user.go
Normal file
8
backend_v1/app/http/dto/user.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package dto
|
||||
|
||||
import "quyun/v2/app/requests"
|
||||
|
||||
type UserListQuery struct {
|
||||
*requests.Pagination
|
||||
Keyword *string `query:"keyword"`
|
||||
}
|
||||
Reference in New Issue
Block a user