From c4b6632444e38b746d6c0e5411ce627d62fb8e9f Mon Sep 17 00:00:00 2001 From: xxj <346944475@qq.com> Date: Fri, 6 Sep 2024 16:54:29 +0800 Subject: [PATCH] fix warnings --- data/config/common.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/config/common.go b/data/config/common.go index c56c95e..b1d0d32 100644 --- a/data/config/common.go +++ b/data/config/common.go @@ -16,8 +16,8 @@ import ( type CfgBase struct { // SerialNumber string `json:"serial_number" yaml:"serial_number"` // version.版本号 // ServiceName string `json:"service_name" yaml:"service_name"` // service name .service名字 - // ServiceDisplayname string `json:"service_displayname" yaml:"service_displayname"` // display name .显示名 - // SerciceDesc string `json:"sercice_desc" yaml:"sercice_desc"` // sercice desc .service描述 + // ServiceDisplayName string json:"service_display_name" yaml:"service_display_name" // display name .显示名 + // ServiceDesc json:"service_desc" yaml:"service_desc" // sercice desc .service描述 IsDev bool `json:"is_dev" yaml:"is_dev"` // Is it a development version?是否是开发版本 } @@ -101,7 +101,7 @@ func InitFile(filename string) error { // GetServiceConfig Get service configuration information // func GetServiceConfig() (name, displayName, desc string) { // name = _map.ServiceName -// displayName = _map.ServiceDisplayname +// displayName = _map.ServiceDisplayName // desc = _map.SerciceDesc // return // }