init
This commit is contained in:
parent
596cb051fd
commit
118a5dc976
BIN
data/DB_Task.dat
BIN
data/DB_Task.dat
Binary file not shown.
Binary file not shown.
|
@ -64,7 +64,7 @@ func Init() {
|
|||
return
|
||||
}
|
||||
|
||||
srvDataAbsPath := filepath.Join(wd, "..", "srvdata")
|
||||
srvDataAbsPath := filepath.Join(wd, "..", "code")
|
||||
err = os.MkdirAll(srvDataAbsPath, os.ModePerm)
|
||||
if err != nil {
|
||||
return
|
||||
|
@ -204,7 +204,7 @@ func genGoDataMgr(sms *SheetMetaStruct) {
|
|||
fmt.Println("genGoDataMgr ExecuteTemplate error:", err)
|
||||
return
|
||||
}
|
||||
opath := filepath.Join("../srvdata", strings.ToLower(fmt.Sprintf("%v.go", sms.ProtoName)))
|
||||
opath := filepath.Join("../code", strings.ToLower(fmt.Sprintf("%v.go", sms.ProtoName)))
|
||||
err = os.WriteFile(opath, outputHelper.Bytes(), os.ModePerm)
|
||||
if err != nil {
|
||||
fmt.Println("genGoDataMgr WriteFile error:", err)
|
||||
|
|
Loading…
Reference in New Issue