service.go 237 B

12345678910111213
  1. package share
  2. import "github.com/gogf/gf/v2/net/ghttp"
  3. type ShareRouter struct{}
  4. func (c *ShareRouter) Index(r *ghttp.Request) {
  5. r.Response.Write("index")
  6. }
  7. func (c *ShareRouter) Show(r *ghttp.Request) {
  8. r.Response.Write("show")
  9. }