共有 16 个文件被更改,包括 154 次插入 和 43 次删除
二进制文件未显示。
@ -0,0 +1,14 @@ |
|||||
|
package service |
||||
|
|
||||
|
import ( |
||||
|
"github.com/astaxie/beego/orm" |
||||
|
"beeblog/models" |
||||
|
) |
||||
|
|
||||
|
func GetCats() ([]*models.Category, error) { |
||||
|
var notes []*models.Category |
||||
|
o := orm.NewOrm() |
||||
|
qs := o.QueryTable(models.Category{}) |
||||
|
_, err := qs.All(¬es) |
||||
|
return notes, err |
||||
|
} |
文件差异因一行或多行过长而隐藏
文件差异因一行或多行过长而隐藏
文件差异因一行或多行过长而隐藏
@ -0,0 +1,10 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="en"> |
||||
|
<head> |
||||
|
<meta charset="UTF-8"> |
||||
|
<title>Title</title> |
||||
|
</head> |
||||
|
<body> |
||||
|
<h1>500</h1> |
||||
|
</body> |
||||
|
</html> |
@ -0,0 +1,14 @@ |
|||||
|
{{template "header"}} |
||||
|
<title>博客 - 个人随笔</title> |
||||
|
<link type="text/css" rel="styleSheet" href="/static/css/blog.css"/> |
||||
|
</head> |
||||
|
<body> |
||||
|
<div class="root-container"> |
||||
|
{{template "nav" .}} |
||||
|
<div class="blog-root"> |
||||
|
<h1>{{.Blog.Title}}</h1> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
</body> |
||||
|
</html> |
正在加载...
在新工单中引用