13 lines
248 B
Go
13 lines
248 B
Go
|
|
package member
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"net/http"
|
||
|
|
|
||
|
|
logic "gateway/internal/logic/member"
|
||
|
|
)
|
||
|
|
|
||
|
|
func actorContext(ctx context.Context, r *http.Request) context.Context {
|
||
|
|
return logic.WithActor(ctx, r.Header.Get("X-Tenant-ID"), r.Header.Get("X-UID"))
|
||
|
|
}
|