feat: 更新 @Bind 注释语法,移除 table 参数,优化文档内容

This commit is contained in:
Rogee
2025-09-11 19:28:51 +08:00
parent 9c910b6ede
commit b93c7726f2
2 changed files with 11 additions and 14 deletions

View File

@@ -29,12 +29,11 @@ type ActionDefinition struct {
}
type ParamDefinition struct {
Name string
Type string
Key string
Table string
Model string
Position Position
Name string
Type string
Key string
Model string
Position Position
}
type Position string
@@ -252,11 +251,9 @@ func parseRouteBind(bind string) ParamDefinition {
param.Position = positionFromString(parts[i+2])
case "key":
param.Key = parts[i+1]
case "table":
param.Table = parts[i+1]
case "model":
param.Model = parts[i+1]
}
case "model":
param.Model = parts[i+1]
}
}
return param
}