Version: 0.2.1.dev.260210
feat: 🚦 新增基于 Redis 令牌桶的限流中间件 - 使用 Redis 实现令牌桶算法进行限流 🪣 - 覆盖除登录、注册、刷新 token 以外的所有接口 🔒 fix: 🐛 修复任务块添加到日程接口可修改已安排任务时间的问题 - 禁止通过该接口直接修改已安排任务块的时间 - 修正不合理的业务逻辑,保证数据一致性 ✅
This commit is contained in:
@@ -221,4 +221,13 @@ var ( //请求相关的响应
|
||||
Status: "40032",
|
||||
Info: "target schedule does not have embedded task",
|
||||
}
|
||||
TooManyRequests = Response{ //请求过多
|
||||
Status: "40033",
|
||||
Info: "too many requests",
|
||||
}
|
||||
|
||||
TaskClassItemAlreadyArranged = Response{ //任务类项目已安排
|
||||
Status: "40034",
|
||||
Info: "task class item already arranged",
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user