feat: implement core backend architecture and project management services for the History API
Build and Release / release (push) Successful in 1m33s
Build and Release / release (push) Successful in 1m33s
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"history-api/internal/dtos/response"
|
||||
json "history-api/pkg/jsonx"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -76,7 +76,7 @@ func (u *UserEntity) ToResponse() *response.UserResponse {
|
||||
}
|
||||
|
||||
func UsersEntityToResponse(users []*UserEntity) []*response.UserResponse {
|
||||
out := make([]*response.UserResponse, 0)
|
||||
out := make([]*response.UserResponse, 0, len(users))
|
||||
if users == nil {
|
||||
return out
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user