- 将 GlobalLimit 模型中的 IsDelete 字段重命名为 State,以更准确地表示其含义 - 移除了服务层中的一段冗余空代码 - 优化了代码结构,提高了可读性和可维护性
@@ -12,7 +12,7 @@ type GlobalLimit struct {
CdnUid int
GatewayGroupId int
Comment string
- IsDelete int
+ State int
ExpiredAt int64
createdAt time.Time
updatedAt time.Time
@@ -512,7 +512,6 @@ func (s *globalLimitService) DeleteGlobalLimit(ctx context.Context, req v1.Globa
}
-
if err := s.globalLimitRepository.EditHostState(ctx, int64(req.HostId), 0); err != nil {
return err