Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContextMap ¶ added in v0.0.2
GetContextMap 获取上游传入的系统上下文参数, Map 通用结构
Types ¶
type IUser ¶
type IUser interface { // GetUserID 若无实际触发人, 返回 -1 GetUserID(ctx context.Context) int64 // GetLocaleByUserID 获取指定 user 的 locale 信息 GetLocaleByUserID(ctx context.Context, userID int64) (*structs.Locale, error) // GetLocaleByUserIDList 批量获取指定 user 列表的 locale 信息 GetLocaleByUserIDList(ctx context.Context, userIDList []int64) ([]*structs.Locale, error) }
type User ¶
type User struct {
// contains filtered or unexported fields
}
func (*User) GetLocaleByUserID ¶
func (*User) GetLocaleByUserIDList ¶
type UserContext ¶
type UserContext = cStructs.UserContext
func GetContext ¶
func GetContext(ctx context.Context) UserContext
GetContext 获得一些上游传入的系统上下文参数, 指定特定结构
Click to show internal directories.
Click to hide internal directories.