소스 검색

修改bug

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
 				}