diff --git a/TODO b/TODO index 024f2d3f0..638f0d05f 100644 --- a/TODO +++ b/TODO @@ -10,8 +10,6 @@ ghttp.Response增加输出内容后自动退出当前请求机制,不需要用 Cookie&Session数据池化处理; ghttp.Client增加proxy特性; gtime增加对时区转换的封装,并简化失去转换时对类似+80500时区的支持; -改进gf-orm的where查询功能,参考thinkphp 里的where查询语法; -gpage分页增加对自定义后缀的支持,如:2.html, 2.php等等; gvalid包增加tag与校验规则绑定的支持特性; ghttp获取参数支持直接转struct功能; map转struct增加对tag的支持; @@ -49,5 +47,6 @@ DONE: 27. gproc进程间通信增加分组特性,不同的进程间可以通过进程ID以及分组名称发送/获取进程消息; 28. ORM增加获取被执行的sql语句的方法; 29. gdb增加查询缓存特性; +30. gpage分页增加对自定义后缀的支持,如:2.html, 2.php等等; diff --git a/geg/net/ghttp/server/controller/user.go b/geg/net/ghttp/server/controller/user.go new file mode 100644 index 000000000..f0283ec90 --- /dev/null +++ b/geg/net/ghttp/server/controller/user.go @@ -0,0 +1,27 @@ +package main + +import ( + "gitee.com/johng/gf/g/frame/gmvc" + "gitee.com/johng/gf/g" +) + +type User struct { + gmvc.Controller +} + +func (c *User) Index() { + c.View.Display("index.html") +} + +func main() { + g.View().SetPath("C:/www/static") + s := g.Server() + s.BindController("/user", new(User)) + s.SetPort(8199) + s.Run() +} + + + + + diff --git a/version.go b/version.go index 7227f4322..fd7ed2cd8 100644 --- a/version.go +++ b/version.go @@ -1,5 +1,5 @@ package gf -const VERSION = "0.98 beta" +const VERSION = "0.99 beta" const AUTHORS = "john"