| 1234567891011121314 |
- package common
- import (
- "context"
- context2 "git.ikuban.com/server/kratos-utils/http/context"
- )
- func NewContext(accountID int64) context.Context {
- ctx := context.Background()
- ctx = context2.AppendToContext(ctx, "user_id", accountID)
- ctx = context2.AppendToContext(ctx, "account_id", accountID)
- return ctx
- }
|