|
@@ -43,14 +43,15 @@ type BaseAdvanceQueryParams struct {
|
|
|
|
|
|
type AddUseQueryRuleQueryRouteParams struct {
|
|
|
DBSchema string
|
|
|
- DomainPath string
|
|
|
Object domain.Object
|
|
|
QueryMiddlewares []binding.Middleware
|
|
|
}
|
|
|
|
|
|
func AddUseQueryRuleQueryRoute[O any](binder *binding.Binder, addParams *AddUseQueryRuleQueryRouteParams) {
|
|
|
+ domainPath := domain.RelativeDomainPath(addParams.Object)
|
|
|
+
|
|
|
binding.PostBind(binder, &binding.SimpleBindItem[response.InfosData[O]]{
|
|
|
- Path: addParams.DomainPath + "/advancedQuery",
|
|
|
+ Path: domainPath + "/advancedQuery",
|
|
|
SendResponseFunc: response.SendInfosResponse[O],
|
|
|
RequestParams: &BaseAdvanceQueryParams{},
|
|
|
Objects: []domain.Object{addParams.Object},
|