mirror of
https://github.com/retailcrm/mg-transport-core.git
synced 2025-01-19 16:31:43 +03:00
camelCase json parameters in GateUrl & GateToken fields
This commit is contained in:
parent
e9489f0ab9
commit
b0c2ca5ab1
@ -8,8 +8,8 @@ type Connection struct {
|
|||||||
UpdatedAt time.Time
|
UpdatedAt time.Time
|
||||||
Key string `gorm:"column:api_key; type:varchar(100); not null" json:"apiKey,omitempty" binding:"required,max=100"` // nolint:lll
|
Key string `gorm:"column:api_key; type:varchar(100); not null" json:"apiKey,omitempty" binding:"required,max=100"` // nolint:lll
|
||||||
URL string `gorm:"column:api_url; type:varchar(255); not null" json:"apiUrl,omitempty" binding:"required,validateCrmURL,max=255"` // nolint:lll
|
URL string `gorm:"column:api_url; type:varchar(255); not null" json:"apiUrl,omitempty" binding:"required,validateCrmURL,max=255"` // nolint:lll
|
||||||
GateURL string `gorm:"column:mg_url; type:varchar(255); not null;" json:"mg_url,omitempty" binding:"max=255"`
|
GateURL string `gorm:"column:mg_url; type:varchar(255); not null;" json:"mgUrl,omitempty" binding:"max=255"`
|
||||||
GateToken string `gorm:"column:mg_token; type:varchar(100); not null; unique" json:"mg_token,omitempty" binding:"max=100"` // nolint:lll
|
GateToken string `gorm:"column:mg_token; type:varchar(100); not null; unique" json:"mgToken,omitempty" binding:"max=100"` // nolint:lll
|
||||||
ClientID string `gorm:"column:client_id; type:varchar(70); not null; unique" json:"clientId,omitempty"`
|
ClientID string `gorm:"column:client_id; type:varchar(70); not null; unique" json:"clientId,omitempty"`
|
||||||
Accounts []Account `gorm:"foreignkey:ConnectionID" json:"accounts"`
|
Accounts []Account `gorm:"foreignkey:ConnectionID" json:"accounts"`
|
||||||
ID int `gorm:"primary_key" json:"id"`
|
ID int `gorm:"primary_key" json:"id"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user