Skip to content

Commit

Permalink
123
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq committed Nov 28, 2024
1 parent 48bfe8c commit 87e95a3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ package model

import "time"

// TbMySQLPodStartCfg 模拟执行 pod 启动参数
type TbMySQLPodStartCfg struct {
// TbMysqlPodStartCfg 模拟执行 pod 启动参数
type TbMysqlPodStartCfg struct {
ID int `gorm:"primaryKey;column:id;type:int(11);not null" json:"-"`
ComponentType string `gorm:"unique;column:uk_cv;type:varchar(64);not null" json:"component_type"`
Version string `gorm:"unique;column:uk_cv;type:varchar(64);not null" json:"version"`
Expand All @@ -24,7 +24,7 @@ type TbMySQLPodStartCfg struct {

// GetStartArsg pod 启动参数
func GetStartArsg(componentType, version string) (start_args string, err error) {
err = DB.Model(&TbMySQLPodStartCfg{}).Select("start_args").Where("component_type = ? AND version = ?", componentType,
err = DB.Model(&TbMysqlPodStartCfg{}).Select("start_args").Where("component_type = ? AND version = ?", componentType,
version).
First(&start_args).Error
return
Expand Down

0 comments on commit 87e95a3

Please sign in to comment.