account

package
v0.0.0-...-176c3f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2018 License: MIT Imports: 6 Imported by: 0

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

func GetUserFromContext(ctx context.Context) *User

func NewUserFromOnlyId

func NewUserFromOnlyId(ctx context.Context, id int) *User

func (*User) GetId

func (this *User) GetId() int

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL