Made json look pretty
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
14c99e0640
commit
ab1750760a
|
@ -1,12 +1,12 @@
|
|||
package models
|
||||
|
||||
type Community struct {
|
||||
ID int64 `xorm:"pk autoincr"`
|
||||
Name string `xorm:"text"`
|
||||
KCoins int64 `xorm:"bigint(11)"`
|
||||
ID int64 `xorm:"pk autoincr" json:"id"`
|
||||
Name string `xorm:"text" json:"name"`
|
||||
KCoins int64 `xorm:"bigint(11)" json:"kcoins"`
|
||||
|
||||
KonfiCount int64 `xorm:"bigint(11)"`
|
||||
CoinsQuota float64 `xorm:"-"`
|
||||
KonfiCount int64 `xorm:"bigint(11)" json:"konfi_count"`
|
||||
CoinsQuota float64 `xorm:"-" json:"coins_quota"`
|
||||
}
|
||||
|
||||
func (c *Community) Add() (err error) {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package models
|
||||
|
||||
type Kofi struct {
|
||||
ID int64 `xorm:"pk autoincr"`
|
||||
Name string `xorm:"text"`
|
||||
Gemeinde string `xorm:"text"`
|
||||
KCoins int64 `xorm:"bigint(11)"`
|
||||
ID int64 `xorm:"pk autoincr" json:"id"`
|
||||
Name string `xorm:"text" json:"name"`
|
||||
Gemeinde string `xorm:"text" json:"gemeinde"`
|
||||
KCoins int64 `xorm:"bigint(11)" json:"kcoins"`
|
||||
}
|
||||
|
||||
func (k *Kofi) Add() (err error) {
|
||||
|
|
|
@ -11,13 +11,13 @@ import (
|
|||
)
|
||||
|
||||
type UpdatedMessageKofi struct {
|
||||
Message string
|
||||
Data *models.Kofi
|
||||
Message string `json:"message"`
|
||||
Data *models.Kofi `json:"data"`
|
||||
}
|
||||
|
||||
type UpdatedMessageCommunity struct {
|
||||
Message string
|
||||
Data *models.Community
|
||||
Message string `json:"message"`
|
||||
Data *models.Community `json:"data"`
|
||||
}
|
||||
|
||||
func update(c echo.Context) error {
|
||||
|
|
Loading…
Reference in New Issue