Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenhan wang
pastebin
Commits
69e59d57
Commit
69e59d57
authored
Jan 19, 2023
by
chenhan wang
Browse files
本地调试2.5
parent
6c660a49
Changes
2
Hide whitespace changes
Inline
Side-by-side
backend/app/controller/interface.go
View file @
69e59d57
...
@@ -14,7 +14,7 @@ import (
...
@@ -14,7 +14,7 @@ import (
type
File
struct
{
type
File
struct
{
FileName
string
`json:"fileName" form:"fileName" query:"fileName"`
FileName
string
`json:"fileName" form:"fileName" query:"fileName"`
FileType
string
`json:"fileType" form:"fileType" query:"file
Nam
e"`
FileType
string
`json:"fileType" form:"fileType" query:"file
Typ
e"`
Expiration
int
`json:"expiration" form:"expiration" query:"expiration"`
Expiration
int
`json:"expiration" form:"expiration" query:"expiration"`
User
string
`json:"user" form:"user" query:"user"`
User
string
`json:"user" form:"user" query:"user"`
Passwd
string
`json:"passwd" form:"passwd" query:"passwd"`
Passwd
string
`json:"passwd" form:"passwd" query:"passwd"`
...
...
backend/app/init.go
View file @
69e59d57
...
@@ -21,9 +21,9 @@ func InitWebFramework() {
...
@@ -21,9 +21,9 @@ func InitWebFramework() {
}
}
func
StartServer
()
{
func
StartServer
()
{
e
.
Logger
.
Fatal
(
e
.
Start
(
controller
.
GetSetting
(
"
test
url"
)))
// 启动服务,注意默认端口80不能省略
e
.
Logger
.
Fatal
(
e
.
Start
(
controller
.
GetSetting
(
"url"
)))
// 启动服务,注意默认端口80不能省略
//e.Logger.Fatal(e.Start("127.0.0.1:80")) // 启动服务,注意默认端口80不能省略
//e.Logger.Fatal(e.Start("127.0.0.1:80")) // 启动服务,注意默认端口80不能省略
//e.Logger.Fatal(e.Start("http://xlab.zju.edu.cn/test/pastebin/group-1"))
// 启动服务,注意默认端口80不能省略,需要域名解析,config
//e.Logger.Fatal(e.Start("http://xlab.zju.edu.cn/test/pastebin/group-1
:80
")) // 启动服务,注意默认端口80不能省略,需要域名解析,config
}
}
/*
/*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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