This commit is contained in:
withchao
2023-01-12 17:52:14 +08:00
parent 6bd62610dd
commit 5e48231d51
4 changed files with 41 additions and 28 deletions
+13
View File
@@ -0,0 +1,13 @@
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
}