Documentation ¶
Index ¶
- Constants
- Variables
- func ParseTemplate(tpl *template.Template, data interface{}) (string, error)
- func SqlColumn(list []ORMProperty) string
- type ApiListProperty
- type ApiListTable
- type ApiTable
- type BffHookTplArg
- type BffImplTplArg
- type BffMainTplArg
- type BffRouterImplTplArg
- type IntellijAutomatedProperty
- type JobCmdSubTplArg
- type JobMainTplArg
- type MarkdownErrCodeTable
- type MarkdownProperty
- type MarkdownReqRespTable
- type MarkdownTable
- type ORMProperty
- type ORMTplArg
- type ServiceHookTplArg
- type ServiceImplArg
- type ServiceMainTplArg
- type ServiceServerTplArg
Constants ¶
View Source
const PingTxt = `` /* 6400-byte string literal not displayed */
Variables ¶
View Source
var ( BffMakefileTemplate = template.Must(template.New("").Parse(makeFileTxt)) BffErrCodeTemplate = template.Must(template.New("").Parse(errCodeTxt)) BffConfigYmlTemplate = template.Must(template.New("").Parse(bffConfigYmlTxt)) BffConfigTemplate = template.Must(template.New("").Parse(bffConfigTxt)) BffImplTemplate = template.Must(template.New("").Parse(bffImplTxt)) BffRouterTemplate = template.Must(template.New("").Parse(bffRouterTxt)) BffHookTemplate = template.Must(template.New("").Parse(bffHookTxt)) BffMainTemplate = template.Must(template.New("").Parse(bffMainTxt)) )
View Source
var ( JobMakefileTemplate = template.Must(template.New("").Parse(makeFileTxt)) JobMainTpl = template.Must(template.New("").Parse(jobMainTxt)) JobScheduleTpl = template.Must(template.New("").Parse(jobScheduleTxt)) JobCmdRootTpl = template.Must(template.New("").Parse(jobCmdTxt)) JobCmdSubTpl = template.Must(template.New("").Parse(jobCmdSubTxt)) )
View Source
var ( ServiceConfigYmlTpl = template.Must(template.New("").Parse(serviceConfigYmlTxt)) ServiceConfigTpl = template.Must(template.New("").Parse(serviceConfigTxt)) ServiceHookTpl = template.Must(template.New("").Parse(serviceHookTxt)) ServiceServerTpl = template.Must(template.New("").Parse(serviceServerTxt)) ServiceServerInitTpl = template.Must(template.New("").Parse(serviceServerInitTxt)) ServiceMainTpl = template.Must(template.New("").Parse(serviceMainTxt)) ServiceImplTpl = template.Must(template.New("").Parse(serviceImplTxt)) )
View Source
var ApiListMarkdownTemplate = template.Must(template.New("").Parse(apiListMarkdownTxt))
View Source
var IntellijAutomatedTemplate = template.Must(template.New("").Parse(intellijAutomatedTestTxt))
View Source
var InterfaceMarkdownTemplate = template.Must(template.New("").Parse(interfaceMarkdownTxt))
Functions ¶
func SqlColumn ¶
func SqlColumn(list []ORMProperty) string
Types ¶
type ApiListProperty ¶
type ApiListProperty struct { Title string List []ApiListTable }
type ApiListTable ¶
type BffHookTplArg ¶
type BffImplTplArg ¶
type BffMainTplArg ¶
type BffRouterImplTplArg ¶
type JobCmdSubTplArg ¶ added in v0.1.1
type JobMainTplArg ¶ added in v0.1.1
type JobMainTplArg struct {
ImportPackage string
}
type MarkdownErrCodeTable ¶
type MarkdownProperty ¶
type MarkdownProperty struct { Login string Page []string Zh string URI string RequestTable []MarkdownTable RequestJson interface{} // 请求参数示例 RequestTypeScript interface{} // 请求参数-typescript 对象映射 RequestJava interface{} // 请求参数-Java 对象映射 RequestSwift interface{} // 请求参数-Swift 对象映射 RequestCurl interface{} // 请求curl ResponseTable []MarkdownTable ResponseJson interface{} // 应答参数示例 ResponseTypeScript interface{} // 应答参数-typescript 对象映射 ResponseJava interface{} // 应答参数-Java 对象映射 ResponseSwift interface{} // 应答参数-Swift 对象映射 ErrCodeTable []MarkdownErrCodeTable }
type MarkdownReqRespTable ¶
type MarkdownTable ¶
type MarkdownTable struct { Title string Tables []MarkdownReqRespTable }
type ORMProperty ¶
type ORMTplArg ¶
type ORMTplArg struct { ShortTable string FullTable string TableName string SnakeProperty []ORMProperty CamelProperty []ORMProperty }
type ServiceHookTplArg ¶
type ServiceImplArg ¶
type ServiceMainTplArg ¶
Click to show internal directories.
Click to hide internal directories.