DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

6aef1e4c3df7b09fe0f40fa6e8498fc9249d7eea — skye 1 year, 7 months ago 89bbb3e
feat(api): change action seed to string
2 files changed, 4 insertions(+), 4 deletions(-)

M api/handlers/createaction.go
M api/models/action.go
M api/handlers/createaction.go => api/handlers/createaction.go +2 -2
@@ 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) {

M api/models/action.go => api/models/action.go +2 -2
@@ 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"`
}