网页端设置电报机器人开关

This commit is contained in:
vaxilu
2022-04-19 12:12:37 +08:00
parent 04ce724801
commit dfc6b56327
6 changed files with 23 additions and 15 deletions

View File

@@ -83,6 +83,8 @@ func (s *SettingService) GetAllSetting() (*entity.AllSetting, error) {
fieldV.SetInt(n)
case string:
fieldV.SetString(value)
case bool:
fieldV.SetBool(value == "true")
default:
return common.NewErrorf("unknown field %v type %v", key, t)
}