【更新】更新pg代码生成

This commit is contained in:
PandaGoAdmin
2022-08-19 17:58:02 +08:00
parent f0e235d22f
commit cf97d854d8
11 changed files with 231 additions and 2 deletions

12
pkg/config/app.go Normal file
View File

@@ -0,0 +1,12 @@
package config
import "fmt"
type App struct {
Name string `yaml:"name"`
Version string `yaml:"version"`
}
func (a *App) GetAppInfo() string {
return fmt.Sprintf("[%s:%s]", a.Name, a.Version)
}