Repository: Ptt-official-app/Ptt-backend (go)

Issue:
[主線] [PTT] 將 PichuChen/go-bbs 改為Ptt-official-app/go-bbs
### 實作細節 / Details of Implement
改為正式使用的作者名

### 期程 / Schedule
- 討論時間： 一天
- 實作時間： 一天
- 確認時間： 一天 

### 相關文件 / Documents
無

Pull request:
修正包名
## 👏 解決掉的 issue / Resolved Issues
- close #121
- close #0

## 📝 相關的 issue / Related Issues
- #17 

## ⛏ 變更內容 / Details of Changes
變更包名

Patch:
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 96bb893..29b036d 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -29,7 +29,7 @@
 
 * 交流時請先確認 g0v 的 [CoC](https://github.com/g0v/coc/blob/master/COC.md)
 * 如果有自己可以做而且沒有被指派的 ISSUE 的話，請在 ISSUE 下方回應「交給我」後再開始開發。
-* 關於 [good first issue](https://github.com/PichuChen/go-bbs/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) 是推薦給新手的
+* 關於 [good first issue](https://github.com/Ptt-official-app/go-bbs/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) 是推薦給新手的
 * 如果您可能要離開作業半天以上的話，請確保其他人可以接續您的工作。（如果長時間佔住 Issue，那麼這個 Issue 會被卡住。）
 * 對於一天以上沒有更新的 ISSUE，我們可能會解除指派，在工作中善用 Draft Pull Request 的話可以讓大家更輕易地瞭解您目前的進度。
 * ISSUE 相關的問題請在 ISSUE 內回應欄討論（而不是 Slack）。
diff --git a/README.md b/README.md
index c9d52c4..a5bcaa4 100644
--- a/README.md
+++ b/README.md
@@ -133,7 +133,7 @@ ASCII 圖片產圖引擎
 ## 文件檔案部分
 
 * [RESTful API 文件](https://docs.google.com/document/d/18DsZOyrlr5BIl2kKxZH7P2QxFLG02xL2SO0PzVHVY3k/edit?usp=sharing)
-* [go-bbs Package](https://github.com/PichuChen/go-bbs)
+* [go-bbs Package](https://github.com/Ptt-official-app/go-bbs)
 * [Openapi](http://localhost:8081/swagger) 使用 docker-compose 啟動     
   `sudo docker-compose up -d`
 
diff --git a/go.mod b/go.mod
index 84e5d06..7670227 100644
--- a/go.mod
+++ b/go.mod
@@ -3,7 +3,7 @@ module github.com/Ptt-official-app/Ptt-backend
 go 1.14
 
 require (
-	github.com/PichuChen/go-bbs v0.2.5
+	github.com/Ptt-official-app/go-bbs v0.2.6
 	github.com/dgrijalva/jwt-go v3.2.0+incompatible
 	github.com/pelletier/go-toml v1.8.1
 )
diff --git a/go.sum b/go.sum
index 8f76ec3..1d90c65 100644
--- a/go.sum
+++ b/go.sum
@@ -1,5 +1,7 @@
-github.com/PichuChen/go-bbs v0.2.5 h1:Nql/nLwm4zdWuB8h0f9pcxAawCvjzQTx9iJcGjqQWLA=
-github.com/PichuChen/go-bbs v0.2.5/go.mod h1:RzkgmgCsX4967OQ6HSq4Adb4nJEUivp6jW2lC8Dw+nQ=
+github.com/Ptt-official-app/go-bbs v0.2.5 h1:Nql/nLwm4zdWuB8h0f9pcxAawCvjzQTx9iJcGjqQWLA=
+github.com/Ptt-official-app/go-bbs v0.2.5/go.mod h1:RzkgmgCsX4967OQ6HSq4Adb4nJEUivp6jW2lC8Dw+nQ=
+github.com/Ptt-official-app/go-bbs v0.2.6 h1:bTLyrIRwslQwW1MFJ5YTHnhjvD7x1o+zTlMmhhFl2DA=
+github.com/Ptt-official-app/go-bbs v0.2.6/go.mod h1:rdMf6cm4SWIX+AJwfn0GHVj8jfovAbnN1x1BL8p/IZM=
 github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
 github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
diff --git a/internal/delivery/http/route_boards.go b/internal/delivery/http/route_boards.go
index 1515b49..d0053d9 100644
--- a/internal/delivery/http/route_boards.go
+++ b/internal/delivery/http/route_boards.go
@@ -5,8 +5,8 @@ import (
 	"encoding/json"
 	"net/http"
 
-	"github.com/PichuChen/go-bbs"
 	"github.com/Ptt-official-app/Ptt-backend/internal/usecase"
+	"github.com/Ptt-official-app/go-bbs"
 )
 
 func (delivery *httpDelivery) getBoardList(w http.ResponseWriter, r *http.Request) {
@@ -66,7 +66,7 @@ func (delivery *httpDelivery) getPopularBoardList(w http.ResponseWriter, r *http
 	responseMap := map[string]interface{}{
 		"data": struct {
 			Items []interface{} `json:"items"`
-		}{ dataList },
+		}{dataList},
 	}
 
 	b, _ := json.MarshalIndent(responseMap, "", "  ")
diff --git a/internal/delivery/http/route_classes.go b/internal/delivery/http/route_classes.go
index 0fa8243..b3a846b 100644
--- a/internal/delivery/http/route_classes.go
+++ b/internal/delivery/http/route_classes.go
@@ -2,8 +2,8 @@ package http
 
 import (
 	"context"
-	// "github.com/PichuChen/go-bbs"
-	// "github.com/PichuChen/go-bbs/crypt"
+	// "github.com/Ptt-official-app/go-bbs"
+	// "github.com/Ptt-official-app/go-bbs/crypt"
 	// "log"
 	"encoding/json"
 	"fmt"
diff --git a/internal/delivery/http/route_token.go b/internal/delivery/http/route_token.go
index bb5dcbb..6deb4a4 100644
--- a/internal/delivery/http/route_token.go
+++ b/internal/delivery/http/route_token.go
@@ -7,7 +7,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/PichuChen/go-bbs"
+	"github.com/Ptt-official-app/go-bbs"
 )
 
 func (delivery *httpDelivery) postToken(w http.ResponseWriter, r *http.Request) {
diff --git a/internal/repository/article.go b/internal/repository/article.go
index 7834a1d..d7cbd05 100644
--- a/internal/repository/article.go
+++ b/internal/repository/article.go
@@ -3,7 +3,7 @@ package repository
 import (
 	"context"
 
-	"github.com/PichuChen/go-bbs"
+	"github.com/Ptt-official-app/go-bbs"
 )
 
 // PopularArticleRecord is an ArticleRecord which has boardID information.
diff --git a/internal/repository/board.go b/internal/repository/board.go
index 802b4a8..d2c79d5 100644
--- a/internal/repository/board.go
+++ b/internal/repository/board.go
@@ -4,7 +4,7 @@ import (
 	"context"
 	"fmt"
 
-	"github.com/PichuChen/go-bbs"
+	"github.com/Ptt-official-app/go-bbs"
 )
 
 func (repo *repository) GetBoards(_ context.Context) []bbs.BoardRecord {
diff --git a/internal/repository/repository.go b/internal/repository/repository.go
index db6ad38..d9816da 100644
--- a/internal/repository/repository.go
+++ b/internal/repository/repository.go
@@ -4,8 +4,8 @@ import (
 	"context"
 	"fmt"
 
-	"github.com/PichuChen/go-bbs"
 	"github.com/Ptt-official-app/Ptt-backend/internal/logging"
+	"github.com/Ptt-official-app/go-bbs"
 )
 
 var (
diff --git a/internal/repository/user.go b/internal/repository/user.go
index bdb7b97..5548fe7 100644
--- a/internal/repository/user.go
+++ b/internal/repository/user.go
@@ -4,7 +4,7 @@ import (
 	"context"
 	"fmt"
 
-	"github.com/PichuChen/go-bbs"
+	"github.com/Ptt-official-app/go-bbs"
 )
 
 // BBSUserRecord : currently interface `bbs.UserRecord` of go-bbs
@@ -61,7 +61,7 @@ func loadUserRecords(db *bbs.DB) ([]bbs.UserRecord, error) {
 		logger.Errorf("get user rec error: %v", err)
 		return nil, fmt.Errorf("failed to read user records: %w", err)
 	}
-	results := make([] bbs.UserRecord, 0, len(userRecords))
+	results := make([]bbs.UserRecord, 0, len(userRecords))
 	for _, rec := range userRecords {
 		results = append(results, &bbsUserRecord{rec})
 	}
diff --git a/internal/usecase/board.go b/internal/usecase/board.go
index b433348..a3d98f9 100644
--- a/internal/usecase/board.go
+++ b/internal/usecase/board.go
@@ -5,7 +5,7 @@ import (
 	"fmt"
 	"strings"
 
-	"github.com/PichuChen/go-bbs"
+	"github.com/Ptt-official-app/go-bbs"
 )
 
 type ArticleSearchCond struct {
diff --git a/internal/usecase/usecase.go b/internal/usecase/usecase.go
index 7f97679..1b2e57c 100644
--- a/internal/usecase/usecase.go
+++ b/internal/usecase/usecase.go
@@ -3,10 +3,10 @@ package usecase
 import (
 	"context"
 
-	"github.com/PichuChen/go-bbs"
 	"github.com/Ptt-official-app/Ptt-backend/internal/config"
 	"github.com/Ptt-official-app/Ptt-backend/internal/logging"
 	"github.com/Ptt-official-app/Ptt-backend/internal/repository"
+	"github.com/Ptt-official-app/go-bbs"
 )
 
 // Usecase is the implementation of backend business logic.
diff --git a/internal/usecase/user.go b/internal/usecase/user.go
index 970d5e5..97f33f7 100644
--- a/internal/usecase/user.go
+++ b/internal/usecase/user.go
@@ -5,8 +5,8 @@ import (
 	"fmt"
 	"time"
 
-	"github.com/PichuChen/go-bbs"
 	"github.com/Ptt-official-app/Ptt-backend/internal/repository"
+	"github.com/Ptt-official-app/go-bbs"
 )
 
 func (usecase *usecase) GetUserByID(ctx context.Context, userID string) (bbs.UserRecord, error) {
@@ -48,15 +48,15 @@ func (usecase *usecase) GetUserInformation(ctx context.Context, userID string) (
 		"number_of_login_days": fmt.Sprintf("%d", user.NumLoginDays()),
 		"number_of_posts":      fmt.Sprintf("%d", user.NumPosts()),
 		"number_of_badposts":   fmt.Sprintf("%d", user.NumBadPosts()),
-		"money":           fmt.Sprintf("%d", user.Money()),
-		"money_description": getMoneyDiscription(user.Money()),
-		"last_login_time": user.LastLogin().Format(time.RFC3339),
-		"last_login_ipv4": user.LastHost(),
-		"last_login_ip":   user.LastHost(),
-		"last_login_country": user.LastCountry(),
-		"mailbox_description": user.MailboxDescription(),
-		"chess_status": user.ChessStatus(),
-		"plan":         user.Plan(),
+		"money":                fmt.Sprintf("%d", user.Money()),
+		"money_description":    getMoneyDiscription(user.Money()),
+		"last_login_time":      user.LastLogin().Format(time.RFC3339),
+		"last_login_ipv4":      user.LastHost(),
+		"last_login_ip":        user.LastHost(),
+		"last_login_country":   user.LastCountry(),
+		"mailbox_description":  user.MailboxDescription(),
+		"chess_status":         user.ChessStatus(),
+		"plan":                 user.Plan(),
 	}
 	return result, nil
 }
diff --git a/main.go b/main.go
index e584e96..cf8efc9 100644
--- a/main.go
+++ b/main.go
@@ -7,8 +7,8 @@ import (
 	"github.com/Ptt-official-app/Ptt-backend/internal/repository"
 	"github.com/Ptt-official-app/Ptt-backend/internal/usecase"
 
-	"github.com/PichuChen/go-bbs"
-	_ "github.com/PichuChen/go-bbs/pttbbs"
+	"github.com/Ptt-official-app/go-bbs"
+	_ "github.com/Ptt-official-app/go-bbs/pttbbs"
 )
 
 func main() {


Test patch:
diff --git a/internal/delivery/http/route_boards_mock_test.go b/internal/delivery/http/route_boards_mock_test.go
index 43bf749..ed593fa 100644
--- a/internal/delivery/http/route_boards_mock_test.go
+++ b/internal/delivery/http/route_boards_mock_test.go
@@ -2,8 +2,8 @@ package http
 
 import (
 	"context"
-	"github.com/PichuChen/go-bbs"
 	"github.com/Ptt-official-app/Ptt-backend/internal/usecase"
+	"github.com/Ptt-official-app/go-bbs"
 )
 
 func (usecase *MockUsecase) GetBoardByID(ctx context.Context, boardID string) (bbs.BoardRecord, error) {
@@ -45,7 +45,7 @@ func NewMockBoardRecord(classID, boardID, title string, isClass bool) *MockBoard
 }
 
 func (b *MockBoardRecord) BoardId() string { return b.boardID }
-func (b *MockBoardRecord) Title() string { return b.title }
-func (b *MockBoardRecord) IsClass() bool { return b.isClass }
+func (b *MockBoardRecord) Title() string   { return b.title }
+func (b *MockBoardRecord) IsClass() bool   { return b.isClass }
 func (b *MockBoardRecord) ClassId() string { return b.classID }
-func (b *MockBoardRecord) BM() []string { return make([]string, 0) }
+func (b *MockBoardRecord) BM() []string    { return make([]string, 0) }
diff --git a/internal/delivery/http/route_classes_mock_test.go b/internal/delivery/http/route_classes_mock_test.go
index 8507431..b9eaced 100644
--- a/internal/delivery/http/route_classes_mock_test.go
+++ b/internal/delivery/http/route_classes_mock_test.go
@@ -2,7 +2,7 @@ package http
 
 import (
 	"context"
-	"github.com/PichuChen/go-bbs"
+	"github.com/Ptt-official-app/go-bbs"
 )
 
 type MockClassBoardRecord struct {
diff --git a/internal/delivery/http/route_users_mock_test.go b/internal/delivery/http/route_users_mock_test.go
index 66cdfd6..9ed59d7 100644
--- a/internal/delivery/http/route_users_mock_test.go
+++ b/internal/delivery/http/route_users_mock_test.go
@@ -4,7 +4,7 @@ import (
 	"context"
 	"time"
 
-	"github.com/PichuChen/go-bbs"
+	"github.com/Ptt-official-app/go-bbs"
 )
 
 func (usecase *MockUsecase) GetUserByID(ctx context.Context, userID string) (bbs.UserRecord, error) {
diff --git a/internal/repository/user_test.go b/internal/repository/user_test.go
index 1ef1d5e..ea7249b 100644
--- a/internal/repository/user_test.go
+++ b/internal/repository/user_test.go
@@ -4,7 +4,7 @@ import (
 	"context"
 	"testing"
 
-	"github.com/PichuChen/go-bbs"
+	"github.com/Ptt-official-app/go-bbs"
 )
 
 func TestGetUsers(t *testing.T) {
diff --git a/internal/usecase/board_mock_test.go b/internal/usecase/board_mock_test.go
index 48a98cb..870828f 100644
--- a/internal/usecase/board_mock_test.go
+++ b/internal/usecase/board_mock_test.go
@@ -4,8 +4,8 @@ import (
 	"context"
 	"time"
 
-	"github.com/PichuChen/go-bbs"
 	"github.com/Ptt-official-app/Ptt-backend/internal/repository"
+	"github.com/Ptt-official-app/go-bbs"
 )
 
 func (repo *MockRepository) GetBoards(ctx context.Context) []bbs.BoardRecord {
@@ -53,7 +53,7 @@ func (repo *MockRepository) GetPopularArticles(ctx context.Context) ([]repositor
 			date:           "",
 			title:          "Popular Article 1",
 			money:          0,
-			boardID: "Gossiping",
+			boardID:        "Gossiping",
 		},
 		{
 			filename:       "",
@@ -63,7 +63,7 @@ func (repo *MockRepository) GetPopularArticles(ctx context.Context) ([]repositor
 			date:           "",
 			title:          "Popular Article 2",
 			money:          0,
-			boardID: "Gossiping",
+			boardID:        "Gossiping",
 		},
 		{
 			filename:       "",
@@ -73,7 +73,7 @@ func (repo *MockRepository) GetPopularArticles(ctx context.Context) ([]repositor
 			date:           "",
 			title:          "Popular Article 3",
 			money:          0,
-			boardID: "Joke",
+			boardID:        "Joke",
 		},
 	}
 	result := make([]repository.PopularArticleRecord, len(articleRecords))
diff --git a/internal/usecase/board_test.go b/internal/usecase/board_test.go
index 1d777fd..fedf78b 100644
--- a/internal/usecase/board_test.go
+++ b/internal/usecase/board_test.go
@@ -4,7 +4,7 @@ import (
 	"context"
 	"testing"
 
-	"github.com/PichuChen/go-bbs"
+	"github.com/Ptt-official-app/go-bbs"
 )
 
 func TestSearchArticles(t *testing.T) {
diff --git a/internal/usecase/user_mock_test.go b/internal/usecase/user_mock_test.go
index 997fcef..e07b393 100644
--- a/internal/usecase/user_mock_test.go
+++ b/internal/usecase/user_mock_test.go
@@ -4,7 +4,7 @@ import (
 	"context"
 	"time"
 
-	"github.com/PichuChen/go-bbs"
+	"github.com/Ptt-official-app/go-bbs"
 )
 
 func (repo *MockRepository) GetUsers(ctx context.Context) ([]bbs.UserRecord, error) {