修改导包顺序

This commit is contained in:
dushixiang
2021-03-19 20:53:59 +08:00
parent 832d36197f
commit 87e352619d
18 changed files with 51 additions and 28 deletions
+4 -2
View File
@@ -1,10 +1,12 @@
package api
import (
"github.com/sirupsen/logrus"
"next-terminal/server/constant"
"strconv"
"time"
"next-terminal/server/constant"
"github.com/sirupsen/logrus"
)
func SetupTicker() {
+2 -1
View File
@@ -1,8 +1,9 @@
package repository
import (
"gorm.io/gorm"
"next-terminal/server/model"
"gorm.io/gorm"
)
type AccessSecurityRepository struct {
+5 -3
View File
@@ -2,13 +2,15 @@ package repository
import (
"fmt"
"github.com/labstack/echo/v4"
"gorm.io/gorm"
"strings"
"next-terminal/server/constant"
"next-terminal/server/global"
"next-terminal/server/model"
"next-terminal/server/utils"
"strings"
"github.com/labstack/echo/v4"
"gorm.io/gorm"
)
type AssetRepository struct {
+2 -1
View File
@@ -1,9 +1,10 @@
package repository
import (
"gorm.io/gorm"
"next-terminal/server/constant"
"next-terminal/server/model"
"gorm.io/gorm"
)
type CommandRepository struct {
+2 -1
View File
@@ -1,9 +1,10 @@
package repository
import (
"gorm.io/gorm"
"next-terminal/server/constant"
"next-terminal/server/model"
"gorm.io/gorm"
)
type CredentialRepository struct {
+2 -1
View File
@@ -1,9 +1,10 @@
package repository
import (
"gorm.io/gorm"
"next-terminal/server/model"
"next-terminal/server/utils"
"gorm.io/gorm"
)
type JobRepository struct {
+2 -1
View File
@@ -1,8 +1,9 @@
package repository
import (
"gorm.io/gorm"
"next-terminal/server/model"
"gorm.io/gorm"
)
type JobLogRepository struct {
+2 -1
View File
@@ -1,8 +1,9 @@
package repository
import (
"gorm.io/gorm"
"next-terminal/server/model"
"gorm.io/gorm"
)
type LoginLogRepository struct {
+2 -1
View File
@@ -1,8 +1,9 @@
package repository
import (
"gorm.io/gorm"
"next-terminal/server/model"
"gorm.io/gorm"
)
type NumRepository struct {
+2 -1
View File
@@ -1,9 +1,10 @@
package repository
import (
"gorm.io/gorm"
"next-terminal/server/guacd"
"next-terminal/server/model"
"gorm.io/gorm"
)
type PropertyRepository struct {
+3 -2
View File
@@ -1,11 +1,12 @@
package repository
import (
"next-terminal/server/model"
"next-terminal/server/utils"
"github.com/labstack/echo/v4"
"github.com/pkg/errors"
"gorm.io/gorm"
"next-terminal/server/model"
"next-terminal/server/utils"
)
type ResourceSharerRepository struct {
+5 -3
View File
@@ -1,12 +1,14 @@
package repository
import (
"gorm.io/gorm"
"next-terminal/server/constant"
"next-terminal/server/model"
"os"
"path"
"time"
"next-terminal/server/constant"
"next-terminal/server/model"
"gorm.io/gorm"
)
type SessionRepository struct {
+2 -1
View File
@@ -1,8 +1,9 @@
package repository
import (
"gorm.io/gorm"
"next-terminal/server/model"
"gorm.io/gorm"
)
type UserRepository struct {
+2 -1
View File
@@ -1,9 +1,10 @@
package repository
import (
"gorm.io/gorm"
"next-terminal/server/model"
"next-terminal/server/utils"
"gorm.io/gorm"
)
type UserGroupRepository struct {
+6 -4
View File
@@ -4,16 +4,18 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/robfig/cron/v3"
"github.com/sirupsen/logrus"
"strings"
"time"
"next-terminal/server/constant"
"next-terminal/server/global"
"next-terminal/server/model"
"next-terminal/server/repository"
"next-terminal/server/term"
"next-terminal/server/utils"
"strings"
"time"
"github.com/robfig/cron/v3"
"github.com/sirupsen/logrus"
)
type JobService struct {
+4 -2
View File
@@ -1,11 +1,13 @@
package service
import (
"github.com/jordan-wright/email"
"github.com/sirupsen/logrus"
"net/smtp"
"next-terminal/server/constant"
"next-terminal/server/repository"
"github.com/jordan-wright/email"
"github.com/sirupsen/logrus"
)
type MailService struct {
+2 -1
View File
@@ -1,11 +1,12 @@
package service
import (
"os"
"next-terminal/server/guacd"
"next-terminal/server/model"
"next-terminal/server/repository"
"next-terminal/server/utils"
"os"
)
type PropertyService struct {
+2 -1
View File
@@ -1,11 +1,12 @@
package service
import (
"github.com/sirupsen/logrus"
"next-terminal/server/constant"
"next-terminal/server/model"
"next-terminal/server/repository"
"next-terminal/server/utils"
"github.com/sirupsen/logrus"
)
type UserService struct {