MSP-1388 [+] тесты

This commit is contained in:
Leonid Nikolaev authored and d1slike committed 2023-02-01 13:44:29 +03:00
1 parent 9bd31bf6c9
commit 42d2dd18ac
22 files changed
+160 -700

No files matched your search

+6 -2
View File
@@ -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 {
-5
View File
@@ -1,5 +0,0 @@
package domain
type Object struct {
Name string
}
-5
View File
@@ -1,5 +0,0 @@
package domain
type ByIdRequest struct {
Id int `valid:"required"`
}