Skip to content

Commit

Permalink
rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
TremblingV5 committed Apr 8, 2024
1 parent 448ae47 commit 2bf7a4c
Show file tree
Hide file tree
Showing 464 changed files with 8,787 additions and 26,023 deletions.
1 change: 0 additions & 1 deletion applications/comment/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ if [ "$IS_SYSTEM_TEST_ENV" != "1" ]; then
else
go test -c -covermode=set -o output/bin/${RUN_NAME} -coverpkg=./...
fi

45 changes: 0 additions & 45 deletions applications/comment/cache/commentCntCache/cache.go

This file was deleted.

57 changes: 0 additions & 57 deletions applications/comment/cache/commentCntCache/cache_test.go

This file was deleted.

35 changes: 0 additions & 35 deletions applications/comment/cache/commentTotalCountCache/cache.go

This file was deleted.

39 changes: 0 additions & 39 deletions applications/comment/cache/commentTotalCountCache/cache_test.go

This file was deleted.

6 changes: 2 additions & 4 deletions applications/comment/dal/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ func main() {
})

var config configStruct.MySQLConfig
if err := configurator.InitConfig(
configurator.InitConfig(
&config, "mysql.yaml",
); err != nil {
panic(err)
}
)

db, err := mysqlIniter.InitDb(
config.Username,
Expand Down
16 changes: 16 additions & 0 deletions applications/comment/dal/migrate/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
package main

import (
"github.com/TremblingV5/DouTok/applications/comment/dal/model"
"github.com/TremblingV5/DouTok/applications/comment/misc"
"github.com/TremblingV5/DouTok/applications/comment/service"
)

func main() {
misc.InitViperConfig()

service.InitDb(
misc.GetConfig("MySQL.Username"),
misc.GetConfig("MySQL.Password"),
misc.GetConfig("MySQL.Host"),
misc.GetConfig("MySQL.Port"),
misc.GetConfig("MySQL.Database"),
)

service.DB.AutoMigrate(&model.Comment{}, &model.CommentCount{})
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package hbModel
package model

import (
"encoding/binary"
Expand Down

This file was deleted.

63 changes: 0 additions & 63 deletions applications/comment/dal/repository/comment/repository.go

This file was deleted.

Loading

0 comments on commit 2bf7a4c

Please sign in to comment.