mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 02:38:17 +08:00
convert appID int to string
This commit is contained in:
parent
e290f82dbd
commit
e4c71ddfa7
@ -342,7 +342,7 @@ type ServiceStruct struct {
|
||||
EnvsInfo []dbmodel.TenantServiceEnvVar `json:"envs_info" validate:"envs_info"`
|
||||
PortsInfo []dbmodel.TenantServicesPort `json:"ports_info" validate:"ports_info"`
|
||||
Endpoints *Endpoints `json:"endpoints" validate:"endpoints"`
|
||||
AppID int64 `json:"app_id" validate:"required"`
|
||||
AppID string `json:"app_id" validate:"required"`
|
||||
}
|
||||
|
||||
// Endpoints holds third-party service endpoints or configuraion to get endpoints.
|
||||
@ -1629,6 +1629,6 @@ func NewAppStatusFromImport(app *ImportAppStruct) *dbmodel.AppStatus {
|
||||
// Application -
|
||||
type Application struct {
|
||||
AppName string `json:"app_name" validate:"required"`
|
||||
AppID int64 `json:"app_id" validate:"required"`
|
||||
AppID string `json:"app_id" validate:"required"`
|
||||
TenantID string `json:"tenant_id"`
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ package model
|
||||
type Application struct {
|
||||
Model
|
||||
AppName string `gorm:"column:app_name" json:"app_name"`
|
||||
AppID int64 `gorm:"column:app_id" json:"app_id"`
|
||||
AppID string `gorm:"column:app_id" json:"app_id"`
|
||||
TenantID string `gorm:"column:tenant_id" json:"tenant_id"`
|
||||
}
|
||||
|
||||
|
@ -189,7 +189,7 @@ type TenantServices struct {
|
||||
// kind of service. option: internal, third_party
|
||||
Kind string `gorm:"column:kind;default:'internal'" json:"kind"`
|
||||
// service bind appID
|
||||
AppID int64 `gorm:"column:app_id" json:"app_id"`
|
||||
AppID string `gorm:"column:app_id" json:"app_id"`
|
||||
}
|
||||
|
||||
//Image 镜像
|
||||
@ -297,7 +297,7 @@ type TenantServicesDelete struct {
|
||||
// kind of service. option: internal, third_party
|
||||
Kind string `gorm:"column:kind;default:'internal'" json:"kind"`
|
||||
// service bind appID
|
||||
AppID int64 `gorm:"column:app_id" json:"app_id"`
|
||||
AppID string `gorm:"column:app_id" json:"app_id"`
|
||||
}
|
||||
|
||||
//TableName 表名
|
||||
|
Loading…
Reference in New Issue
Block a user