feat: add system service (#2083)

* feat: add system service

* chore: update
This commit is contained in:
boojack
2023-08-05 21:30:23 +08:00
committed by GitHub
parent 270a529948
commit 238f896907
25 changed files with 940 additions and 71 deletions

View File

@ -82,10 +82,6 @@ func (s *APIV1Service) registerSystemRoutes(g *echo.Group) {
}
if hostUser != nil {
systemStatus.Host = &User{ID: hostUser.ID}
// data desensitize
systemStatus.Host.OpenID = ""
systemStatus.Host.Email = ""
systemStatus.Host.AvatarURL = ""
}
systemSettingList, err := s.Store.ListSystemSettings(ctx, &store.FindSystemSetting{})