Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RUser ¶
type RUser struct { Id int `json:"id"` Name string `json:"name"` Avatar string `json:"avatar"` Cover string `json:"cover"` Sex string `json:"sex"` Code string `json:"code"` Phone string `json:"phone"` Birthday string `json:"birthday"` Region string `json:"region"` Slogan string `json:"slogan"` Age int64 `json:"age"` Roles []string `json:"roles"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` IsFollowee bool `json:"is_followee"` IsRegisterEasemob bool `json:"is_register_easemob"` }
type User ¶
type User struct { eel.EntityBase Id int PlatformId int Name string Avatar string Cover string Sex string Phone string Birthday string Region string Slogan string Longitude float64 Latitude float64 Distance string Age int64 Code string RawData *simplejson.Json LastActiveTime string DisplayLiveness string IsRegisterEasemob bool Roles []interface{} CreatedAt time.Time }
func GetUserFromContext ¶
type UserRepository ¶
type UserRepository struct {
eel.ServiceBase
}
func NewUserRepository ¶
func NewUserRepository(ctx context.Context) *UserRepository
func (*UserRepository) GetUsers ¶
func (this *UserRepository) GetUsers(ids []int) []*User
func (*UserRepository) GetUsersByCodes ¶
func (this *UserRepository) GetUsersByCodes(codes []string) []*User
func (*UserRepository) GetUsersByUnionids ¶
func (this *UserRepository) GetUsersByUnionids(unionids []string) []*User
func (*UserRepository) GetUsersWithOptions ¶
func (this *UserRepository) GetUsersWithOptions(ids []int, options map[string]interface{}) []*User
Click to show internal directories.
Click to hide internal directories.