moved accounts to MVC directories
This commit is contained in:
parent
819ec891e7
commit
34dd280fba
4 changed files with 16 additions and 16 deletions
4
main.go
4
main.go
|
@ -9,11 +9,11 @@ import (
|
|||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"arimelody-web/account/model"
|
||||
"arimelody-web/admin"
|
||||
"arimelody-web/api"
|
||||
"arimelody-web/global"
|
||||
"arimelody-web/view"
|
||||
"arimelody-web/controller"
|
||||
"arimelody-web/templates"
|
||||
|
||||
"github.com/jmoiron/sqlx"
|
||||
|
@ -47,7 +47,7 @@ func main() {
|
|||
accountsCount := 0
|
||||
global.DB.Get(&accountsCount, "SELECT count(*) FROM account")
|
||||
if accountsCount == 0 {
|
||||
code := model.GenerateInviteCode(8)
|
||||
code := controller.GenerateInviteCode(8)
|
||||
|
||||
tx, err := global.DB.Begin()
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue