方法添加注释,中文版注释
This commit is contained in:
@@ -11,12 +11,19 @@ type System struct {
|
||||
Config config.Server
|
||||
}
|
||||
|
||||
//读取配置文件
|
||||
// @title GetSystemConfig
|
||||
// @description 读取配置文件
|
||||
// @auth (2020/04/05 20:22 )
|
||||
// @return err error
|
||||
// @return conf Server
|
||||
func (s *System) GetSystemConfig() (err error, conf config.Server) {
|
||||
return nil, global.GVA_CONFIG
|
||||
}
|
||||
|
||||
//设置配置文件
|
||||
// @title SetSystemConfig
|
||||
// @description set system config, 设置配置文件
|
||||
// @auth (2020/04/05 20:22 )
|
||||
// @return err error
|
||||
func (s *System) SetSystemConfig() (err error) {
|
||||
confs := utils.StructToMap(s.Config)
|
||||
for k, v := range confs {
|
||||
|
||||
Reference in New Issue
Block a user