MSP-1388 [+] тесты
This commit is contained in:
1 parent
9bd31bf6c9
commit
42d2dd18ac
22 files changed
+160
-700
No files matched your search
+6
-2
@@ -2,10 +2,14 @@ package domain
|
||||
|
||||
import "time"
|
||||
|
||||
type Request struct {
|
||||
type LockRequest struct {
|
||||
Key string `json:"Key" valid:"required"`
|
||||
TTL time.Duration
|
||||
}
|
||||
|
||||
type UnLockRequest struct {
|
||||
Key string `json:"Key" valid:"required"`
|
||||
LockKey string
|
||||
TTL time.Duration
|
||||
}
|
||||
|
||||
type LockResponse struct {
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
package domain
|
||||
|
||||
type Object struct {
|
||||
Name string
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package domain
|
||||
|
||||
type ByIdRequest struct {
|
||||
Id int `valid:"required"`
|
||||
}
|
||||
Reference in new issue
Block a user