mirror of
https://gitee.com/johng/gf
synced 2026-07-06 21:45:34 +08:00
22 lines
344 B
Go
22 lines
344 B
Go
package demo
|
|
|
|
import (
|
|
"gitee.com/johng/gf/g"
|
|
"gitee.com/johng/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")
|
|
}
|
|
|