Browse Source

style: Module name

lejianwen 11 months ago
parent
commit
32a9eda8ca
75 changed files with 244 additions and 244 deletions
  1. 12 12
      cmd/apimain.go
  2. 5 5
      global/global.go
  3. 1 1
      go.mod
  4. 4 4
      http/controller/admin/addressBook.go
  5. 5 5
      http/controller/admin/addressBookCollection.go
  6. 5 5
      http/controller/admin/addressBookCollectionRule.go
  7. 5 5
      http/controller/admin/audit.go
  8. 3 3
      http/controller/admin/config.go
  9. 3 3
      http/controller/admin/file.go
  10. 4 4
      http/controller/admin/group.go
  11. 8 8
      http/controller/admin/login.go
  12. 5 5
      http/controller/admin/loginLog.go
  13. 4 4
      http/controller/admin/my/addressBook.go
  14. 5 5
      http/controller/admin/my/addressBookCollection.go
  15. 5 5
      http/controller/admin/my/addressBookCollectionRule.go
  16. 5 5
      http/controller/admin/my/loginLog.go
  17. 3 3
      http/controller/admin/my/peer.go
  18. 4 4
      http/controller/admin/my/shareRecord.go
  19. 4 4
      http/controller/admin/my/tag.go
  20. 5 5
      http/controller/admin/oauth.go
  21. 4 4
      http/controller/admin/peer.go
  22. 5 5
      http/controller/admin/rustdesk.go
  23. 4 4
      http/controller/admin/shareRecord.go
  24. 4 4
      http/controller/admin/tag.go
  25. 6 6
      http/controller/admin/user.go
  26. 5 5
      http/controller/admin/userToken.go
  27. 7 7
      http/controller/api/ab.go
  28. 4 4
      http/controller/api/audit.go
  29. 5 5
      http/controller/api/group.go
  30. 4 4
      http/controller/api/index.go
  31. 6 6
      http/controller/api/login.go
  32. 6 6
      http/controller/api/ouath.go
  33. 3 3
      http/controller/api/peer.go
  34. 2 2
      http/controller/api/user.go
  35. 4 4
      http/controller/api/webClient.go
  36. 1 1
      http/controller/web/index.go
  37. 3 3
      http/http.go
  38. 2 2
      http/middleware/admin.go
  39. 2 2
      http/middleware/admin_privilege.go
  40. 3 3
      http/middleware/jwt.go
  41. 1 1
      http/middleware/logger.go
  42. 2 2
      http/middleware/rustauth.go
  43. 1 1
      http/request/admin/addressBook.go
  44. 1 1
      http/request/admin/group.go
  45. 11 11
      http/request/admin/oauth.go
  46. 1 1
      http/request/admin/peer.go
  47. 1 1
      http/request/admin/tag.go
  48. 1 1
      http/request/admin/user.go
  49. 2 2
      http/request/api/audit.go
  50. 1 1
      http/request/api/peer.go
  51. 1 1
      http/response/admin/user.go
  52. 1 1
      http/response/api/ab.go
  53. 1 1
      http/response/api/peer.go
  54. 1 1
      http/response/api/user.go
  55. 1 1
      http/response/api/webClient.go
  56. 1 1
      http/response/response.go
  57. 5 5
      http/router/admin.go
  58. 4 4
      http/router/api.go
  59. 2 2
      http/router/router.go
  60. 1 1
      lib/orm/mysql.go
  61. 1 1
      lib/orm/sqlite.go
  62. 1 1
      model/addressBook.go
  63. 1 1
      model/model.go
  64. 2 2
      service/addressBook.go
  65. 2 2
      service/audit.go
  66. 2 2
      service/group.go
  67. 3 3
      service/ldap.go
  68. 2 2
      service/loginLog.go
  69. 3 3
      service/oauth.go
  70. 2 2
      service/peer.go
  71. 2 2
      service/serverCmd.go
  72. 1 1
      service/service.go
  73. 2 2
      service/shareRecord.go
  74. 2 2
      service/tag.go
  75. 3 3
      service/user.go

+ 12 - 12
cmd/apimain.go

@@ -1,19 +1,19 @@
1 1
 package main
2 2
 
3 3
 import (
4
-	"Gwen/config"
5
-	"Gwen/global"
6
-	"Gwen/http"
7
-	"Gwen/lib/cache"
8
-	"Gwen/lib/jwt"
9
-	"Gwen/lib/lock"
10
-	"Gwen/lib/logger"
11
-	"Gwen/lib/orm"
12
-	"Gwen/lib/upload"
13
-	"Gwen/model"
14
-	"Gwen/service"
15
-	"Gwen/utils"
16 4
 	"github.com/go-redis/redis/v8"
5
+	"github.com/lejianwen/rustdesk-api/config"
6
+	"github.com/lejianwen/rustdesk-api/global"
7
+	"github.com/lejianwen/rustdesk-api/http"
8
+	"github.com/lejianwen/rustdesk-api/lib/cache"
9
+	"github.com/lejianwen/rustdesk-api/lib/jwt"
10
+	"github.com/lejianwen/rustdesk-api/lib/lock"
11
+	"github.com/lejianwen/rustdesk-api/lib/logger"
12
+	"github.com/lejianwen/rustdesk-api/lib/orm"
13
+	"github.com/lejianwen/rustdesk-api/lib/upload"
14
+	"github.com/lejianwen/rustdesk-api/model"
15
+	"github.com/lejianwen/rustdesk-api/service"
16
+	"github.com/lejianwen/rustdesk-api/utils"
17 17
 	"github.com/nicksnyder/go-i18n/v2/i18n"
18 18
 	"github.com/spf13/cobra"
19 19
 	"os"

+ 5 - 5
global/global.go

@@ -1,15 +1,15 @@
1 1
 package global
2 2
 
3 3
 import (
4
-	"Gwen/config"
5
-	"Gwen/lib/cache"
6
-	"Gwen/lib/jwt"
7
-	"Gwen/lib/lock"
8
-	"Gwen/lib/upload"
9 4
 	"github.com/gin-gonic/gin"
10 5
 	ut "github.com/go-playground/universal-translator"
11 6
 	"github.com/go-playground/validator/v10"
12 7
 	"github.com/go-redis/redis/v8"
8
+	"github.com/lejianwen/rustdesk-api/config"
9
+	"github.com/lejianwen/rustdesk-api/lib/cache"
10
+	"github.com/lejianwen/rustdesk-api/lib/jwt"
11
+	"github.com/lejianwen/rustdesk-api/lib/lock"
12
+	"github.com/lejianwen/rustdesk-api/lib/upload"
13 13
 	"github.com/nicksnyder/go-i18n/v2/i18n"
14 14
 	"github.com/sirupsen/logrus"
15 15
 	"github.com/spf13/viper"

+ 1 - 1
go.mod

@@ -1,4 +1,4 @@
1
-module Gwen
1
+module github.com/lejianwen/rustdesk-api
2 2
 
3 3
 go 1.22
4 4
 

+ 4 - 4
http/controller/admin/addressBook.go

@@ -1,13 +1,13 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	"Gwen/service"
8 4
 	"encoding/json"
9 5
 	_ "encoding/json"
10 6
 	"github.com/gin-gonic/gin"
7
+	"github.com/lejianwen/rustdesk-api/global"
8
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
9
+	"github.com/lejianwen/rustdesk-api/http/response"
10
+	"github.com/lejianwen/rustdesk-api/service"
11 11
 	"gorm.io/gorm"
12 12
 	"strconv"
13 13
 )

+ 5 - 5
http/controller/admin/addressBookCollection.go

@@ -1,12 +1,12 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	"Gwen/model"
8
-	"Gwen/service"
9 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/model"
9
+	"github.com/lejianwen/rustdesk-api/service"
10 10
 	"gorm.io/gorm"
11 11
 	"strconv"
12 12
 )

+ 5 - 5
http/controller/admin/addressBookCollectionRule.go

@@ -1,12 +1,12 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	"Gwen/model"
8
-	"Gwen/service"
9 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/model"
9
+	"github.com/lejianwen/rustdesk-api/service"
10 10
 	"gorm.io/gorm"
11 11
 	"strconv"
12 12
 )

+ 5 - 5
http/controller/admin/audit.go

@@ -1,12 +1,12 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	"Gwen/model"
8
-	"Gwen/service"
9 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/model"
9
+	"github.com/lejianwen/rustdesk-api/service"
10 10
 	"gorm.io/gorm"
11 11
 )
12 12
 

+ 3 - 3
http/controller/admin/config.go

@@ -1,10 +1,10 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/response"
6
-	"Gwen/service"
7 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/response"
7
+	"github.com/lejianwen/rustdesk-api/service"
8 8
 	"os"
9 9
 	"strings"
10 10
 )

+ 3 - 3
http/controller/admin/file.go

@@ -1,11 +1,11 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/response"
6
-	"Gwen/lib/upload"
7 4
 	"fmt"
8 5
 	"github.com/gin-gonic/gin"
6
+	"github.com/lejianwen/rustdesk-api/global"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/lib/upload"
9 9
 	"os"
10 10
 	"time"
11 11
 )

+ 4 - 4
http/controller/admin/group.go

@@ -1,11 +1,11 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	"Gwen/service"
8 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/service"
9 9
 	"strconv"
10 10
 )
11 11
 

+ 8 - 8
http/controller/admin/login.go

@@ -1,16 +1,16 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/controller/api"
6
-	"Gwen/http/request/admin"
7
-	apiReq "Gwen/http/request/api"
8
-	"Gwen/http/response"
9
-	adResp "Gwen/http/response/admin"
10
-	"Gwen/model"
11
-	"Gwen/service"
12 4
 	"fmt"
13 5
 	"github.com/gin-gonic/gin"
6
+	"github.com/lejianwen/rustdesk-api/global"
7
+	"github.com/lejianwen/rustdesk-api/http/controller/api"
8
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
9
+	apiReq "github.com/lejianwen/rustdesk-api/http/request/api"
10
+	"github.com/lejianwen/rustdesk-api/http/response"
11
+	adResp "github.com/lejianwen/rustdesk-api/http/response/admin"
12
+	"github.com/lejianwen/rustdesk-api/model"
13
+	"github.com/lejianwen/rustdesk-api/service"
14 14
 	"github.com/mojocn/base64Captcha"
15 15
 	"sync"
16 16
 	"time"

+ 5 - 5
http/controller/admin/loginLog.go

@@ -1,12 +1,12 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	"Gwen/model"
8
-	"Gwen/service"
9 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/model"
9
+	"github.com/lejianwen/rustdesk-api/service"
10 10
 	"gorm.io/gorm"
11 11
 	"strconv"
12 12
 )

+ 4 - 4
http/controller/admin/my/addressBook.go

@@ -1,12 +1,12 @@
1 1
 package my
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	"Gwen/service"
8 4
 	"encoding/json"
9 5
 	"github.com/gin-gonic/gin"
6
+	"github.com/lejianwen/rustdesk-api/global"
7
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
8
+	"github.com/lejianwen/rustdesk-api/http/response"
9
+	"github.com/lejianwen/rustdesk-api/service"
10 10
 	"gorm.io/gorm"
11 11
 )
12 12
 

+ 5 - 5
http/controller/admin/my/addressBookCollection.go

@@ -1,12 +1,12 @@
1 1
 package my
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	"Gwen/model"
8
-	"Gwen/service"
9 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/model"
9
+	"github.com/lejianwen/rustdesk-api/service"
10 10
 	"gorm.io/gorm"
11 11
 )
12 12
 

+ 5 - 5
http/controller/admin/my/addressBookCollectionRule.go

@@ -1,12 +1,12 @@
1 1
 package my
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	"Gwen/model"
8
-	"Gwen/service"
9 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/model"
9
+	"github.com/lejianwen/rustdesk-api/service"
10 10
 	"gorm.io/gorm"
11 11
 )
12 12
 

+ 5 - 5
http/controller/admin/my/loginLog.go

@@ -1,12 +1,12 @@
1 1
 package my
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	"Gwen/model"
8
-	"Gwen/service"
9 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/model"
9
+	"github.com/lejianwen/rustdesk-api/service"
10 10
 	"gorm.io/gorm"
11 11
 )
12 12
 

+ 3 - 3
http/controller/admin/my/peer.go

@@ -1,10 +1,10 @@
1 1
 package my
2 2
 
3 3
 import (
4
-	"Gwen/http/request/admin"
5
-	"Gwen/http/response"
6
-	"Gwen/service"
7 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
6
+	"github.com/lejianwen/rustdesk-api/http/response"
7
+	"github.com/lejianwen/rustdesk-api/service"
8 8
 	"gorm.io/gorm"
9 9
 	"time"
10 10
 )

+ 4 - 4
http/controller/admin/my/shareRecord.go

@@ -1,11 +1,11 @@
1 1
 package my
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	"Gwen/service"
8 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/service"
9 9
 	"gorm.io/gorm"
10 10
 )
11 11
 

+ 4 - 4
http/controller/admin/my/tag.go

@@ -1,11 +1,11 @@
1 1
 package my
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	"Gwen/service"
8 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/service"
9 9
 	"gorm.io/gorm"
10 10
 )
11 11
 

+ 5 - 5
http/controller/admin/oauth.go

@@ -1,12 +1,12 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	adminReq "Gwen/http/request/admin"
7
-	"Gwen/http/response"
8
-	"Gwen/service"
9 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
7
+	adminReq "github.com/lejianwen/rustdesk-api/http/request/admin"
8
+	"github.com/lejianwen/rustdesk-api/http/response"
9
+	"github.com/lejianwen/rustdesk-api/service"
10 10
 	"strconv"
11 11
 )
12 12
 

+ 4 - 4
http/controller/admin/peer.go

@@ -1,11 +1,11 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	"Gwen/service"
8 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/service"
9 9
 	"gorm.io/gorm"
10 10
 	"strconv"
11 11
 	"time"

+ 5 - 5
http/controller/admin/rustdesk.go

@@ -1,12 +1,12 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	"Gwen/model"
8
-	"Gwen/service"
9 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/model"
9
+	"github.com/lejianwen/rustdesk-api/service"
10 10
 )
11 11
 
12 12
 type Rustdesk struct {

+ 4 - 4
http/controller/admin/shareRecord.go

@@ -1,11 +1,11 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	"Gwen/service"
8 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/service"
9 9
 	"gorm.io/gorm"
10 10
 )
11 11
 

+ 4 - 4
http/controller/admin/tag.go

@@ -1,11 +1,11 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	"Gwen/service"
8 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/service"
9 9
 	"gorm.io/gorm"
10 10
 	"strconv"
11 11
 )

+ 6 - 6
http/controller/admin/user.go

@@ -1,13 +1,13 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	adResp "Gwen/http/response/admin"
8
-	"Gwen/model"
9
-	"Gwen/service"
10 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	adResp "github.com/lejianwen/rustdesk-api/http/response/admin"
9
+	"github.com/lejianwen/rustdesk-api/model"
10
+	"github.com/lejianwen/rustdesk-api/service"
11 11
 	"gorm.io/gorm"
12 12
 	"strconv"
13 13
 )

+ 5 - 5
http/controller/admin/userToken.go

@@ -1,12 +1,12 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/admin"
6
-	"Gwen/http/response"
7
-	"Gwen/model"
8
-	"Gwen/service"
9 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/admin"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/model"
9
+	"github.com/lejianwen/rustdesk-api/service"
10 10
 	"gorm.io/gorm"
11 11
 )
12 12
 

+ 7 - 7
http/controller/api/ab.go

@@ -1,16 +1,16 @@
1 1
 package api
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	requstform "Gwen/http/request/api"
6
-	"Gwen/http/response"
7
-	"Gwen/http/response/api"
8
-	"Gwen/model"
9
-	"Gwen/service"
10
-	"Gwen/utils"
11 4
 	"encoding/json"
12 5
 	"errors"
13 6
 	"github.com/gin-gonic/gin"
7
+	"github.com/lejianwen/rustdesk-api/global"
8
+	requstform "github.com/lejianwen/rustdesk-api/http/request/api"
9
+	"github.com/lejianwen/rustdesk-api/http/response"
10
+	"github.com/lejianwen/rustdesk-api/http/response/api"
11
+	"github.com/lejianwen/rustdesk-api/model"
12
+	"github.com/lejianwen/rustdesk-api/service"
13
+	"github.com/lejianwen/rustdesk-api/utils"
14 14
 	"net/http"
15 15
 	"strconv"
16 16
 	"strings"

+ 4 - 4
http/controller/api/audit.go

@@ -1,12 +1,12 @@
1 1
 package api
2 2
 
3 3
 import (
4
-	request "Gwen/http/request/api"
5
-	"Gwen/http/response"
6
-	"Gwen/model"
7
-	"Gwen/service"
8 4
 	"github.com/gin-gonic/gin"
9 5
 	"github.com/gin-gonic/gin/binding"
6
+	request "github.com/lejianwen/rustdesk-api/http/request/api"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/model"
9
+	"github.com/lejianwen/rustdesk-api/service"
10 10
 	"time"
11 11
 )
12 12
 

+ 5 - 5
http/controller/api/group.go

@@ -1,12 +1,12 @@
1 1
 package api
2 2
 
3 3
 import (
4
-	apiReq "Gwen/http/request/api"
5
-	"Gwen/http/response"
6
-	apiResp "Gwen/http/response/api"
7
-	"Gwen/model"
8
-	"Gwen/service"
9 4
 	"github.com/gin-gonic/gin"
5
+	apiReq "github.com/lejianwen/rustdesk-api/http/request/api"
6
+	"github.com/lejianwen/rustdesk-api/http/response"
7
+	apiResp "github.com/lejianwen/rustdesk-api/http/response/api"
8
+	"github.com/lejianwen/rustdesk-api/model"
9
+	"github.com/lejianwen/rustdesk-api/service"
10 10
 	"net/http"
11 11
 )
12 12
 

+ 4 - 4
http/controller/api/index.go

@@ -1,11 +1,11 @@
1 1
 package api
2 2
 
3 3
 import (
4
-	requstform "Gwen/http/request/api"
5
-	"Gwen/http/response"
6
-	"Gwen/model"
7
-	"Gwen/service"
8 4
 	"github.com/gin-gonic/gin"
5
+	requstform "github.com/lejianwen/rustdesk-api/http/request/api"
6
+	"github.com/lejianwen/rustdesk-api/http/response"
7
+	"github.com/lejianwen/rustdesk-api/model"
8
+	"github.com/lejianwen/rustdesk-api/service"
9 9
 	"net/http"
10 10
 	"os"
11 11
 	"time"

+ 6 - 6
http/controller/api/login.go

@@ -1,15 +1,15 @@
1 1
 package api
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/api"
6
-	"Gwen/http/response"
7
-	apiResp "Gwen/http/response/api"
8
-	"Gwen/model"
9
-	"Gwen/service"
10 4
 	"encoding/json"
11 5
 	"fmt"
12 6
 	"github.com/gin-gonic/gin"
7
+	"github.com/lejianwen/rustdesk-api/global"
8
+	"github.com/lejianwen/rustdesk-api/http/request/api"
9
+	"github.com/lejianwen/rustdesk-api/http/response"
10
+	apiResp "github.com/lejianwen/rustdesk-api/http/response/api"
11
+	"github.com/lejianwen/rustdesk-api/model"
12
+	"github.com/lejianwen/rustdesk-api/service"
13 13
 	"net/http"
14 14
 )
15 15
 

+ 6 - 6
http/controller/api/ouath.go

@@ -1,13 +1,13 @@
1 1
 package api
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/request/api"
6
-	"Gwen/http/response"
7
-	apiResp "Gwen/http/response/api"
8
-	"Gwen/model"
9
-	"Gwen/service"
10 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/request/api"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	apiResp "github.com/lejianwen/rustdesk-api/http/response/api"
9
+	"github.com/lejianwen/rustdesk-api/model"
10
+	"github.com/lejianwen/rustdesk-api/service"
11 11
 	"net/http"
12 12
 )
13 13
 

+ 3 - 3
http/controller/api/peer.go

@@ -1,11 +1,11 @@
1 1
 package api
2 2
 
3 3
 import (
4
-	requstform "Gwen/http/request/api"
5
-	"Gwen/http/response"
6
-	"Gwen/service"
7 4
 	"github.com/gin-gonic/gin"
8 5
 	"github.com/gin-gonic/gin/binding"
6
+	requstform "github.com/lejianwen/rustdesk-api/http/request/api"
7
+	"github.com/lejianwen/rustdesk-api/http/response"
8
+	"github.com/lejianwen/rustdesk-api/service"
9 9
 	"net/http"
10 10
 )
11 11
 

+ 2 - 2
http/controller/api/user.go

@@ -1,9 +1,9 @@
1 1
 package api
2 2
 
3 3
 import (
4
-	apiResp "Gwen/http/response/api"
5
-	"Gwen/service"
6 4
 	"github.com/gin-gonic/gin"
5
+	apiResp "github.com/lejianwen/rustdesk-api/http/response/api"
6
+	"github.com/lejianwen/rustdesk-api/service"
7 7
 	"net/http"
8 8
 )
9 9
 

+ 4 - 4
http/controller/api/webClient.go

@@ -1,11 +1,11 @@
1 1
 package api
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/response"
6
-	"Gwen/http/response/api"
7
-	"Gwen/service"
8 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/response"
7
+	"github.com/lejianwen/rustdesk-api/http/response/api"
8
+	"github.com/lejianwen/rustdesk-api/service"
9 9
 	"time"
10 10
 )
11 11
 

+ 1 - 1
http/controller/web/index.go

@@ -1,8 +1,8 @@
1 1
 package web
2 2
 
3 3
 import (
4
-	"Gwen/global"
5 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6 6
 	"strconv"
7 7
 )
8 8
 

+ 3 - 3
http/http.go

@@ -1,10 +1,10 @@
1 1
 package http
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/middleware"
6
-	"Gwen/http/router"
7 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/middleware"
7
+	"github.com/lejianwen/rustdesk-api/http/router"
8 8
 	"github.com/sirupsen/logrus"
9 9
 	"net/http"
10 10
 	"strings"

+ 2 - 2
http/middleware/admin.go

@@ -1,9 +1,9 @@
1 1
 package middleware
2 2
 
3 3
 import (
4
-	"Gwen/http/response"
5
-	"Gwen/service"
6 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/http/response"
6
+	"github.com/lejianwen/rustdesk-api/service"
7 7
 )
8 8
 
9 9
 // AdminAuth 后台权限验证中间件

+ 2 - 2
http/middleware/admin_privilege.go

@@ -1,9 +1,9 @@
1 1
 package middleware
2 2
 
3 3
 import (
4
-	"Gwen/http/response"
5
-	"Gwen/service"
6 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/http/response"
6
+	"github.com/lejianwen/rustdesk-api/service"
7 7
 )
8 8
 
9 9
 // AdminPrivilege ...

+ 3 - 3
http/middleware/jwt.go

@@ -1,10 +1,10 @@
1 1
 package middleware
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/response"
6
-	"Gwen/service"
7 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/response"
7
+	"github.com/lejianwen/rustdesk-api/service"
8 8
 )
9 9
 
10 10
 func JwtAuth() gin.HandlerFunc {

+ 1 - 1
http/middleware/logger.go

@@ -1,8 +1,8 @@
1 1
 package middleware
2 2
 
3 3
 import (
4
-	"Gwen/global"
5 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6 6
 	"github.com/sirupsen/logrus"
7 7
 )
8 8
 

+ 2 - 2
http/middleware/rustauth.go

@@ -1,9 +1,9 @@
1 1
 package middleware
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/service"
6 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/service"
7 7
 )
8 8
 
9 9
 func RustAuth() gin.HandlerFunc {

+ 1 - 1
http/request/admin/addressBook.go

@@ -1,8 +1,8 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/model"
5 4
 	"encoding/json"
5
+	"github.com/lejianwen/rustdesk-api/model"
6 6
 )
7 7
 
8 8
 type AddressBookForm struct {

+ 1 - 1
http/request/admin/group.go

@@ -1,6 +1,6 @@
1 1
 package admin
2 2
 
3
-import "Gwen/model"
3
+import "github.com/lejianwen/rustdesk-api/model"
4 4
 
5 5
 type GroupForm struct {
6 6
 	Id   uint   `json:"id"`

+ 11 - 11
http/request/admin/oauth.go

@@ -1,7 +1,7 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/model"
4
+	"github.com/lejianwen/rustdesk-api/model"
5 5
 )
6 6
 
7 7
 type BindOauthForm struct {
@@ -15,21 +15,21 @@ type UnBindOauthForm struct {
15 15
 	Op string `json:"op" binding:"required"`
16 16
 }
17 17
 type OauthForm struct {
18
-	Id           uint   			`json:"id"`
19
-	Op           string 			`json:"op" validate:"omitempty"`
20
-	OauthType    string 			`json:"oauth_type" validate:"required"`
21
-	Issuer	     string 			`json:"issuer" validate:"omitempty,url"`
22
-	Scopes	   	 string 			`json:"scopes" validate:"omitempty"`
23
-	ClientId     string 			`json:"client_id" validate:"required"`
24
-	ClientSecret string 			`json:"client_secret" validate:"required"`
25
-	RedirectUrl  string 			`json:"redirect_url" validate:"required"`
26
-	AutoRegister *bool  			`json:"auto_register"`
18
+	Id           uint   `json:"id"`
19
+	Op           string `json:"op" validate:"omitempty"`
20
+	OauthType    string `json:"oauth_type" validate:"required"`
21
+	Issuer       string `json:"issuer" validate:"omitempty,url"`
22
+	Scopes       string `json:"scopes" validate:"omitempty"`
23
+	ClientId     string `json:"client_id" validate:"required"`
24
+	ClientSecret string `json:"client_secret" validate:"required"`
25
+	RedirectUrl  string `json:"redirect_url" validate:"required"`
26
+	AutoRegister *bool  `json:"auto_register"`
27 27
 }
28 28
 
29 29
 func (of *OauthForm) ToOauth() *model.Oauth {
30 30
 	oa := &model.Oauth{
31 31
 		Op:           of.Op,
32
-		OauthType:	  of.OauthType,
32
+		OauthType:    of.OauthType,
33 33
 		ClientId:     of.ClientId,
34 34
 		ClientSecret: of.ClientSecret,
35 35
 		RedirectUrl:  of.RedirectUrl,

+ 1 - 1
http/request/admin/peer.go

@@ -1,6 +1,6 @@
1 1
 package admin
2 2
 
3
-import "Gwen/model"
3
+import "github.com/lejianwen/rustdesk-api/model"
4 4
 
5 5
 type PeerForm struct {
6 6
 	RowId    uint   `json:"row_id" `

+ 1 - 1
http/request/admin/tag.go

@@ -1,6 +1,6 @@
1 1
 package admin
2 2
 
3
-import "Gwen/model"
3
+import "github.com/lejianwen/rustdesk-api/model"
4 4
 
5 5
 type TagForm struct {
6 6
 	Id           uint   `json:"id"`

+ 1 - 1
http/request/admin/user.go

@@ -1,7 +1,7 @@
1 1
 package admin
2 2
 
3 3
 import (
4
-	"Gwen/model"
4
+	"github.com/lejianwen/rustdesk-api/model"
5 5
 )
6 6
 
7 7
 type UserForm struct {

+ 2 - 2
http/request/api/audit.go

@@ -1,9 +1,9 @@
1 1
 package api
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/model"
6 4
 	"encoding/json"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/model"
7 7
 	"strconv"
8 8
 )
9 9
 

+ 1 - 1
http/request/api/peer.go

@@ -1,6 +1,6 @@
1 1
 package api
2 2
 
3
-import "Gwen/model"
3
+import "github.com/lejianwen/rustdesk-api/model"
4 4
 
5 5
 type AddressBookFormData struct {
6 6
 	Tags      []string             `json:"tags"`

+ 1 - 1
http/response/admin/user.go

@@ -1,6 +1,6 @@
1 1
 package admin
2 2
 
3
-import "Gwen/model"
3
+import "github.com/lejianwen/rustdesk-api/model"
4 4
 
5 5
 type LoginPayload struct {
6 6
 	Username   string   `json:"username"`

+ 1 - 1
http/response/api/ab.go

@@ -1,6 +1,6 @@
1 1
 package api
2 2
 
3
-import "Gwen/model"
3
+import "github.com/lejianwen/rustdesk-api/model"
4 4
 
5 5
 type AbList struct {
6 6
 	Peers     []*model.AddressBook `json:"peers,omitempty"`

+ 1 - 1
http/response/api/peer.go

@@ -1,6 +1,6 @@
1 1
 package api
2 2
 
3
-import "Gwen/model"
3
+import "github.com/lejianwen/rustdesk-api/model"
4 4
 
5 5
 /*
6 6
 GroupPeerPayload

+ 1 - 1
http/response/api/user.go

@@ -1,6 +1,6 @@
1 1
 package api
2 2
 
3
-import "Gwen/model"
3
+import "github.com/lejianwen/rustdesk-api/model"
4 4
 
5 5
 /*
6 6
 	pub enum UserStatus {

+ 1 - 1
http/response/api/webClient.go

@@ -1,7 +1,7 @@
1 1
 package api
2 2
 
3 3
 import (
4
-	"Gwen/model"
4
+	"github.com/lejianwen/rustdesk-api/model"
5 5
 	"time"
6 6
 )
7 7
 

+ 1 - 1
http/response/response.go

@@ -1,9 +1,9 @@
1 1
 package response
2 2
 
3 3
 import (
4
-	"Gwen/global"
5 4
 	"fmt"
6 5
 	"github.com/gin-gonic/gin"
6
+	"github.com/lejianwen/rustdesk-api/global"
7 7
 	"github.com/nicksnyder/go-i18n/v2/i18n"
8 8
 	"net/http"
9 9
 )

+ 5 - 5
http/router/admin.go

@@ -1,12 +1,12 @@
1 1
 package router
2 2
 
3 3
 import (
4
-	_ "Gwen/docs/admin"
5
-	"Gwen/global"
6
-	"Gwen/http/controller/admin"
7
-	"Gwen/http/controller/admin/my"
8
-	"Gwen/http/middleware"
9 4
 	"github.com/gin-gonic/gin"
5
+	_ "github.com/lejianwen/rustdesk-api/docs/admin"
6
+	"github.com/lejianwen/rustdesk-api/global"
7
+	"github.com/lejianwen/rustdesk-api/http/controller/admin"
8
+	"github.com/lejianwen/rustdesk-api/http/controller/admin/my"
9
+	"github.com/lejianwen/rustdesk-api/http/middleware"
10 10
 	swaggerFiles "github.com/swaggo/files"
11 11
 	ginSwagger "github.com/swaggo/gin-swagger"
12 12
 )

+ 4 - 4
http/router/api.go

@@ -1,11 +1,11 @@
1 1
 package router
2 2
 
3 3
 import (
4
-	_ "Gwen/docs/api"
5
-	"Gwen/global"
6
-	"Gwen/http/controller/api"
7
-	"Gwen/http/middleware"
8 4
 	"github.com/gin-gonic/gin"
5
+	_ "github.com/lejianwen/rustdesk-api/docs/api"
6
+	"github.com/lejianwen/rustdesk-api/global"
7
+	"github.com/lejianwen/rustdesk-api/http/controller/api"
8
+	"github.com/lejianwen/rustdesk-api/http/middleware"
9 9
 	swaggerFiles "github.com/swaggo/files"
10 10
 	ginSwagger "github.com/swaggo/gin-swagger"
11 11
 	"net/http"

+ 2 - 2
http/router/router.go

@@ -1,9 +1,9 @@
1 1
 package router
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/http/controller/web"
6 4
 	"github.com/gin-gonic/gin"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/http/controller/web"
7 7
 	"net/http"
8 8
 )
9 9
 

+ 1 - 1
lib/orm/mysql.go

@@ -1,8 +1,8 @@
1 1
 package orm
2 2
 
3 3
 import (
4
-	"Gwen/global"
5 4
 	"fmt"
5
+	"github.com/lejianwen/rustdesk-api/global"
6 6
 	"gorm.io/driver/mysql"
7 7
 	"gorm.io/gorm"
8 8
 	"gorm.io/gorm/logger"

+ 1 - 1
lib/orm/sqlite.go

@@ -1,8 +1,8 @@
1 1
 package orm
2 2
 
3 3
 import (
4
-	"Gwen/global"
5 4
 	"fmt"
5
+	"github.com/lejianwen/rustdesk-api/global"
6 6
 	"gorm.io/driver/sqlite"
7 7
 	"gorm.io/gorm"
8 8
 	"gorm.io/gorm/logger"

+ 1 - 1
model/addressBook.go

@@ -1,6 +1,6 @@
1 1
 package model
2 2
 
3
-import "Gwen/model/custom_types"
3
+import "github.com/lejianwen/rustdesk-api/model/custom_types"
4 4
 
5 5
 // final String id;
6 6
 // String hash; // personal ab hash password

+ 1 - 1
model/model.go

@@ -1,7 +1,7 @@
1 1
 package model
2 2
 
3 3
 import (
4
-	"Gwen/model/custom_types"
4
+	"github.com/lejianwen/rustdesk-api/model/custom_types"
5 5
 )
6 6
 
7 7
 type StatusCode int

+ 2 - 2
service/addressBook.go

@@ -1,10 +1,10 @@
1 1
 package service
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/model"
6 4
 	"encoding/json"
7 5
 	"github.com/google/uuid"
6
+	"github.com/lejianwen/rustdesk-api/global"
7
+	"github.com/lejianwen/rustdesk-api/model"
8 8
 	"gorm.io/gorm"
9 9
 	"strings"
10 10
 )

+ 2 - 2
service/audit.go

@@ -1,8 +1,8 @@
1 1
 package service
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/model"
4
+	"github.com/lejianwen/rustdesk-api/global"
5
+	"github.com/lejianwen/rustdesk-api/model"
6 6
 	"gorm.io/gorm"
7 7
 )
8 8
 

+ 2 - 2
service/group.go

@@ -1,8 +1,8 @@
1 1
 package service
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/model"
4
+	"github.com/lejianwen/rustdesk-api/global"
5
+	"github.com/lejianwen/rustdesk-api/model"
6 6
 	"gorm.io/gorm"
7 7
 )
8 8
 

+ 3 - 3
service/ldap.go

@@ -9,9 +9,9 @@ import (
9 9
 
10 10
 	"github.com/go-ldap/ldap/v3"
11 11
 
12
-	"Gwen/config"
13
-	"Gwen/global"
14
-	"Gwen/model"
12
+	"github.com/lejianwen/rustdesk-api/config"
13
+	"github.com/lejianwen/rustdesk-api/global"
14
+	"github.com/lejianwen/rustdesk-api/model"
15 15
 )
16 16
 
17 17
 var (

+ 2 - 2
service/loginLog.go

@@ -1,8 +1,8 @@
1 1
 package service
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/model"
4
+	"github.com/lejianwen/rustdesk-api/global"
5
+	"github.com/lejianwen/rustdesk-api/model"
6 6
 	"gorm.io/gorm"
7 7
 )
8 8
 

+ 3 - 3
service/oauth.go

@@ -1,12 +1,12 @@
1 1
 package service
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/model"
6
-	"Gwen/utils"
7 4
 	"context"
8 5
 	"encoding/json"
9 6
 	"errors"
7
+	"github.com/lejianwen/rustdesk-api/global"
8
+	"github.com/lejianwen/rustdesk-api/model"
9
+	"github.com/lejianwen/rustdesk-api/utils"
10 10
 	"golang.org/x/oauth2"
11 11
 	"golang.org/x/oauth2/github"
12 12
 	// "golang.org/x/oauth2/google"

+ 2 - 2
service/peer.go

@@ -1,8 +1,8 @@
1 1
 package service
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/model"
4
+	"github.com/lejianwen/rustdesk-api/global"
5
+	"github.com/lejianwen/rustdesk-api/model"
6 6
 	"gorm.io/gorm"
7 7
 )
8 8
 

+ 2 - 2
service/serverCmd.go

@@ -1,9 +1,9 @@
1 1
 package service
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/model"
6 4
 	"fmt"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/model"
7 7
 	"net"
8 8
 	"time"
9 9
 )

+ 1 - 1
service/service.go

@@ -1,7 +1,7 @@
1 1
 package service
2 2
 
3 3
 import (
4
-	"Gwen/model"
4
+	"github.com/lejianwen/rustdesk-api/model"
5 5
 	"gorm.io/gorm"
6 6
 )
7 7
 

+ 2 - 2
service/shareRecord.go

@@ -1,8 +1,8 @@
1 1
 package service
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/model"
4
+	"github.com/lejianwen/rustdesk-api/global"
5
+	"github.com/lejianwen/rustdesk-api/model"
6 6
 	"gorm.io/gorm"
7 7
 )
8 8
 

+ 2 - 2
service/tag.go

@@ -1,8 +1,8 @@
1 1
 package service
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/model"
4
+	"github.com/lejianwen/rustdesk-api/global"
5
+	"github.com/lejianwen/rustdesk-api/model"
6 6
 	"gorm.io/gorm"
7 7
 )
8 8
 

+ 3 - 3
service/user.go

@@ -1,10 +1,10 @@
1 1
 package service
2 2
 
3 3
 import (
4
-	"Gwen/global"
5
-	"Gwen/model"
6
-	"Gwen/utils"
7 4
 	"errors"
5
+	"github.com/lejianwen/rustdesk-api/global"
6
+	"github.com/lejianwen/rustdesk-api/model"
7
+	"github.com/lejianwen/rustdesk-api/utils"
8 8
 	"math/rand"
9 9
 	"strconv"
10 10
 	"strings"