Files
isp-lock-service/domain/locker.go
T

18 lines
286 B
Go

package domain
import "time"
type LockRequest struct {
Key string `json:"Key" valid:"required"`
TTL time.Duration
}
type UnLockRequest struct {
Key string `json:"Key" valid:"required"`
LockKey string
}
type LockResponse struct {
LockKey string `json:"lockKey,omitempty"`
}