mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 07:50:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			505 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			505 B
		
	
	
	
		
			Go
		
	
	
	
	
	
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{}
 | 
						|
}
 |