moved Ausruestung to domain equipment
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user