mirror of
https://gitee.com/johng/gf
synced 2026-07-06 21:45:34 +08:00
21 lines
327 B
Go
21 lines
327 B
Go
package demo
|
|
|
|
import (
|
|
"github.com/gogf/gf/g"
|
|
"github.com/gogf/gf/g/net/ghttp"
|
|
)
|
|
|
|
type Object struct{}
|
|
|
|
func init() {
|
|
g.Server().BindObject("/object", new(Object))
|
|
}
|
|
|
|
func (o *Object) Index(r *ghttp.Request) {
|
|
r.Response.Write("object index")
|
|
}
|
|
|
|
func (o *Object) Show(r *ghttp.Request) {
|
|
r.Response.Write("object show")
|
|
}
|