Skip to content

Commit

Permalink
chore: rename repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
just-pthai-it committed Aug 23, 2024
1 parent 024ef6c commit 58309d4
Show file tree
Hide file tree
Showing 20 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Teaching-supporting-system microservices (TSS-MSs)
# UTC Teaching-supporting-system microservices (UTCTSS-MSs)

## Installation
**Requirements:**
Expand Down
6 changes: 3 additions & 3 deletions app/main.go
Original file line number Diff line number Diff line change
@@ -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"
)
Expand Down
10 changes: 5 additions & 5 deletions core/controllers/FeedbackController.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
8 changes: 4 additions & 4 deletions core/controllers/HermesController.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions core/controllers/TeacherController.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package feedback_form

import "TSS-microservices/core/models"
import "UTCTSS-microservices/core/models"

type CreateFeedbackFormRequest struct {
// required: true
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion core/http/responses/feedback/GetManyResponse.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package feedback

import "TSS-microservices/core/models"
import "UTCTSS-microservices/core/models"

// swagger:response GetManyResponse
type GetManyResponse struct {
Expand Down
4 changes: 2 additions & 2 deletions core/middlewares/LoggerMiddleware.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion core/models/Teacher.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package models

import (
customTypes "TSS-microservices/custom-types"
customTypes "UTCTSS-microservices/custom-types"
"gorm.io/gorm"
"time"
)
Expand Down
4 changes: 2 additions & 2 deletions core/repositories/FeedbackRepository.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package repositories

import (
"TSS-microservices/core/models"
"TSS-microservices/database"
"UTCTSS-microservices/core/models"
"UTCTSS-microservices/database"
)

type FeedbackRepository struct {
Expand Down
4 changes: 2 additions & 2 deletions core/repositories/MailTemplateRepository.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package repositories

import (
"TSS-microservices/core/models"
"TSS-microservices/database"
"UTCTSS-microservices/core/models"
"UTCTSS-microservices/database"
)

type MailTemplateRepository struct {
Expand Down
4 changes: 2 additions & 2 deletions core/repositories/TeacherRepository.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package repositories

import (
"TSS-microservices/core/models"
"TSS-microservices/database"
"UTCTSS-microservices/core/models"
"UTCTSS-microservices/database"
)

type TeacherRepository struct {
Expand Down
2 changes: 1 addition & 1 deletion core/repositories/interface/IRepository.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions core/routes/api-v1.go
Original file line number Diff line number Diff line change
@@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions database/connection.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion database/migrations/tool/migrate.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions docs/docs.go
Original file line number Diff line number Diff line change
@@ -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
//
Expand All @@ -19,4 +19,4 @@
// swagger:meta
package docs

import _ "TSS-microservices/core/http/responses"
import _ "UTCTSS-microservices/core/http/responses"
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module TSS-microservices
module UTCTSS-microservices

go 1.22

Expand Down
12 changes: 6 additions & 6 deletions tests/feedback_tests/feedback_test.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 58309d4

Please sign in to comment.