From 6aef1e4c3df7b09fe0f40fa6e8498fc9249d7eea Mon Sep 17 00:00:00 2001 From: skye Date: Thu, 4 May 2023 13:35:45 +0300 Subject: [PATCH] feat(api): change action seed to string --- api/handlers/createaction.go | 4 ++-- api/models/action.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/handlers/createaction.go b/api/handlers/createaction.go index 0d54cb9..15b083e 100644 --- a/api/handlers/createaction.go +++ b/api/handlers/createaction.go @@ -9,13 +9,13 @@ package handlers import ( + "api/apierror" "api/db" "api/models" - "api/apierror" "net/http" - "gorm.io/datatypes" "github.com/gin-gonic/gin" + "gorm.io/datatypes" ) func CreateAction(c *gin.Context) { diff --git a/api/models/action.go b/api/models/action.go index 75a924a..05a6a65 100644 --- a/api/models/action.go +++ b/api/models/action.go @@ -24,7 +24,7 @@ type Action struct { Invoker string `json:"invoker"` Target string `json:"target"` Command datatypes.JSON `json:"command"` - Seed uint64 `json:"seed"` + Seed string `json:"seed"` } type PostAction struct { @@ -32,5 +32,5 @@ type PostAction struct { Invoker string `json:"invoker"` Target string `json:"target"` Command string `json:"command"` - Seed uint64 `json:"seed"` + Seed string `json:"seed"` } -- 2.44.1