Skip to content

Commit 1954650

Browse files
changes in package functions
1 parent e60a73a commit 1954650

File tree

14 files changed

+38
-25
lines changed

14 files changed

+38
-25
lines changed

controller/authcontroller.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ import (
44
"bytes"
55
"context"
66
"errors"
7-
"gqlserver/graph/model"
87
"html/template"
8+
"log"
99
"math/rand"
1010
"os"
11+
"spurtcms-graphql/graph/model"
1112
"time"
1213

1314
"github.com/gin-gonic/gin"
@@ -97,7 +98,11 @@ func VerifyMemberOtp(db *gorm.DB,ctx context.Context,email string,otp int)(strin
9798

9899
currentTime := time.Now().In(TimeZone).Unix()
99100

100-
token,err := Mem.VerifyLoginOtp(email,otp,currentTime)
101+
memberDetails,token,err := Mem.VerifyLoginOtp(email,otp,currentTime)
102+
103+
log.Println("memberdetails",memberDetails)
104+
105+
db.Table("tbl_members").Joins("inner join ")
101106

102107
if err!=nil{
103108

controller/category.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package controller
22

33
import (
44
"context"
5-
"gqlserver/graph/model"
5+
"spurtcms-graphql/graph/model"
66
"log"
77
"strconv"
88
"strings"

controller/channel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"context"
66
"encoding/json"
77
"errors"
8-
"gqlserver/graph/model"
8+
"spurtcms-graphql/graph/model"
99
// "log"
1010
"os"
1111
"time"

controller/ecommerce.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package controller
22

33
import (
44
"context"
5-
"gqlserver/graph/model"
5+
"spurtcms-graphql/graph/model"
66
"time"
77

88
// "log"

controller/space.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package controller
22

33
import (
44
"context"
5-
"gqlserver/graph/model"
5+
"spurtcms-graphql/graph/model"
66
"os"
77

88
"github.com/gin-gonic/gin"

ginHandler/handler.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package ginhandler
22

33
import (
44
"context"
5-
"gqlserver/controller"
6-
"gqlserver/graph"
7-
"gqlserver/middleware"
5+
"spurtcms-graphql/controller"
6+
"spurtcms-graphql/graph"
7+
"spurtcms-graphql/middleware"
88

99
"github.com/99designs/gqlgen/graphql/handler"
1010
"github.com/99designs/gqlgen/graphql/playground"

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
module gqlserver
1+
module spurtcms-graphql
22

33
go 1.20
44

55
require (
66
github.com/99designs/gqlgen v0.17.40
77
github.com/gin-gonic/gin v1.9.1
88
github.com/joho/godotenv v1.5.1
9-
github.com/spurtcms/pkgcontent v1.0.89
10-
github.com/spurtcms/pkgcore v1.0.56
9+
github.com/spurtcms/pkgcontent v1.0.93
10+
github.com/spurtcms/pkgcore v1.0.59
1111
github.com/vektah/gqlparser/v2 v2.5.10
1212
gorm.io/driver/postgres v1.5.4
1313
gorm.io/gorm v1.25.5

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,12 @@ github.com/sosodev/duration v1.1.0 h1:kQcaiGbJaIsRqgQy7VGlZrVw1giWO+lDoX3MCPnpVO
9999
github.com/sosodev/duration v1.1.0/go.mod h1:RQIBBX0+fMLc/D9+Jb/fwvVmo0eZvDDEERAikUR6SDg=
100100
github.com/spurtcms/pkgcontent v1.0.89 h1:S21CRzGmmbg4GrfCVoGJIawMxfjhlNj0f+GOEmYM8SY=
101101
github.com/spurtcms/pkgcontent v1.0.89/go.mod h1:xQhD8scBoAWIcnokG6LrJSOqBHepEBVh6AgVEBZDW6I=
102+
github.com/spurtcms/pkgcontent v1.0.93 h1:aHPZOocxxd7K9PRgYsZ/aePQTqTcrY9qEDtiGw3+t2k=
103+
github.com/spurtcms/pkgcontent v1.0.93/go.mod h1:lI4kGwTgivAZ1M2PAEaphM3f3tykDKJrqeKOiI/ZAsI=
102104
github.com/spurtcms/pkgcore v1.0.56 h1:VESLicpo15V4S2StBBAAOKYIMdZ6kxKUjWskBzvXPuA=
103105
github.com/spurtcms/pkgcore v1.0.56/go.mod h1:k/HTW4fjgZbQTN92Q7pWfvoHtbT0S08b1LbFNJsdn38=
106+
github.com/spurtcms/pkgcore v1.0.59 h1:Sg4MEHIThPSL1714Ct4aH/NvNmRji2pFKnCM/FKwYLE=
107+
github.com/spurtcms/pkgcore v1.0.59/go.mod h1:k/HTW4fjgZbQTN92Q7pWfvoHtbT0S08b1LbFNJsdn38=
104108
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
105109
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
106110
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=

graph/generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

graph/resolver.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package graph
22

33
import (
44
"context"
5-
"gqlserver/controller"
6-
"gqlserver/dbconfig"
7-
"gqlserver/graph/model"
5+
"spurtcms-graphql/controller"
6+
"spurtcms-graphql/dbconfig"
7+
"spurtcms-graphql/graph/model"
88

99
"gorm.io/gorm"
1010
)

0 commit comments

Comments
 (0)