yjp преди 1 година
родител
ревизия
5f607ea4ae
променени са 3 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      convenient/domain/auth/permission/api.go
  2. 1 1
      convenient/domain/auth/permission_group/api.go
  3. 1 1
      convenient/domain/auth/role/api.go

+ 1 - 1
convenient/domain/auth/permission/api.go

@@ -41,7 +41,7 @@ func (simple *Simple) Bind(binder *binding.Binder) {
 		}), entity_crud.WithUpdateCallbacks(&entity_crud.UpdateCallbacks{
 			Prepare: func(c *api.Context, e entity.Entity, i *infrastructure.Infrastructure) (map[string]any, error) {
 				userInfo := c.GetUserInfo()
-				err := domain.SetField(e, entity.FieldCreateUserID, userInfo.GetID())
+				err := domain.SetField(e, entity.FieldLastUpdateUserID, userInfo.GetID())
 				if err != nil {
 					return nil, err
 				}

+ 1 - 1
convenient/domain/auth/permission_group/api.go

@@ -41,7 +41,7 @@ func (simple *Simple) Bind(binder *binding.Binder) {
 		}), entity_crud.WithUpdateCallbacks(&entity_crud.UpdateCallbacks{
 			Prepare: func(c *api.Context, e entity.Entity, i *infrastructure.Infrastructure) (map[string]any, error) {
 				userInfo := c.GetUserInfo()
-				err := domain.SetField(e, entity.FieldCreateUserID, userInfo.GetID())
+				err := domain.SetField(e, entity.FieldLastUpdateUserID, userInfo.GetID())
 				if err != nil {
 					return nil, err
 				}

+ 1 - 1
convenient/domain/auth/role/api.go

@@ -41,7 +41,7 @@ func (simple *Simple) Bind(binder *binding.Binder) {
 		}), entity_crud.WithUpdateCallbacks(&entity_crud.UpdateCallbacks{
 			Prepare: func(c *api.Context, e entity.Entity, i *infrastructure.Infrastructure) (map[string]any, error) {
 				userInfo := c.GetUserInfo()
-				err := domain.SetField(e, entity.FieldCreateUserID, userInfo.GetID())
+				err := domain.SetField(e, entity.FieldLastUpdateUserID, userInfo.GetID())
 				if err != nil {
 					return nil, err
 				}