fix: gofmt 格式化 5 个文件 - 修复 golangci-lint 错误
This commit is contained in:
@@ -385,5 +385,3 @@ func (api AccessLogApi) GetWebsiteHourlyStatsEndpoint(c echo.Context) error {
|
||||
func (api AccessLogApi) GetWebsiteStatusCodeStatsEndpoint(c echo.Context) error {
|
||||
return Success(c, []interface{}{})
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -140,5 +140,3 @@ func (r databaseAssetRepository) GetDBPort(dbType string) int {
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user