mirror of
https://gitcode.com/flipped-aurora/gin-vue-admin.git
synced 2026-05-14 11:17:55 +00:00
方法添加注释,中文版注释
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user