Documentation
¶
Index ¶
- type API
- type AppParser
- type Application
- type Bean
- type Column
- type Common
- func (c *Common) APIPath(ctrName, apiName, apiPath string) string
- func (c *Common) APIPrefix(v string) string
- func (c *Common) AutoIncr(tables []*Table, tableName string) (fields []string)
- func (c *Common) Contains(args []string, s string) bool
- func (c *Common) FormatString(args []string, segm string) template.HTML
- func (c *Common) ISArray(m string) bool
- func (c *Common) Import(pkgs ...string) template.HTML
- func (c *Common) LcFirst(str string) string
- func (c *Common) ORef(m string) string
- func (c *Common) PRef(m string) string
- func (c *Common) Ref(m string) string
- func (c *Common) SQLDelOne(table Table, name string) string
- func (c *Common) SQLInsertOne(table Table, name string) string
- func (c *Common) SQLSelectAll(table Table, name string) string
- func (c *Common) SQLSelectOne(table Table, name string) string
- func (c *Common) SQLUpdateOne(table Table, name string) string
- func (c *Common) SRef(m string) string
- func (c *Common) SplitExtends(parent string) []string
- func (c *Common) TableName(app string, table string) string
- func (c *Common) TableNameOfType(t string) string
- func (c *Common) Title(str string) string
- func (c *Common) ToTitle(title string) string
- func (c *Common) ToTypeValue(t string, v string) template.HTML
- func (c *Common) ToUpper(name string) string
- func (c *Common) ToUpperCase(name string) string
- func (c *Common) TypeWithPointer(m string) string
- func (c *Common) UcFirst(str string) string
- func (c *Common) Unescaped(x string) template.HTML
- type Controller
- type Failure
- type Overlap
- type Param
- type Pipe
- type Prop
- type RPC
- type Reply
- type Request
- type Return
- type Success
- type Table
- type TmplCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶ added in v1.2.3
type API struct { Common Roles []string Auth []string Version string Path string Func string Table string Method string Cache uint64 Params []*Param Return *Return }
API defined TODO
type AppParser ¶
type AppParser struct {
*Application
}
AppParser defined AppParser struct
func (*AppParser) MarshalIndent ¶
MarshalIndent marshal XML to string
type Application ¶ added in v1.2.3
type Application struct { Common PackageName string `validate:"required"` Controllers []*Controller Beans []*Bean Tables []*Table }
Application defined TODO
type Common ¶ added in v1.2.3
type Common struct { Name string `validate:"required"` Desc string `validate:"required"` Path string }
Common defined TODO
func (*Common) FormatString ¶ added in v1.2.3
FormatString defined
func (*Common) SQLInsertOne ¶ added in v1.2.3
SQLInsertOne insert one
func (*Common) SQLSelectAll ¶ added in v1.2.3
SQLSelectAll select one
func (*Common) SQLSelectOne ¶ added in v1.2.3
SQLSelectOne select one
func (*Common) SQLUpdateOne ¶ added in v1.2.3
SQLUpdateOne update one
func (*Common) SplitExtends ¶ added in v1.2.3
SplitExtends extends model,bean
func (*Common) TableNameOfType ¶ added in v1.2.3
TableNameOfType defined
func (*Common) ToTypeValue ¶ added in v1.2.3
ToTypeValue value
func (*Common) ToUpperCase ¶ added in v1.2.3
ToUpperCase uppercase
func (*Common) TypeWithPointer ¶ added in v1.2.3
TypeWithPointer defined model name
type Controller ¶ added in v1.2.3
Controller defined TODO
type Pipe ¶ added in v1.2.3
type Pipe interface { Pre(*AppParser) error After(*AppParser, []*TmplCfg) error Name() string Build(string, []string, *AppParser) ([]*TmplCfg, error) }
Pipe interface
Click to show internal directories.
Click to hide internal directories.