|
|
@@ -26,7 +26,7 @@ type Simple struct {
|
|
|
func (simple *Simple) bind(binder *binding.Binder) {
|
|
|
options := simple.options
|
|
|
|
|
|
- configurationTableName := domain.TableName(simple.Schema, &Entity{})
|
|
|
+ configurationTableName := domain.TableName(simple.Schema, &ValueObject{})
|
|
|
valueObjectOptions := []any{value_object_crud.WithDisableQuery[any]()}
|
|
|
|
|
|
if options.disableCreate {
|
|
|
@@ -38,7 +38,7 @@ func (simple *Simple) bind(binder *binding.Binder) {
|
|
|
}
|
|
|
|
|
|
value_object_crud.BindSimple(binder, &value_object_crud.Simple[any]{
|
|
|
- ValueObject: &Entity{},
|
|
|
+ ValueObject: &ValueObject{},
|
|
|
Schema: simple.Schema,
|
|
|
CreateJsonBody: &AddConfigurationJsonBody{},
|
|
|
DeleteJsonBody: &RemoveConfigurationJsonBody{},
|
|
|
@@ -49,11 +49,11 @@ func (simple *Simple) bind(binder *binding.Binder) {
|
|
|
Path: "/configuration/values",
|
|
|
SendResponseFunc: response.SendMapResponse,
|
|
|
RequestParams: &GetConfigurationValuesQueryParams{},
|
|
|
- Objects: []domain.Object{&Entity{}},
|
|
|
+ Objects: []domain.Object{&ValueObject{}},
|
|
|
ServiceFunc: func(c *api.Context, params request.Params, objects []domain.Object, i *infrastructure.Infrastructure) (map[string]any, error) {
|
|
|
dbExecutor := i.DBExecutor()
|
|
|
|
|
|
- e, ok := objects[0].(*Entity)
|
|
|
+ e, ok := objects[0].(*ValueObject)
|
|
|
if !ok {
|
|
|
return map[string]any{
|
|
|
"values": make([]string, 0),
|