chore: Clean up code by removing trailing whitespace in multiple files

This commit is contained in:
lan
2025-12-02 18:41:34 +08:00
parent e05ba3b041
commit 188a05caa7
15 changed files with 13 additions and 2 deletions

View File

@@ -106,3 +106,4 @@ func (h *CaptchaHandler) Verify(c *gin.Context) {
}
}

View File

@@ -244,3 +244,4 @@ func (h *ProfileHandler) SetActive(c *gin.Context) {
RespondSuccess(c, gin.H{"message": "设置成功"})
}

View File

@@ -282,3 +282,4 @@ func (h *TextureHandler) GetUserFavorites(c *gin.Context) {
c.JSON(200, model.NewPaginationResponse(TexturesToTextureInfos(textures), total, page, pageSize))
}

View File

@@ -82,3 +82,4 @@ type YggdrasilRepository interface {
GetPasswordByID(id int64) (string, error)
ResetPassword(id int64, password string) error
}

View File

@@ -146,3 +146,4 @@ func (r *profileRepositoryImpl) UpdateKeyPair(profileId string, keyPair *model.K
return nil
})
}

View File

@@ -42,3 +42,4 @@ func (r *systemConfigRepositoryImpl) UpdateValue(key, value string) error {
return r.db.Model(&model.SystemConfig{}).Where("key = ?", key).Update("value", value).Error
}

View File

@@ -172,3 +172,4 @@ func (r *textureRepositoryImpl) CountByUploaderID(uploaderID int64) (int64, erro
Count(&count).Error
return count, err
}

View File

@@ -68,3 +68,4 @@ func (r *tokenRepositoryImpl) BatchDelete(accessTokens []string) (int64, error)
result := r.db.Where("access_token IN ?", accessTokens).Delete(&model.Token{})
return result.RowsAffected, result.Error
}

View File

@@ -100,3 +100,4 @@ func handleNotFoundResult[T any](result *T, err error) (*T, error) {
}
return result, nil
}

View File

@@ -142,3 +142,4 @@ type ServiceDeps struct {
Storage *storage.StorageClient
}

View File

@@ -231,3 +231,4 @@ func generateRSAPrivateKeyInternal() (string, error) {
return string(privateKeyPEM), nil
}

View File

@@ -213,4 +213,3 @@ func parseTextureTypeInternal(textureType string) (model.TextureType, error) {
return "", errors.New("无效的材质类型")
}
}

View File

@@ -275,4 +275,3 @@ func (s *tokenServiceImpl) validateProfileByUserID(userID int64, UUID string) (b
}
return profile.UserID == userID, nil
}