方法添加注释,中文版注释

This commit is contained in:
rainyan
2020-04-05 22:23:17 +08:00
parent c755120c8d
commit 13c30d4c55
27 changed files with 457 additions and 150 deletions

View File

@@ -21,6 +21,11 @@ type Field struct {
ColumnName string `json:"columnName"`
}
// @title CreateTemp
// @description 函数的详细描述
// @auth 2020/04/05 20:22
// @param newPassword string
// @return err error
func (a *AutoCodeStruct) CreateTemp() (err error) {
basePath := "./template"
modelTmpl, err := template.ParseFiles(basePath + "/te/model.go.tpl")
@@ -125,7 +130,11 @@ func (a *AutoCodeStruct) CreateTemp() (err error) {
return nil
}
//批量创建文件夹
// @title createDir
// @description 批量创建文件夹
// @auth 2020/04/05 20:22
// @param newPassword string
// @return err error
func createDir(dirs ...string) (err error) {
for _, v := range dirs {
exist, err := utils.PathExists(v)