集群增加是否远程启动选项

This commit is contained in:
刘祥超
2022-09-17 15:11:34 +08:00
parent 5f822062da
commit 55eecce416
7 changed files with 77 additions and 53 deletions

View File

@@ -5,6 +5,14 @@ import (
"time"
)
func IsRest(ctx context.Context) bool {
if ctx == nil {
return false
}
_, ok := ctx.(*PlainContext)
return ok
}
type PlainContext struct {
UserType string
UserId int64