Documentation
¶
Index ¶
- type Info
- type List
- type Tag
- func (tag *Tag) Create(name string) (TagItem, error)
- func (tag *Tag) Delete(tagId int) error
- func (tag *Tag) List() ([]TagItem, error)
- func (tag *Tag) TagUsers(openidList []string, tagId int) error
- func (tag *Tag) UntagUsers(openidList []string, tagId int) error
- func (tag *Tag) Update(tagId int, name string) error
- func (tag *Tag) UserTags(openid string) ([]int, error)
- func (tag *Tag) UsersOfTag(tagId int, nextOpenid string) (TagUser, error)
- type TagItem
- type TagUser
- type User
- func (u *User) BatchBlackUser(openidList []string) error
- func (u *User) BatchInfo(list []map[string]string) ([]Info, error)
- func (u *User) BatchUnBlackUser(openidList []string) error
- func (u *User) BlackList(beginOpenid string) (*List, error)
- func (u *User) Info(openid string) (*Info, error)
- func (u *User) List(nextOpenid string) (*List, error)
- func (u *User) Remark(openid, remark string) error
- func (u *User) Tag() *Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Subscribe uint8 `json:"subscribe"`
Openid string `json:"openid"`
UnionID string `json:"unionid"`
Language string `json:"language"`
Remark string `json:"remark"`
GroupID int64 `json:"groupid"`
TagIdList []int64 `json:"tagid_list"`
SubscribeTime int64 `json:"subscribe_time"`
SubscribeScene string `json:"subscribe_scene"`
QrScene int64 `json:"qr_scene"`
QrSceneStr string `json:"qr_scene_str"`
}
Info 用户信息
type List ¶
type List struct {
Total int64 `json:"total"`
Count int64 `json:"count"`
NextOpenid string `json:"next_openid"`
Data struct {
Openid []string `json:"openid"`
} `json:"data"`
}
List 用户列表
type Tag ¶
type Tag struct {
// contains filtered or unexported fields
}
Tag 用户标签管理
func NewUserTag ¶
func NewUserTag(account contracts.AccountInterface) *Tag
func (*Tag) UntagUsers ¶
UntagUsers 批量为用户取消标签
type User ¶
type User struct {
// contains filtered or unexported fields
}
User 用户管理
func New ¶
func New(account contracts.AccountInterface) *User
func (*User) BatchBlackUser ¶
BatchBlackUser 批量拉黑用户
func (*User) BatchInfo ¶
BatchInfo 批量获取用户信息 param list []map[string]string{{"openid":"openid","lang":"zh_CN"}}
func (*User) BatchUnBlackUser ¶
BatchUnBlackUser 批量取消拉黑用户
Click to show internal directories.
Click to hide internal directories.