修改导包顺序
This commit is contained in:
@ -1,10 +1,12 @@
|
|||||||
package api
|
package api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/sirupsen/logrus"
|
|
||||||
"next-terminal/server/constant"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"next-terminal/server/constant"
|
||||||
|
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
func SetupTicker() {
|
func SetupTicker() {
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
package repository
|
package repository
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gorm.io/gorm"
|
|
||||||
"next-terminal/server/model"
|
"next-terminal/server/model"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AccessSecurityRepository struct {
|
type AccessSecurityRepository struct {
|
||||||
|
@ -2,13 +2,15 @@ package repository
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/labstack/echo/v4"
|
"strings"
|
||||||
"gorm.io/gorm"
|
|
||||||
"next-terminal/server/constant"
|
"next-terminal/server/constant"
|
||||||
"next-terminal/server/global"
|
"next-terminal/server/global"
|
||||||
"next-terminal/server/model"
|
"next-terminal/server/model"
|
||||||
"next-terminal/server/utils"
|
"next-terminal/server/utils"
|
||||||
"strings"
|
|
||||||
|
"github.com/labstack/echo/v4"
|
||||||
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AssetRepository struct {
|
type AssetRepository struct {
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
package repository
|
package repository
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gorm.io/gorm"
|
|
||||||
"next-terminal/server/constant"
|
"next-terminal/server/constant"
|
||||||
"next-terminal/server/model"
|
"next-terminal/server/model"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CommandRepository struct {
|
type CommandRepository struct {
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
package repository
|
package repository
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gorm.io/gorm"
|
|
||||||
"next-terminal/server/constant"
|
"next-terminal/server/constant"
|
||||||
"next-terminal/server/model"
|
"next-terminal/server/model"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CredentialRepository struct {
|
type CredentialRepository struct {
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
package repository
|
package repository
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gorm.io/gorm"
|
|
||||||
"next-terminal/server/model"
|
"next-terminal/server/model"
|
||||||
"next-terminal/server/utils"
|
"next-terminal/server/utils"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type JobRepository struct {
|
type JobRepository struct {
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
package repository
|
package repository
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gorm.io/gorm"
|
|
||||||
"next-terminal/server/model"
|
"next-terminal/server/model"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type JobLogRepository struct {
|
type JobLogRepository struct {
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
package repository
|
package repository
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gorm.io/gorm"
|
|
||||||
"next-terminal/server/model"
|
"next-terminal/server/model"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type LoginLogRepository struct {
|
type LoginLogRepository struct {
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
package repository
|
package repository
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gorm.io/gorm"
|
|
||||||
"next-terminal/server/model"
|
"next-terminal/server/model"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type NumRepository struct {
|
type NumRepository struct {
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
package repository
|
package repository
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gorm.io/gorm"
|
|
||||||
"next-terminal/server/guacd"
|
"next-terminal/server/guacd"
|
||||||
"next-terminal/server/model"
|
"next-terminal/server/model"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PropertyRepository struct {
|
type PropertyRepository struct {
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
package repository
|
package repository
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"next-terminal/server/model"
|
||||||
|
"next-terminal/server/utils"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"next-terminal/server/model"
|
|
||||||
"next-terminal/server/utils"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type ResourceSharerRepository struct {
|
type ResourceSharerRepository struct {
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
package repository
|
package repository
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gorm.io/gorm"
|
|
||||||
"next-terminal/server/constant"
|
|
||||||
"next-terminal/server/model"
|
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"next-terminal/server/constant"
|
||||||
|
"next-terminal/server/model"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SessionRepository struct {
|
type SessionRepository struct {
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
package repository
|
package repository
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gorm.io/gorm"
|
|
||||||
"next-terminal/server/model"
|
"next-terminal/server/model"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type UserRepository struct {
|
type UserRepository struct {
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
package repository
|
package repository
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gorm.io/gorm"
|
|
||||||
"next-terminal/server/model"
|
"next-terminal/server/model"
|
||||||
"next-terminal/server/utils"
|
"next-terminal/server/utils"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type UserGroupRepository struct {
|
type UserGroupRepository struct {
|
||||||
|
@ -4,16 +4,18 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/robfig/cron/v3"
|
"strings"
|
||||||
"github.com/sirupsen/logrus"
|
"time"
|
||||||
|
|
||||||
"next-terminal/server/constant"
|
"next-terminal/server/constant"
|
||||||
"next-terminal/server/global"
|
"next-terminal/server/global"
|
||||||
"next-terminal/server/model"
|
"next-terminal/server/model"
|
||||||
"next-terminal/server/repository"
|
"next-terminal/server/repository"
|
||||||
"next-terminal/server/term"
|
"next-terminal/server/term"
|
||||||
"next-terminal/server/utils"
|
"next-terminal/server/utils"
|
||||||
"strings"
|
|
||||||
"time"
|
"github.com/robfig/cron/v3"
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
type JobService struct {
|
type JobService struct {
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/jordan-wright/email"
|
|
||||||
"github.com/sirupsen/logrus"
|
|
||||||
"net/smtp"
|
"net/smtp"
|
||||||
|
|
||||||
"next-terminal/server/constant"
|
"next-terminal/server/constant"
|
||||||
"next-terminal/server/repository"
|
"next-terminal/server/repository"
|
||||||
|
|
||||||
|
"github.com/jordan-wright/email"
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MailService struct {
|
type MailService struct {
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"os"
|
||||||
|
|
||||||
"next-terminal/server/guacd"
|
"next-terminal/server/guacd"
|
||||||
"next-terminal/server/model"
|
"next-terminal/server/model"
|
||||||
"next-terminal/server/repository"
|
"next-terminal/server/repository"
|
||||||
"next-terminal/server/utils"
|
"next-terminal/server/utils"
|
||||||
"os"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type PropertyService struct {
|
type PropertyService struct {
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/sirupsen/logrus"
|
|
||||||
"next-terminal/server/constant"
|
"next-terminal/server/constant"
|
||||||
"next-terminal/server/model"
|
"next-terminal/server/model"
|
||||||
"next-terminal/server/repository"
|
"next-terminal/server/repository"
|
||||||
"next-terminal/server/utils"
|
"next-terminal/server/utils"
|
||||||
|
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
type UserService struct {
|
type UserService struct {
|
||||||
|
Reference in New Issue
Block a user