Ver Fonte

修改bug

yjp há 1 ano atrás
pai
commit
5f607ea4ae

+ 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
 				}