|
|
@@ -29,10 +29,10 @@ func (simple *Simple) bind(binder *binding.Binder) {
|
|
|
DeleteJsonBody: &RemoveQueryRuleJsonBody{},
|
|
|
}, value_object_crud.WithDisableQuery[any]())
|
|
|
|
|
|
- binding.PostBind(binder, &binding.SimpleBindItem[map[string]any]{
|
|
|
+ binding.GetBind(binder, &binding.SimpleBindItem[map[string]any]{
|
|
|
Path: "/queryRuleDefinition/get",
|
|
|
SendResponseFunc: response.SendMapResponse,
|
|
|
- RequestParams: &GetQueryRuleQueryParams{},
|
|
|
+ RequestParams: &GetQueryRuleDefinitionQueryParams{},
|
|
|
Objects: []domain.Object{&ValueObject{}},
|
|
|
ServiceFunc: func(c *api.Context, params request.Params, objects []domain.Object, i *infrastructure.Infrastructure) (map[string]any, error) {
|
|
|
errResponse := map[string]any{
|