moved Ausruestung to domain equipment

This commit is contained in:
2024-12-30 16:24:20 +01:00
parent bf73210a4b
commit 2ce2cec1f9
2 changed files with 1 additions and 13 deletions
+1 -2
View File
@@ -2,7 +2,6 @@ package equipment
import (
"bamort/database"
"bamort/models"
"net/http"
"github.com/gin-gonic/gin"
@@ -16,7 +15,7 @@ Allows users to add new equipment items for a specific character.
*/
func CreateAusruestung(c *gin.Context) {
var ausruestung models.Ausruestung
var ausruestung Ausruestung
if err := c.ShouldBindJSON(&ausruestung); err != nil {
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return
-11
View File
@@ -16,17 +16,6 @@ type BamortCharTraitMaxVal struct {
Value int `json:"value"`
}
type Ausruestung struct {
BamortCharTrait
Magisch
Beschreibung string `json:"beschreibung"`
Anzahl int `json:"anzahl"`
BeinhaltetIn string `json:"beinhaltet_in"`
Bonus int `json:"bonus,omitempty"`
Gewicht float64 `json:"gewicht"`
Wert float64 `json:"wert"`
}
type Fertigkeit struct {
BamortCharTrait
Beschreibung string `json:"beschreibung"`