diff --git a/README.md b/README.md index dfa3b4f..3dc5fb1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Teaching-supporting-system microservices (TSS-MSs) +# UTC Teaching-supporting-system microservices (UTCTSS-MSs) ## Installation **Requirements:** diff --git a/app/main.go b/app/main.go index 9c6e184..d5afc5c 100644 --- a/app/main.go +++ b/app/main.go @@ -1,9 +1,9 @@ package main import ( - "TSS-microservices/core/middlewares" - "TSS-microservices/core/routes" - _ "TSS-microservices/docs" + "UTCTSS-microservices/core/middlewares" + "UTCTSS-microservices/core/routes" + _ "UTCTSS-microservices/docs" "fmt" "github.com/gin-gonic/gin" ) diff --git a/core/controllers/FeedbackController.go b/core/controllers/FeedbackController.go index 7e5fb88..4a032dc 100644 --- a/core/controllers/FeedbackController.go +++ b/core/controllers/FeedbackController.go @@ -1,11 +1,11 @@ package controllers import ( - "TSS-microservices/common" - feedback_form "TSS-microservices/core/http/requests/feedback-form" - feedback_response "TSS-microservices/core/http/responses/feedback" - "TSS-microservices/core/models" - "TSS-microservices/core/repositories" + "UTCTSS-microservices/common" + feedback_form "UTCTSS-microservices/core/http/requests/feedback-form" + feedback_response "UTCTSS-microservices/core/http/responses/feedback" + "UTCTSS-microservices/core/models" + "UTCTSS-microservices/core/repositories" "github.com/gin-gonic/gin" "net/http" "strconv" diff --git a/core/controllers/HermesController.go b/core/controllers/HermesController.go index 736b873..6fad8f5 100644 --- a/core/controllers/HermesController.go +++ b/core/controllers/HermesController.go @@ -1,10 +1,10 @@ package controllers import ( - "TSS-microservices/common" - hermes_forms "TSS-microservices/core/http/requests/hermes-forms" - "TSS-microservices/core/models" - "TSS-microservices/core/repositories" + "UTCTSS-microservices/common" + hermes_forms "UTCTSS-microservices/core/http/requests/hermes-forms" + "UTCTSS-microservices/core/models" + "UTCTSS-microservices/core/repositories" "bytes" "fmt" "github.com/gin-gonic/gin" diff --git a/core/controllers/TeacherController.go b/core/controllers/TeacherController.go index 65f9b37..9ceebdd 100644 --- a/core/controllers/TeacherController.go +++ b/core/controllers/TeacherController.go @@ -1,9 +1,9 @@ package controllers import ( - teacher_form "TSS-microservices/core/http/requests/teacher-form" - "TSS-microservices/core/models" - "TSS-microservices/core/repositories" + teacher_form "UTCTSS-microservices/core/http/requests/teacher-form" + "UTCTSS-microservices/core/models" + "UTCTSS-microservices/core/repositories" "fmt" "github.com/gin-gonic/gin" "net/http" diff --git a/core/http/requests/feedback-form/CreateFeedbackFormRequest.go b/core/http/requests/feedback-form/CreateFeedbackFormRequest.go index 8644a0a..3edeb24 100644 --- a/core/http/requests/feedback-form/CreateFeedbackFormRequest.go +++ b/core/http/requests/feedback-form/CreateFeedbackFormRequest.go @@ -1,6 +1,6 @@ package feedback_form -import "TSS-microservices/core/models" +import "UTCTSS-microservices/core/models" type CreateFeedbackFormRequest struct { // required: true diff --git a/core/http/requests/teacher-form/CreateTeacherFormRequest.go b/core/http/requests/teacher-form/CreateTeacherFormRequest.go index 11f73a7..5503242 100644 --- a/core/http/requests/teacher-form/CreateTeacherFormRequest.go +++ b/core/http/requests/teacher-form/CreateTeacherFormRequest.go @@ -1,6 +1,6 @@ package teacher_form -import customTypes "TSS-microservices/custom-types" +import customTypes "UTCTSS-microservices/custom-types" // swagger:parameters CreateTeacher type CreateTeacherFormRequest struct { diff --git a/core/http/responses/feedback/GetManyResponse.go b/core/http/responses/feedback/GetManyResponse.go index e20020c..e924f99 100644 --- a/core/http/responses/feedback/GetManyResponse.go +++ b/core/http/responses/feedback/GetManyResponse.go @@ -1,6 +1,6 @@ package feedback -import "TSS-microservices/core/models" +import "UTCTSS-microservices/core/models" // swagger:response GetManyResponse type GetManyResponse struct { diff --git a/core/middlewares/LoggerMiddleware.go b/core/middlewares/LoggerMiddleware.go index afaa011..5178183 100644 --- a/core/middlewares/LoggerMiddleware.go +++ b/core/middlewares/LoggerMiddleware.go @@ -1,8 +1,8 @@ package middlewares import ( - "TSS-microservices/common" - "TSS-microservices/utils" + "UTCTSS-microservices/common" + "UTCTSS-microservices/utils" "fmt" "github.com/gin-gonic/gin" "log" diff --git a/core/models/Teacher.go b/core/models/Teacher.go index 48e092c..47f93b3 100644 --- a/core/models/Teacher.go +++ b/core/models/Teacher.go @@ -1,7 +1,7 @@ package models import ( - customTypes "TSS-microservices/custom-types" + customTypes "UTCTSS-microservices/custom-types" "gorm.io/gorm" "time" ) diff --git a/core/repositories/FeedbackRepository.go b/core/repositories/FeedbackRepository.go index 52a91e6..95db88d 100644 --- a/core/repositories/FeedbackRepository.go +++ b/core/repositories/FeedbackRepository.go @@ -1,8 +1,8 @@ package repositories import ( - "TSS-microservices/core/models" - "TSS-microservices/database" + "UTCTSS-microservices/core/models" + "UTCTSS-microservices/database" ) type FeedbackRepository struct { diff --git a/core/repositories/MailTemplateRepository.go b/core/repositories/MailTemplateRepository.go index 21e1240..33d590f 100644 --- a/core/repositories/MailTemplateRepository.go +++ b/core/repositories/MailTemplateRepository.go @@ -1,8 +1,8 @@ package repositories import ( - "TSS-microservices/core/models" - "TSS-microservices/database" + "UTCTSS-microservices/core/models" + "UTCTSS-microservices/database" ) type MailTemplateRepository struct { diff --git a/core/repositories/TeacherRepository.go b/core/repositories/TeacherRepository.go index ad4e77b..82f69ae 100644 --- a/core/repositories/TeacherRepository.go +++ b/core/repositories/TeacherRepository.go @@ -1,8 +1,8 @@ package repositories import ( - "TSS-microservices/core/models" - "TSS-microservices/database" + "UTCTSS-microservices/core/models" + "UTCTSS-microservices/database" ) type TeacherRepository struct { diff --git a/core/repositories/interface/IRepository.go b/core/repositories/interface/IRepository.go index 52bad5f..54954e5 100644 --- a/core/repositories/interface/IRepository.go +++ b/core/repositories/interface/IRepository.go @@ -1,6 +1,6 @@ package _interface -import _interface "TSS-microservices/core/models/interface" +import _interface "UTCTSS-microservices/core/models/interface" type IRepository interface { Create(model *_interface.IModel) error diff --git a/core/routes/api-v1.go b/core/routes/api-v1.go index bf586e9..ad8e16a 100644 --- a/core/routes/api-v1.go +++ b/core/routes/api-v1.go @@ -1,10 +1,10 @@ package routes import ( - "TSS-microservices/core/controllers" - "TSS-microservices/core/repositories" - "TSS-microservices/database" - "TSS-microservices/database/drivers" + "UTCTSS-microservices/core/controllers" + "UTCTSS-microservices/core/repositories" + "UTCTSS-microservices/database" + "UTCTSS-microservices/database/drivers" "github.com/gin-gonic/gin" "os" ) diff --git a/database/connection.go b/database/connection.go index 83c72b4..daea41c 100644 --- a/database/connection.go +++ b/database/connection.go @@ -1,8 +1,8 @@ package database import ( - "TSS-microservices/common" - "TSS-microservices/database/drivers" + "UTCTSS-microservices/common" + "UTCTSS-microservices/database/drivers" "database/sql" "gorm.io/gorm" "log" diff --git a/database/migrations/tool/migrate.go b/database/migrations/tool/migrate.go index 1c77d86..f62cb0f 100644 --- a/database/migrations/tool/migrate.go +++ b/database/migrations/tool/migrate.go @@ -1,7 +1,7 @@ package main import ( - _ "TSS-microservices/database" + _ "UTCTSS-microservices/database" "context" _ "github.com/go-sql-driver/mysql" "github.com/pressly/goose/v3" diff --git a/docs/docs.go b/docs/docs.go index d2dd5f6..829b122 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1,6 +1,6 @@ -// Package docs TSS-microservices APIs +// Package docs UTCTSS-microservices APIs // -// # Document of TSS-microservices APIs +// # Document of UTCTSS-microservices APIs // // there are no TOS at this moment, use at your own risk we take no responsibility // @@ -19,4 +19,4 @@ // swagger:meta package docs -import _ "TSS-microservices/core/http/responses" +import _ "UTCTSS-microservices/core/http/responses" diff --git a/go.mod b/go.mod index a8414a6..a394b70 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module TSS-microservices +module UTCTSS-microservices go 1.22 diff --git a/tests/feedback_tests/feedback_test.go b/tests/feedback_tests/feedback_test.go index 7b61b33..629aa06 100644 --- a/tests/feedback_tests/feedback_test.go +++ b/tests/feedback_tests/feedback_test.go @@ -1,12 +1,12 @@ package feedback_tests import ( - "TSS-microservices/core/controllers" - "TSS-microservices/core/models" - "TSS-microservices/core/repositories" - "TSS-microservices/core/routes" - "TSS-microservices/database" - "TSS-microservices/database/drivers" + "UTCTSS-microservices/core/controllers" + "UTCTSS-microservices/core/models" + "UTCTSS-microservices/core/repositories" + "UTCTSS-microservices/core/routes" + "UTCTSS-microservices/database" + "UTCTSS-microservices/database/drivers" "encoding/json" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert"