Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

非常大的改进 #61

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 4 additions & 6 deletions controllers/AdminControllers/BannerController.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ package AdminControllers

import (
"fmt"

"time"

"os"

"strings"
"time"

"github.com/TruthHun/DocHub/helper"
"github.com/TruthHun/DocHub/models"
"github.com/astaxie/beego/orm"

"DocHub/helper"
"DocHub/models"
)

//IT文库注册会员管理
Expand Down
10 changes: 4 additions & 6 deletions controllers/AdminControllers/BaseController.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
package AdminControllers

import (
"fmt"
"strings"

"github.com/TruthHun/DocHub/models"

"time"

"fmt"

"github.com/TruthHun/DocHub/helper"
"github.com/astaxie/beego"

"DocHub/helper"
"DocHub/models"
)

type BaseController struct {
Expand Down
9 changes: 4 additions & 5 deletions controllers/AdminControllers/DocController.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ package AdminControllers

import (
"fmt"

"sort"

"strings"

"github.com/TruthHun/DocHub/helper"
"github.com/TruthHun/DocHub/helper/conv"
"github.com/TruthHun/DocHub/models"
"github.com/astaxie/beego/orm"

"DocHub/helper"
"DocHub/helper/conv"
"DocHub/models"
)

type DocController struct {
Expand Down
6 changes: 3 additions & 3 deletions controllers/AdminControllers/FriendController.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package AdminControllers
import (
"time"

"github.com/TruthHun/DocHub/helper"

"github.com/TruthHun/DocHub/models"
"github.com/astaxie/beego/orm"

"DocHub/helper"
"DocHub/models"
)

type FriendController struct {
Expand Down
4 changes: 2 additions & 2 deletions controllers/AdminControllers/KindEditorController.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"time"

"github.com/TruthHun/DocHub/helper"
"github.com/TruthHun/DocHub/models"
"DocHub/helper"
"DocHub/models"
)

type KindEditorController struct {
Expand Down
6 changes: 3 additions & 3 deletions controllers/AdminControllers/LoginController.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package AdminControllers

import (
"html/template"

"time"

"github.com/TruthHun/DocHub/helper"
"github.com/TruthHun/DocHub/models"
"github.com/astaxie/beego/orm"

"DocHub/helper"
"DocHub/models"
)

type LoginController struct {
Expand Down
2 changes: 1 addition & 1 deletion controllers/AdminControllers/ReportController.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package AdminControllers

import "github.com/TruthHun/DocHub/models"
import "DocHub/models"

type ReportController struct {
BaseController
Expand Down
2 changes: 1 addition & 1 deletion controllers/AdminControllers/ScoreController.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package AdminControllers

import "github.com/TruthHun/DocHub/models"
import "DocHub/models"

type ScoreController struct {
BaseController
Expand Down
2 changes: 1 addition & 1 deletion controllers/AdminControllers/SeoController.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package AdminControllers

import "github.com/TruthHun/DocHub/models"
import "DocHub/models"

type SeoController struct {
BaseController
Expand Down
3 changes: 2 additions & 1 deletion controllers/AdminControllers/SingleController.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"net/http"
"time"

"github.com/TruthHun/DocHub/models"
"github.com/astaxie/beego/orm"

"DocHub/models"
)

type SingleController struct {
Expand Down
14 changes: 6 additions & 8 deletions controllers/AdminControllers/SysController.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
package AdminControllers

import (
"io/ioutil"
"net/http"
"os"
"path/filepath"
"strings"

"io/ioutil"
"time"

"path/filepath"

"os"

"github.com/TruthHun/DocHub/helper"
"github.com/TruthHun/DocHub/models"
"github.com/astaxie/beego/orm"

"DocHub/helper"
"DocHub/models"
)

type SysController struct {
Expand Down
8 changes: 3 additions & 5 deletions controllers/AdminControllers/UserController.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ package AdminControllers

import (
"fmt"

"github.com/TruthHun/DocHub/helper"

"strings"

"github.com/TruthHun/DocHub/helper/conv"
"github.com/TruthHun/DocHub/models"
"DocHub/helper"
"DocHub/helper/conv"
"DocHub/models"
)

//IT文库注册会员管理
Expand Down
8 changes: 4 additions & 4 deletions controllers/HomeControllers/BaseController.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package HomeControllers

import (
"fmt"
"html/template"
"strings"

"fmt"
"time"

"github.com/TruthHun/DocHub/helper"
"github.com/TruthHun/DocHub/models"
"github.com/astaxie/beego"
"github.com/astaxie/beego/orm"

"DocHub/helper"
"DocHub/models"
)

type Output struct {
Expand Down
5 changes: 3 additions & 2 deletions controllers/HomeControllers/CollectController.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package HomeControllers
import (
"fmt"

"github.com/TruthHun/DocHub/helper"
"github.com/TruthHun/DocHub/models"
"github.com/astaxie/beego/orm"

"DocHub/helper"
"DocHub/models"
)

type CollectController struct {
Expand Down
7 changes: 3 additions & 4 deletions controllers/HomeControllers/IndexController.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@ package HomeControllers

import (
"fmt"

"strings"

"github.com/TruthHun/DocHub/helper"
"github.com/TruthHun/DocHub/models"
"github.com/astaxie/beego/orm"

"DocHub/helper"
"DocHub/models"
)

type IndexController struct {
BaseController
}

func (this *IndexController) Get() {

//获取横幅
this.Data["Banners"], _, _ = models.GetList(models.GetTableBanner(), 1, 100, orm.NewCondition().And("status", 1), "Sort")

Expand Down
5 changes: 3 additions & 2 deletions controllers/HomeControllers/InstallController.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package HomeControllers
import (
"strings"

"github.com/TruthHun/DocHub/helper"
"github.com/TruthHun/DocHub/models"
"github.com/astaxie/beego"

"DocHub/helper"
"DocHub/models"
)

type InstallController struct {
Expand Down
11 changes: 5 additions & 6 deletions controllers/HomeControllers/ListController.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package HomeControllers

import (
"strings"

"fmt"

"strings"
"time"

"github.com/TruthHun/DocHub/helper"
"github.com/TruthHun/DocHub/helper/conv"
"github.com/TruthHun/DocHub/models"
"github.com/astaxie/beego/orm"

"DocHub/helper"
"DocHub/helper/conv"
"DocHub/models"
)

type ListController struct {
Expand Down
5 changes: 3 additions & 2 deletions controllers/HomeControllers/ReportController.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package HomeControllers
import (
"time"

"github.com/TruthHun/DocHub/helper"
"github.com/TruthHun/DocHub/models"
"github.com/astaxie/beego/orm"

"DocHub/helper"
"DocHub/models"
)

type ReportController struct {
Expand Down
8 changes: 4 additions & 4 deletions controllers/HomeControllers/SearchController.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package HomeControllers

import (
"strings"

"time"

"github.com/TruthHun/DocHub/helper"
"github.com/TruthHun/DocHub/helper/conv"
"github.com/TruthHun/DocHub/models"
"github.com/astaxie/beego/orm"

"DocHub/helper"
"DocHub/helper/conv"
"DocHub/models"
)

type SearchController struct {
Expand Down
3 changes: 2 additions & 1 deletion controllers/HomeControllers/StaticController.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"path/filepath"
"strings"

"github.com/TruthHun/DocHub/helper"
"github.com/astaxie/beego"

"DocHub/helper"
)

type StaticController struct {
Expand Down
8 changes: 4 additions & 4 deletions controllers/HomeControllers/UploadController.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (
"os"
"path/filepath"
"strings"

"time"

"github.com/TruthHun/DocHub/helper"
"github.com/TruthHun/DocHub/helper/conv"
"github.com/TruthHun/DocHub/models"
"github.com/astaxie/beego/orm"

"DocHub/helper"
"DocHub/helper/conv"
"DocHub/models"
)

type UploadController struct {
Expand Down
Loading