feat ✨ 去除数据库写log对queue驱动的依赖,调整cache,分离出queue和locker
This commit is contained in:
1 parent
3df83cb057
commit
e40047a88e
8 files changed
+35
-15
No files matched your search
@@ -9,8 +9,8 @@ import (
|
||||
)
|
||||
|
||||
type ObjectById struct {
|
||||
Id int `uri:"id" vd:"($>0||len(Ids)$==0)"`
|
||||
Ids []int `json:"ids" vd:"($==0||len(Ids)$>0)'"`
|
||||
Id int `uri:"id"`
|
||||
Ids []int `json:"ids"`
|
||||
}
|
||||
|
||||
func (s *ObjectById) Bind(ctx *gin.Context) error {
|
||||
@@ -50,4 +50,4 @@ func (s *ObjectById) GetId() interface{} {
|
||||
return s.Ids
|
||||
}
|
||||
return s.Id
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user