mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-12 14:50:25 +08:00
实现HTTP部分功能
This commit is contained in:
20
internal/db/models/sys_locker_model.go
Normal file
20
internal/db/models/sys_locker_model.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package models
|
||||
|
||||
// 并发锁
|
||||
type SysLocker struct {
|
||||
Id uint64 `field:"id"` // ID
|
||||
Key string `field:"key"` // 键值
|
||||
Version uint64 `field:"version"` // 版本号
|
||||
TimeoutAt uint64 `field:"timeoutAt"` // 超时时间
|
||||
}
|
||||
|
||||
type SysLockerOperator struct {
|
||||
Id interface{} // ID
|
||||
Key interface{} // 键值
|
||||
Version interface{} // 版本号
|
||||
TimeoutAt interface{} // 超时时间
|
||||
}
|
||||
|
||||
func NewSysLockerOperator() *SysLockerOperator {
|
||||
return &SysLockerOperator{}
|
||||
}
|
||||
Reference in New Issue
Block a user