1 Star 0 Fork 0

ichub / goconfig

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
web_server_dto.go 988 Bytes
一键复制 编辑 原始数据 按行查看 历史
leijmdas 提交于 2024-05-05 12:24 . add
package baseconfig
import (
"gitee.com/ichub/goconfig/common/base/baseutils/jsonutils"
)
/*
@Title 文件名称: web_server_dto.go
@Description 描述: Web服务配置信息
@Author 作者: leijianming@163.com 时间(2024-02-18 22:38:21)
@Update 作者: leijianming@163.com 时间(2024-02-18 22:38:21)
*/
type WebServerDto struct {
EtcdHost string `json:"etcd_host"`
ServerName string `json:"server_name"`
ServerPort int `json:"server_port"`
IchubClientDto
}
func NewWebServerDto() *WebServerDto {
var webdto = &WebServerDto{}
webdto.InitProxy(webdto)
webdto.IchubClientDto.InitProxy(webdto.IchubClientDto)
return webdto
}
func (this *WebServerDto) String() string {
return jsonutils.ToJsonPretty(this)
}
func (this *WebServerDto) Parse() *WebServerDto {
this.EtcdHost = this.ParseValue("EtcdHost", this.EtcdHost)
this.ServerName = this.ParseValue("ServerName", this.ServerName)
//this.ServerPort = this.parseValue("KEY", this.ServerPort)
return this
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ichub/goconfig.git
git@gitee.com:ichub/goconfig.git
ichub
goconfig
goconfig
v1.0.407

搜索帮助