refactor: unify code formatting and improve push/search implementations
- Remove BOM from all Go source files - Standardize import ordering and whitespace across handlers and services - Replace PostgreSQL full-text search with ILIKE pattern matching in post and user repositories - Enhance JPush client with TLS transport, rate limit monitoring, and simplified API - Refactor PushService to include userID in device management methods - Add MaxDevicesPerUser limit and extract helper functions for push payload construction
This commit is contained in:
@@ -13,10 +13,10 @@ type SetupService interface {
|
||||
}
|
||||
|
||||
type setupService struct {
|
||||
userRepo repository.UserRepository
|
||||
roleRepo repository.RoleRepository
|
||||
casbinSvc CasbinService
|
||||
setupSecret string
|
||||
userRepo repository.UserRepository
|
||||
roleRepo repository.RoleRepository
|
||||
casbinSvc CasbinService
|
||||
setupSecret string
|
||||
}
|
||||
|
||||
func NewSetupService(
|
||||
@@ -60,4 +60,4 @@ func (s *setupService) SetupSuperAdmin(ctx context.Context, userID, setupSecret
|
||||
}
|
||||
|
||||
return s.casbinSvc.AddRoleForUser(ctx, user.ID, model.RoleSuperAdmin)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user