fix: gofmt 格式化 5 个文件 - 修复 golangci-lint 错误

This commit is contained in:
2026-04-20 07:40:06 +08:00
parent 1f8f839a1b
commit 93958adeff
5 changed files with 15 additions and 21 deletions
-2
View File
@@ -385,5 +385,3 @@ func (api AccessLogApi) GetWebsiteHourlyStatsEndpoint(c echo.Context) error {
func (api AccessLogApi) GetWebsiteStatusCodeStatsEndpoint(c echo.Context) error { func (api AccessLogApi) GetWebsiteStatusCodeStatsEndpoint(c echo.Context) error {
return Success(c, []interface{}{}) return Success(c, []interface{}{})
} }
-2
View File
@@ -382,5 +382,3 @@ func (r authorisedWebsiteRepository) FindWithDetails(c context.Context, pageInde
err = db.Order("authorised_websites.created desc").Offset((pageIndex - 1) * pageSize).Limit(pageSize).Find(&o).Error err = db.Order("authorised_websites.created desc").Offset((pageIndex - 1) * pageSize).Limit(pageSize).Find(&o).Error
return return
} }
-2
View File
@@ -140,5 +140,3 @@ func (r databaseAssetRepository) GetDBPort(dbType string) int {
func (r databaseAssetRepository) UpdateOwner(c context.Context, ownerId string, newOwnerId string) error { func (r databaseAssetRepository) UpdateOwner(c context.Context, ownerId string, newOwnerId string) error {
return r.GetDB(c).Model(&model.DatabaseAsset{}).Where("owner = ?", ownerId).Update("owner", newOwnerId).Error return r.GetDB(c).Model(&model.DatabaseAsset{}).Where("owner = ?", ownerId).Update("owner", newOwnerId).Error
} }