opt: add enabled_msg_service config var to system config database

This commit is contained in:
RockYang
2023-08-03 10:04:45 +08:00
parent 48c4789505
commit 2ee4db5e48
5 changed files with 29 additions and 24 deletions

View File

@@ -66,5 +66,5 @@ type statusVo struct {
// Status check if the message service is enabled
func (h *SmsHandler) Status(c *gin.Context) {
resp.SUCCESS(c, statusVo{EnabledMsgService: h.App.Config.EnabledMsgService, EnabledRegister: h.App.SysConfig.EnabledRegister})
resp.SUCCESS(c, statusVo{EnabledMsgService: h.App.SysConfig.EnabledMsgService, EnabledRegister: h.App.SysConfig.EnabledRegister})
}