Skip to content

Commit

Permalink
rename TagID to TagId
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjulienboss committed Apr 9, 2024
1 parent febc89c commit c6943c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/DeleteTagController.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func DeleteTagController(c echo.Context) error {
return c.String(status, err.Error())
}

status, err := logic.DeleteTag(validator.TagID, validator.LinkId, c.Get("UserID").(uint))
status, err := logic.DeleteTag(validator.TagId, validator.LinkId, c.Get("UserID").(uint))

if err != nil {
return c.String(status, err.Error())
Expand Down
2 changes: 1 addition & 1 deletion models/Tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ type TagCreateValidation struct {
}

type TagDeleteValidation struct {
TagID uint `validate:"required,number" json:"TagID" form:"TagID"`
TagId uint `validate:"required,number" json:"TagId" form:"TagId"`
LinkId uint `validate:"required,number" json:"LinkId" form:"LinkId"`
}

0 comments on commit c6943c1

Please sign in to comment.