Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
homekeeper
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Peter Cheng
homekeeper
Commits
35795f8c
Commit
35795f8c
authored
May 20, 2019
by
Peter Cheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改import路徑
parent
17947169
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
mail.go
controllers/mail.go
+3
-2
redis.go
controllers/redis.go
+4
-2
main.go
main.go
+2
-2
api.go
route/api.go
+3
-2
No files found.
controllers/mail.go
View file @
35795f8c
...
@@ -4,8 +4,9 @@ import (
...
@@ -4,8 +4,9 @@ import (
"log"
"log"
"net/http"
"net/http"
"../beans"
"homekeeper/beans"
"../env"
"homekeeper/env"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin"
"gopkg.in/gomail.v2"
"gopkg.in/gomail.v2"
)
)
...
...
controllers/redis.go
View file @
35795f8c
...
@@ -5,8 +5,10 @@ import (
...
@@ -5,8 +5,10 @@ import (
"net/http"
"net/http"
"strings"
"strings"
"../beans"
"homekeeper/beans"
"../env"
"homekeeper/env"
"github.com/garyburd/redigo/redis"
"github.com/garyburd/redigo/redis"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin"
)
)
...
...
main.go
View file @
35795f8c
package
main
package
main
import
(
import
(
"
.
/env"
"
homekeeper
/env"
"
.
/route"
"
homekeeper
/route"
)
)
var
cfg
=
env
.
GetEnv
()
var
cfg
=
env
.
GetEnv
()
...
...
route/api.go
View file @
35795f8c
package
route
package
route
import
(
import
(
"../controllers"
"homekeeper/controllers"
"../env"
"homekeeper/env"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin"
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment