user

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionType

type ActionType int64

ActionType 分类 .

type LeadsLevelType

type LeadsLevelType int64

LeadsLevelType 用户状态 .

type LeadsTagUserList

type LeadsTagUserList struct {
	util.CommonError

	Cursor  int64    `json:"cursor"`
	HasMore bool     `json:"has_more"`
	List    []string `json:"list"`
}

LeadsTagUserList .

type LeadsUser

type LeadsUser struct {
	util.CommonError

	Avatar     string    `json:"avatar"`
	City       string    `json:"city"`
	Age        int64     `json:"age"`
	Gender     int64     `json:"gender"`
	IsFollow   bool      `json:"is_follow"`
	LeadsLevel int64     `json:"leads_level"`
	Nickname   string    `json:"nickname"`
	OpenID     string    `json:"open_id"`
	TagList    []TagInfo `json:"tag_list"`
	Telephone  string    `json:"telephone"`
	Wechat     string    `json:"wechat"`
}

LeadsUser 意向用户详情.

type LeadsUserAction

type LeadsUserAction struct {
	util.CommonError

	Cursor  int64 `json:"cursor"`
	HasMore bool  `json:"has_more"`
	List    []struct {
		ActionFlag   int64  `json:"action_flag"`
		ActionSource string `json:"action_source"`
		ActionType   int64  `json:"action_type"`
		CreateTime   int64  `json:"create_time"`
		UserID       int64  `json:"user_id"`
	} `json:"list"`
}

LeadsUserAction user action.

type LeadsUserList

type LeadsUserList struct {
	util.CommonError

	Total   int64       `json:"total"`
	Cursor  int64       `json:"cursor"`
	HasMore bool        `json:"has_more"`
	Users   []LeadsUser `json:"users"`
}

LeadsUserList user list.

type TagInfo

type TagInfo struct {
	TagID   string `json:"tag_id"`
	TagName string `json:"tag_name"`
}

TagInfo user tag.

type TagList

type TagList struct {
	util.CommonError

	Cursor  int64     `json:"cursor"`
	HasMore bool      `json:"has_more"`
	List    []TagInfo `json:"list"`
}

TagList .

type UpdateUserTagReq added in v1.0.2

type UpdateUserTagReq struct {
	Bind   bool   `json:"bind"`
	TagID  string `json:"tag_id"`
	UserID string `json:"user_id"`
}

UpdateUserTagReq .

type User

type User struct {
	*context.Context
}

User 用户

func NewUser added in v1.0.2

func NewUser(context *context.Context) *User

NewUser .

func (*User) CreateTag

func (user *User) CreateTag(openid, tagName string) (tagID string, err error)

CreateTag 创建标签.

func (*User) LeadsUserDetail

func (user *User) LeadsUserDetail(openid, userid string) (leadsUser *LeadsUser, err error)

LeadsUserDetail 获取意向用户详情

func (*User) ListLeadsTag

func (user *User) ListLeadsTag(openid string, cursor, count int64) (res *TagList, err error)

ListLeadsTag 获取标签列表.

func (*User) ListLeadsTagUser

func (user *User) ListLeadsTagUser(openid, tagid string, cursor, count int64) (leadsTagUser *LeadsTagUserList, err error)

ListLeadsTagUser 获取打标签的用户列表.

func (*User) ListLeadsUser

func (user *User) ListLeadsUser(openid string, cursor, count int64, startTime, endTime, leadsLevel int64, actionType int64) (res *LeadsUserList, err error)

ListLeadsUser 获取意向用户列表

func (*User) ListLeadsUserAction

func (user *User) ListLeadsUserAction(openid, userid string, count int64, cursor string, actionType int64) (leadsUserAction *LeadsUserAction, err error)

ListLeadsUserAction 获取意向用户互动记录

func (*User) UpdateTag

func (user *User) UpdateTag(openid, tagName, tagID string) (err error)

UpdateTag 更新标签.

func (*User) UpdateUserTag added in v1.0.2

func (user *User) UpdateUserTag(openid string, req UpdateUserTagReq) (err error)

UpdateUserTag 给用户设置标签.

Jump to

Keyboard shortcuts

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