Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions app/http/endpoints/api/admin/botstaff/add.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package botstaff

import (
"github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/GoPanel/utils"
"github.com/gin-gonic/gin"
"strconv"

"github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/gin-gonic/gin"
)

func AddBotStaffHandler(ctx *gin.Context) {
Expand Down
7 changes: 4 additions & 3 deletions app/http/endpoints/api/admin/botstaff/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package botstaff
import (
"context"
"errors"
"github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/GoPanel/rpc/cache"
"github.com/TicketsBot/GoPanel/utils"

"github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/dashboard/rpc/cache"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/gin-gonic/gin"
cache2 "github.com/rxdn/gdl/cache"
"golang.org/x/sync/errgroup"
Expand Down
7 changes: 4 additions & 3 deletions app/http/endpoints/api/admin/botstaff/remove.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package botstaff

import (
"github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/GoPanel/utils"
"github.com/gin-gonic/gin"
"strconv"

"github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/gin-gonic/gin"
)

func RemoveBotStaffHandler(ctx *gin.Context) {
Expand Down
11 changes: 6 additions & 5 deletions app/http/endpoints/api/blacklist/blacklist.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package api

import (
"context"
"github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/GoPanel/rpc/cache"
"github.com/TicketsBot/GoPanel/utils"
"github.com/TicketsBot/GoPanel/utils/types"
"github.com/gin-gonic/gin"
"strconv"

"github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/dashboard/rpc/cache"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/TicketsBot-cloud/dashboard/utils/types"
"github.com/gin-gonic/gin"
)

type (
Expand Down
9 changes: 5 additions & 4 deletions app/http/endpoints/api/blacklist/blacklistadd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package api

import (
"context"
"github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/GoPanel/rpc/cache"
"github.com/TicketsBot/GoPanel/utils"
"github.com/TicketsBot/common/permission"

"github.com/TicketsBot-cloud/common/permission"
"github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/dashboard/rpc/cache"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/gin-gonic/gin"
"github.com/pkg/errors"
cache2 "github.com/rxdn/gdl/cache"
Expand Down
7 changes: 4 additions & 3 deletions app/http/endpoints/api/blacklist/blacklistremoverole.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package api

import (
"github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/GoPanel/utils"
"github.com/gin-gonic/gin"
"strconv"

"github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/gin-gonic/gin"
)

func RemoveRoleBlacklistHandler(ctx *gin.Context) {
Expand Down
7 changes: 4 additions & 3 deletions app/http/endpoints/api/blacklist/blacklistremoveuser.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package api

import (
"github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/GoPanel/utils"
"github.com/gin-gonic/gin"
"strconv"

"github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/gin-gonic/gin"
)

func RemoveUserBlacklistHandler(ctx *gin.Context) {
Expand Down
11 changes: 6 additions & 5 deletions app/http/endpoints/api/channels.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package api

import (
"github.com/TicketsBot/GoPanel/botcontext"
"github.com/TicketsBot/GoPanel/redis"
"github.com/TicketsBot/GoPanel/rpc/cache"
"github.com/TicketsBot/GoPanel/utils"
"sort"

"github.com/TicketsBot-cloud/dashboard/botcontext"
"github.com/TicketsBot-cloud/dashboard/redis"
"github.com/TicketsBot-cloud/dashboard/rpc/cache"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/gin-gonic/gin"
"github.com/rxdn/gdl/objects/channel"
"github.com/rxdn/gdl/rest"
"sort"
)

func ChannelsHandler(ctx *gin.Context) {
Expand Down
5 changes: 3 additions & 2 deletions app/http/endpoints/api/emojis.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package api

import (
"context"
"github.com/TicketsBot/GoPanel/botcontext"
"github.com/TicketsBot/GoPanel/utils"

"github.com/TicketsBot-cloud/dashboard/botcontext"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/gin-gonic/gin"
)

Expand Down
16 changes: 8 additions & 8 deletions app/http/endpoints/api/export/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"strconv"
"time"

"github.com/TicketsBot/GoPanel/app"
"github.com/TicketsBot/GoPanel/botcontext"
"github.com/TicketsBot/GoPanel/config"
dbclient "github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/GoPanel/s3"
"github.com/TicketsBot/GoPanel/utils"
"github.com/TicketsBot/common/permission"
"github.com/TicketsBot-cloud/common/permission"
"github.com/TicketsBot-cloud/dashboard/app"
"github.com/TicketsBot-cloud/dashboard/botcontext"
"github.com/TicketsBot-cloud/dashboard/config"
dbclient "github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/dashboard/s3"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/gin-gonic/gin"
)

Expand Down Expand Up @@ -112,7 +112,7 @@ func GetRuns(ctx *gin.Context) {
return
}

runs, err := dbclient.Client2.ImportLogs.GetRuns(ctx, guildId)
runs, err := dbclient.Client.ImportLogs.GetRuns(ctx, guildId)
if err != nil {
ctx.JSON(500, utils.ErrorJson(err))
return
Expand Down
2 changes: 1 addition & 1 deletion app/http/endpoints/api/export/validator/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package validator
import (
"time"

"github.com/TicketsBot/database"
"github.com/TicketsBot-cloud/database"
)

type TicketUnion[T any] struct {
Expand Down
11 changes: 6 additions & 5 deletions app/http/endpoints/api/forms/createform.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package forms

import (
"github.com/TicketsBot/GoPanel/app"
dbclient "github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/GoPanel/utils"
"github.com/TicketsBot/database"
"github.com/gin-gonic/gin"
"net/http"

"github.com/TicketsBot-cloud/dashboard/app"
dbclient "github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/TicketsBot-cloud/database"
"github.com/gin-gonic/gin"
)

type createFormBody struct {
Expand Down
9 changes: 5 additions & 4 deletions app/http/endpoints/api/forms/deleteform.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package forms

import (
"github.com/TicketsBot/GoPanel/app"
dbclient "github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/GoPanel/utils"
"github.com/gin-gonic/gin"
"net/http"
"strconv"

"github.com/TicketsBot-cloud/dashboard/app"
dbclient "github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/gin-gonic/gin"
)

func DeleteForm(c *gin.Context) {
Expand Down
9 changes: 5 additions & 4 deletions app/http/endpoints/api/forms/getforms.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package forms

import (
"github.com/TicketsBot/GoPanel/app"
dbclient "github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/database"
"github.com/gin-gonic/gin"
"net/http"

"github.com/TicketsBot-cloud/dashboard/app"
dbclient "github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/database"
"github.com/gin-gonic/gin"
)

type embeddedForm struct {
Expand Down
9 changes: 5 additions & 4 deletions app/http/endpoints/api/forms/updateform.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package forms

import (
"github.com/TicketsBot/GoPanel/app"
dbclient "github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/GoPanel/utils"
"github.com/gin-gonic/gin"
"net/http"
"strconv"

"github.com/TicketsBot-cloud/dashboard/app"
dbclient "github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/gin-gonic/gin"
)

func UpdateForm(c *gin.Context) {
Expand Down
15 changes: 8 additions & 7 deletions app/http/endpoints/api/forms/updateinputs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ import (
"context"
"errors"
"fmt"
"github.com/TicketsBot/GoPanel/app"
dbclient "github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/GoPanel/utils"
"github.com/TicketsBot/database"
"github.com/gin-gonic/gin"
"github.com/go-playground/validator/v10"
"github.com/rxdn/gdl/objects/interaction/component"
"net/http"
"sort"
"strconv"

"github.com/TicketsBot-cloud/dashboard/app"
dbclient "github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/TicketsBot-cloud/database"
"github.com/gin-gonic/gin"
"github.com/go-playground/validator/v10"
"github.com/rxdn/gdl/objects/interaction/component"
)

type (
Expand Down
7 changes: 4 additions & 3 deletions app/http/endpoints/api/getpermissionlevel.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package api

import (
"github.com/TicketsBot/GoPanel/app"
"github.com/TicketsBot/GoPanel/utils"
"github.com/gin-gonic/gin"
"net/http"
"strconv"

"github.com/TicketsBot-cloud/dashboard/app"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/gin-gonic/gin"
)

func GetPermissionLevel(c *gin.Context) {
Expand Down
4 changes: 2 additions & 2 deletions app/http/endpoints/api/guild.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package api

import (
"github.com/TicketsBot/GoPanel/botcontext"
"github.com/TicketsBot/GoPanel/utils"
"github.com/TicketsBot-cloud/dashboard/botcontext"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/gin-gonic/gin"
)

Expand Down
7 changes: 4 additions & 3 deletions app/http/endpoints/api/integrations/activateintegration.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package api
import (
"encoding/json"
"fmt"
dbclient "github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/GoPanel/utils"
"github.com/gin-gonic/gin"
"net/http"
"strconv"
"strings"

dbclient "github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/gin-gonic/gin"
)

type activateIntegrationBody struct {
Expand Down
9 changes: 5 additions & 4 deletions app/http/endpoints/api/integrations/createintegration.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package api

import (
"errors"
dbclient "github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/GoPanel/utils"
"github.com/TicketsBot/database"
"strings"

dbclient "github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/TicketsBot-cloud/database"
"github.com/gin-gonic/gin"
"github.com/go-playground/validator/v10"
"strings"
)

type integrationCreateBody struct {
Expand Down
7 changes: 4 additions & 3 deletions app/http/endpoints/api/integrations/deleteintegration.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package api

import (
dbclient "github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/GoPanel/utils"
"github.com/gin-gonic/gin"
"strconv"

dbclient "github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/gin-gonic/gin"
)

func DeleteIntegrationHandler(ctx *gin.Context) {
Expand Down
7 changes: 4 additions & 3 deletions app/http/endpoints/api/integrations/editsecrets.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package api

import (
dbclient "github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/GoPanel/utils"
"github.com/gin-gonic/gin"
"strconv"

dbclient "github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/gin-gonic/gin"
)

func UpdateIntegrationSecretsHandler(ctx *gin.Context) {
Expand Down
9 changes: 5 additions & 4 deletions app/http/endpoints/api/integrations/getintegration.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package api

import (
dbclient "github.com/TicketsBot/GoPanel/database"
"github.com/TicketsBot/GoPanel/utils"
"github.com/TicketsBot/database"
"github.com/gin-gonic/gin"
"strconv"
"strings"

dbclient "github.com/TicketsBot-cloud/dashboard/database"
"github.com/TicketsBot-cloud/dashboard/utils"
"github.com/TicketsBot-cloud/database"
"github.com/gin-gonic/gin"
)

type integrationResponse struct {
Expand Down
Loading