代码拉取完成,页面将自动刷新
// Package api Code Generated by booctl; SKIP IF EXISTS.
package api_test
import (
"gitee.com/kristas/booting-go/framework"
"gitee.com/kristas/booting-go/framework/core/log"
"gitee.com/kristas/booting-go/framework/core/statement/types"
"gitee.com/kristas/booting-go/framework/web/rest"
)
func init() {
framework.Component(new(TestInjectPathController))
}
type TestInjectPathController struct {
types.Controller `group:"/test/inject/path"`
Log log.Logger `wire:""`
testInt rest.GET `url:"/int/{val}" param:"val path"`
testInt32 rest.GET `url:"/int32/{val}" param:"val path"`
testInt64 rest.GET `url:"/int64/{val}" param:"val path"`
testFloat32 rest.GET `url:"/float32/{val}" param:"val path"`
testFloat64 rest.GET `url:"/float64/{val}" param:"val path"`
testBool rest.GET `url:"/bool/{val}" param:"val path"`
testString rest.GET `url:"/string/{val}" param:"val path"`
}
func (h *TestInjectPathController) TestInt(val int) int {
return val
}
func (h *TestInjectPathController) TestInt32(val int32) int32 {
return val
}
func (h *TestInjectPathController) TestInt64(val int64) int64 {
return val
}
func (h *TestInjectPathController) TestFloat32(val float32) float32 {
return val
}
func (h *TestInjectPathController) TestFloat64(val float64) float64 {
return val
}
func (h *TestInjectPathController) TestBool(val bool) bool {
return val
}
func (h *TestInjectPathController) TestString(val string) string {
return val
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。