This commit is contained in:
aozhiwei 2024-03-11 19:50:07 +08:00
parent a12d6d4b9e
commit feae034d36

5
app.go
View File

@ -37,6 +37,7 @@ type App interface {
user string, passwd string, dataBase string)
GetOrmDb(string) *gorm.DB
RegisterCaHandle(c string, a string, handle GinHandlerFunc)
GetPid() int
}
type UserApp interface {
@ -372,6 +373,10 @@ func (this *app) getCaHandle(handleName string) GinHandlerFunc {
}
}
func (this *app) GetPid() int {
return os.Getpid()
}
func parseArgs() (int, int) {
args := os.Args[1:]
if len(args) <= 0 {