chore: Clean up code by removing trailing whitespace in multiple files
This commit is contained in:
@@ -76,3 +76,4 @@ minio-data/
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -61,3 +61,4 @@ ENTRYPOINT ["./server"]
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -106,3 +106,4 @@ func (h *CaptchaHandler) Verify(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -244,3 +244,4 @@ func (h *ProfileHandler) SetActive(c *gin.Context) {
|
|||||||
|
|
||||||
RespondSuccess(c, gin.H{"message": "设置成功"})
|
RespondSuccess(c, gin.H{"message": "设置成功"})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -282,3 +282,4 @@ func (h *TextureHandler) GetUserFavorites(c *gin.Context) {
|
|||||||
c.JSON(200, model.NewPaginationResponse(TexturesToTextureInfos(textures), total, page, pageSize))
|
c.JSON(200, model.NewPaginationResponse(TexturesToTextureInfos(textures), total, page, pageSize))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -82,3 +82,4 @@ type YggdrasilRepository interface {
|
|||||||
GetPasswordByID(id int64) (string, error)
|
GetPasswordByID(id int64) (string, error)
|
||||||
ResetPassword(id int64, password string) error
|
ResetPassword(id int64, password string) error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -146,3 +146,4 @@ func (r *profileRepositoryImpl) UpdateKeyPair(profileId string, keyPair *model.K
|
|||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
return r.db.Model(&model.SystemConfig{}).Where("key = ?", key).Update("value", value).Error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -172,3 +172,4 @@ func (r *textureRepositoryImpl) CountByUploaderID(uploaderID int64) (int64, erro
|
|||||||
Count(&count).Error
|
Count(&count).Error
|
||||||
return count, err
|
return count, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -68,3 +68,4 @@ func (r *tokenRepositoryImpl) BatchDelete(accessTokens []string) (int64, error)
|
|||||||
result := r.db.Where("access_token IN ?", accessTokens).Delete(&model.Token{})
|
result := r.db.Where("access_token IN ?", accessTokens).Delete(&model.Token{})
|
||||||
return result.RowsAffected, result.Error
|
return result.RowsAffected, result.Error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -100,3 +100,4 @@ func handleNotFoundResult[T any](result *T, err error) (*T, error) {
|
|||||||
}
|
}
|
||||||
return result, nil
|
return result, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -142,3 +142,4 @@ type ServiceDeps struct {
|
|||||||
Storage *storage.StorageClient
|
Storage *storage.StorageClient
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -231,3 +231,4 @@ func generateRSAPrivateKeyInternal() (string, error) {
|
|||||||
return string(privateKeyPEM), nil
|
return string(privateKeyPEM), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -213,4 +213,3 @@ func parseTextureTypeInternal(textureType string) (model.TextureType, error) {
|
|||||||
return "", errors.New("无效的材质类型")
|
return "", errors.New("无效的材质类型")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -275,4 +275,3 @@ func (s *tokenServiceImpl) validateProfileByUserID(userID int64, UUID string) (b
|
|||||||
}
|
}
|
||||||
return profile.UserID == userID, nil
|
return profile.UserID == userID, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user