convert appID int to string

This commit is contained in:
yangk 2020-09-18 10:18:12 +08:00
parent e290f82dbd
commit e4c71ddfa7
3 changed files with 5 additions and 5 deletions

View File

@ -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"`
}

View File

@ -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"`
}

View File

@ -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 表名