forked from rubyhan1314/Golang-100-Days
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f19443
commit 4a1e11b
Showing
494 changed files
with
29,920 additions
and
6 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
Day38-41(beego框架开发博客系统)/code/day38_1、项目搭建和用户注册功能/myblog/.idea/misc.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
Day38-41(beego框架开发博客系统)/code/day38_1、项目搭建和用户注册功能/myblog/.idea/modules.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
Day38-41(beego框架开发博客系统)/code/day38_1、项目搭建和用户注册功能/myblog/.idea/myblog.iml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
291 changes: 291 additions & 0 deletions
291
Day38-41(beego框架开发博客系统)/code/day38_1、项目搭建和用户注册功能/myblog/.idea/workspace.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
Day38-41(beego框架开发博客系统)/code/day38_1、项目搭建和用户注册功能/myblog/conf/app.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
appname = myblog | ||
httpport = 8080 | ||
runmode = dev | ||
|
||
#mysql配置 | ||
driverName = mysql | ||
mysqluser = root | ||
mysqlpwd = yu271400 | ||
host = 127.0.0.1 | ||
port = 3306 | ||
dbname = myblog | ||
|
||
|
15 changes: 15 additions & 0 deletions
15
Day38-41(beego框架开发博客系统)/code/day38_1、项目搭建和用户注册功能/myblog/controllers/default.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package controllers | ||
|
||
import ( | ||
"github.com/astaxie/beego" | ||
) | ||
|
||
type MainController struct { | ||
beego.Controller | ||
} | ||
|
||
func (c *MainController) Get() { | ||
c.Data["Website"] = "beego.me" | ||
c.Data["Email"] = "astaxie@gmail.com" | ||
c.TplName = "index.tpl" | ||
} |
Oops, something went wrong.