| | |
| | | package system |
| | | |
| | | import ( |
| | | "github.com/flipped-aurora/gin-vue-admin/server/global" |
| | | "github.com/flipped-aurora/gin-vue-admin/server/model/common/response" |
| | | "github.com/flipped-aurora/gin-vue-admin/server/model/system" |
| | | systemRes "github.com/flipped-aurora/gin-vue-admin/server/model/system/response" |
| | | "github.com/flipped-aurora/gin-vue-admin/server/utils" |
| | | "srm/global" |
| | | "srm/model/common/response" |
| | | "srm/model/system" |
| | | "srm/utils" |
| | | |
| | | "github.com/gin-gonic/gin" |
| | | "go.uber.org/zap" |
| | |
| | | // @Summary 获取配置文件内容 |
| | | // @Security ApiKeyAuth |
| | | // @Produce application/json |
| | | // @Success 200 {object} response.Response{data=systemRes.SysConfigResponse,msg=string} "获取配置文件内容,返回包括系统配置" |
| | | // @Success 200 {object} response.Response{data=system.System,msg=string} "获取配置文件内容,返回包括系统配置" |
| | | // @Router /system/getSystemConfig [post] |
| | | func (s *SystemApi) GetSystemConfig(c *gin.Context) { |
| | | config, err := systemConfigService.GetSystemConfig() |
| | |
| | | response.FailWithMessage("获取失败", c) |
| | | return |
| | | } |
| | | response.OkWithDetailed(systemRes.SysConfigResponse{Config: config}, "获取成功", c) |
| | | response.OkWithDetailed(system.System{Config: config}, "获取成功", c) |
| | | } |
| | | |
| | | // SetSystemConfig |