correct all comments of functions in service
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
// @title GetSystemConfig
|
||||
// @description 读取配置文件
|
||||
// @auth (2020/04/05 20:22 )
|
||||
// @auth (2020/04/05 20:22)
|
||||
// @return err error
|
||||
// @return conf Server
|
||||
func GetSystemConfig() (err error, conf config.Server) {
|
||||
@@ -19,10 +19,11 @@ func GetSystemConfig() (err error, conf config.Server) {
|
||||
|
||||
// @title SetSystemConfig
|
||||
// @description set system config, 设置配置文件
|
||||
// @auth (2020/04/05 20:22 )
|
||||
// @auth (2020/04/05 20:22)
|
||||
// @param system model.System
|
||||
// @return err error
|
||||
func SetSystemConfig(s model.System) (err error) {
|
||||
cs := utils.StructToMap(s.Config)
|
||||
func SetSystemConfig(system model.System) (err error) {
|
||||
cs := utils.StructToMap(system.Config)
|
||||
for k, v := range cs {
|
||||
global.GVA_VP.Set(k, v)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user