mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 03:26:57 +08:00
14 lines
232 B
Go
14 lines
232 B
Go
package tools
|
|
|
|
import "context"
|
|
|
|
func OperationID(ctx context.Context) string {
|
|
s, _ := ctx.Value("operationID").(string)
|
|
return s
|
|
}
|
|
|
|
func OpUserID(ctx context.Context) string {
|
|
s, _ := ctx.Value("opUserID").(string)
|
|
return s
|
|
}
|