1 Star 0 Fork 0

ichub / goconfig

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gorm_client_dto.go 921 Bytes
一键复制 编辑 原始数据 按行查看 历史
leijmdas 提交于 2024-05-05 12:27 . add
package baseconfig
type GormClientDto struct {
IchubClientDto `json:"-"`
Debug string `json:"debug"`
DbType string `json:"db_type"`
Enable string `json:"enabled"`
MaxLifetime string `json:"max_lifetime"`
MaxOpenConns string `json:"max_open_conns"`
MaxIdleConns string `json:"max_idle_conns"`
}
func NewGormClientDto() *GormClientDto {
var dto = &GormClientDto{}
dto.InitProxy(dto)
return dto
}
//func (this *GormClientDto) Parse() *GormClientDto {
// //this.Debug = this.ParseValue("Debug", this.Debug)
// //this.DbType = this.ParseValue("DbType", this.DbType)
// //this.Enable = this.ParseValue("Enabled", this.Enable)
// //
// //this.MaxLifetime = this.ParseValue("MaxLifetime", this.MaxLifetime)
// //this.MaxOpenConns = this.ParseValue("MaxOpenConns", this.MaxOpenConns)
// //this.MaxIdleConns = this.ParseValue("MaxIdleConns", this.MaxIdleConns)
//
// this.IchubClientDto.Parse()
// return this
//}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ichub/goconfig.git
git@gitee.com:ichub/goconfig.git
ichub
goconfig
goconfig
v1.0.407

搜索帮助