This commit is contained in:
aozhiwei 2024-04-04 13:53:15 +08:00
parent 1a19949e64
commit 178d811f9a

10
app.go
View File

@ -39,6 +39,8 @@ type App interface {
GetOrmDb(string) *gorm.DB
RegisterCaHandle(c string, a string, handle GinHandlerFunc)
GetPid() int
AsyncLock(string, *AsyncTask)
AsyncUnLock(string)
}
type UserApp interface {
@ -384,6 +386,14 @@ func (this *app) GetPid() int {
return this.pid
}
func (this *app) AsyncLock(key string, task *AsyncTask) {
}
func (this *app) AsyncUnLock(key string) {
}
func parseArgs() (int, int) {
args := os.Args[1:]
if len(args) <= 0 {