Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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
Click to show internal directories.
Click to hide internal directories.