Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPlatformId ¶
func GetPlatformId() int
Types ¶
type Corp ¶
type Corp struct { eel.EntityBase Id int PlatformId int CorpUser *CorpUser }
func GetCorpFromContext ¶
func NewInvalidCorp ¶
func (*Corp) GetPlatformId ¶
func (*Corp) IsPlatform ¶
type CorpRepository ¶
type CorpRepository struct {
eel.ServiceBase
}
func NewCorpRepository ¶
func NewCorpRepository(ctx context.Context) *CorpRepository
func (*CorpRepository) GetCorpById ¶
func (this *CorpRepository) GetCorpById(corpId int) *Corp
type CorpUserRepository ¶
type CorpUserRepository struct {
eel.ServiceBase
}
func NewCorpUserRepository ¶
func NewCorpUserRepository(ctx context.Context) *CorpUserRepository
func (*CorpUserRepository) GetCorpUsers ¶
func (this *CorpUserRepository) GetCorpUsers(ids []int) []*CorpUser
type EncodeUserService ¶
type EncodeUserService struct {
eel.ServiceBase
}
func NewEncodeUserService ¶
func NewEncodeUserService(ctx context.Context) *EncodeUserService
func (*EncodeUserService) Encode ¶
func (this *EncodeUserService) Encode(user *User) *RUser
func (*EncodeUserService) EncodeMany ¶
func (this *EncodeUserService) EncodeMany(users []*User) []*RUser
type User ¶
type User struct { eel.EntityBase Id int PlatformId int Unionid string Name string Avatar string Sex string Code string Source string RawData *simplejson.Json CreatedAt time.Time }
func GetUserFromContext ¶
type UserRepository ¶
type UserRepository struct {
eel.ServiceBase
}
func NewUserRepository ¶
func NewUserRepository(ctx context.Context) *UserRepository
func (*UserRepository) GetUserById ¶
func (this *UserRepository) GetUserById(id int) *User
func (*UserRepository) GetUsers ¶
func (this *UserRepository) GetUsers(ids []int) []*User
Click to show internal directories.
Click to hide internal directories.