14 lines
213 B
Go
14 lines
213 B
Go
package domain
|
|
|
|
import "time"
|
|
|
|
type Request struct {
|
|
Key string `json:"Key" valid:"required"`
|
|
LockKey string
|
|
TTL time.Duration
|
|
}
|
|
|
|
type LockResponse struct {
|
|
LockKey string `json:"lockKey,omitempty"`
|
|
}
|