Explorar el Código

refactor(internal/service): 修改用户添加任务的代码

- 将 IsDelete 字段重命名为 State,以更好地反映其用途
- 更新代码以使用新的字段名称
fusu hace 1 mes
padre
commit
b5b439618c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      internal/service/globallimit.go

+ 1 - 1
internal/service/globallimit.go

@@ -356,7 +356,7 @@ func (s *globalLimitService) AddGlobalLimit(ctx context.Context, req v1.GlobalLi
 			CdnUid:         int(userId),
 			Comment:        req.Comment,
 			ExpiredAt:      expiredAt,
-			IsDelete:       1,
+			State:       1,
 		})
 		if err != nil {
 			return err