+8
.idea/.gitignore
+8
.idea/.gitignore
+9
.idea/Coves.iml
+9
.idea/Coves.iml
···
+17
.idea/dataSources.xml
+17
.idea/dataSources.xml
···+<data-source source="LOCAL" name="postgres@localhost" uuid="66e25b60-2901-4e78-bdb8-343f2c71fb79">
+8
.idea/modules.xml
+8
.idea/modules.xml
+6
.idea/vcs.xml
+6
.idea/vcs.xml
+160
CLAUDE.md
+160
CLAUDE.md
···+You are a distinguished developer helping build Coves, a forum like atProto social media platform (think reddit).
+67
cmd/server/main.go
+67
cmd/server/main.go
···
+16
go.mod
+16
go.mod
···
+48
go.sum
+48
go.sum
···+github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM=+github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=+github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=+modernc.org/gc/v3 v3.0.0-20240107210532-573471604cb6 h1:5D53IMaUuA5InSeMu9eJtlQXS2NxAhyWQvkKEgXZhHI=+modernc.org/gc/v3 v3.0.0-20240107210532-573471604cb6/go.mod h1:Qz0X07sNOR1jWYCrJMEnbW/X55x206Q7Vt4mz6/wHp4=
+71
internal/api/handlers/users.go
+71
internal/api/handlers/users.go
···+if strings.Contains(err.Error(), "required") || strings.Contains(err.Error(), "invalid") || strings.Contains(err.Error(), "at least") {
+133
internal/api/handlers/users_test.go
+133
internal/api/handlers/users_test.go
···+func (m *mockUserService) UpdateUser(id int, req users.UpdateUserRequest) (*users.User, error) {
+18
internal/api/routes/users.go
+18
internal/api/routes/users.go
···
+67
internal/core/errors/errors.go
+67
internal/core/errors/errors.go
···
+10
internal/core/users/interfaces.go
+10
internal/core/users/interfaces.go
···
+10
internal/core/users/repository.go
+10
internal/core/users/repository.go
+164
internal/core/users/service.go
+164
internal/core/users/service.go
···
+272
internal/core/users/service_test.go
+272
internal/core/users/service_test.go
···
+18
internal/core/users/user.go
+18
internal/core/users/user.go
···
+12
internal/db/local_dev_db_compose/docker-compose.yml
+12
internal/db/local_dev_db_compose/docker-compose.yml
···
+14
internal/db/migrations/001_create_users_table.sql
+14
internal/db/migrations/001_create_users_table.sql
···
+123
internal/db/postgres/user_repo.go
+123
internal/db/postgres/user_repo.go
···
server
server
This is a binary file and will not be displayed.
+94
tests/integration/integration_test.go
+94
tests/integration/integration_test.go
···+t.Errorf("Expected status %d, got %d. Response: %s", http.StatusCreated, w.Code, w.Body.String())