/app/controller/hello.go
Go | 23 lines | 12 code | 4 blank | 7 comment | 0 complexity | 354b8207aa908798a3fcfe89f4bf8c96 MD5 | raw file
- package hello
- import . "framework/mv"
- import "app/domain/user"
- import "fmt"
- type HelloController struct {
- Params
- *user.UserService
- }
- func (c *HelloController) Index() Model {
- fmt.Printf("id = %s\n", c.Params["id"])
- return Model{"user": ""}
- // book.Get(c.Params["id"])}
- //
- // /hello/index/doc1
- // /:controller/:action/:id
- //
- // return book.findById(Params["id"])
- //
- }