subuser

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

子账号管理API model

https://open.taobao.com/API.htm?docId=10820&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Department

type Department struct {
	// 部门ID
	DepartmentId int64 `json:"department_id,omitempty" xml:"department_id,omitempty"`
	// 当前部门的父部门ID
	ParentId int64 `json:"parent_id,omitempty" xml:"parent_id,omitempty"`
	// 部门名称
	DepartmentName string `json:"department_name,omitempty" xml:"department_name,omitempty"`
	// 部门下关联的子账号id列表
	SubUserIds []int64 `json:"sub_user_ids,omitempty" xml:"sub_user_ids>int64,omitempty"`
}

Department

type Duty

type Duty struct {
	// 职务ID
	DutyId int64 `json:"duty_id,omitempty" xml:"duty_id,omitempty"`
	// 职务名称
	DutyName string `json:"duty_name,omitempty" xml:"duty_name,omitempty"`
	// 职务级别
	DutyLevel int64 `json:"duty_level,omitempty" xml:"duty_level,omitempty"`
}

Duty

type Permission

type Permission struct {
	// 注册到权限中心的code值
	PermissionCode string `json:"permission_code,omitempty" xml:"permission_code,omitempty"`
	// 权限名称
	PermissionName string `json:"permission_name,omitempty" xml:"permission_name,omitempty"`
	// 父权限code
	ParentCode string `json:"parent_code,omitempty" xml:"parent_code,omitempty"`
	// 1 :允许授权  2:不允许授权 6:不允许授权但默认已有权限
	IsAuthorize int64 `json:"is_authorize,omitempty" xml:"is_authorize,omitempty"`
}

Permission

type Role

type Role struct {
	// 角色id
	RoleId int64 `json:"role_id,omitempty" xml:"role_id,omitempty"`
	// 角色名
	RoleName string `json:"role_name,omitempty" xml:"role_name,omitempty"`
	// 角色描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 卖家Id
	SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
	// 创建时间
	CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"`
	// 修改时间
	ModifiedTime string `json:"modified_time,omitempty" xml:"modified_time,omitempty"`
	// 所拥有权限
	Permissions []Permission `json:"permissions,omitempty" xml:"permissions>permission,omitempty"`
}

Role

type SubAccountInfo

type SubAccountInfo struct {
	// 123456
	SubId int64 `json:"sub_id,omitempty" xml:"sub_id,omitempty"`
	// zhangsan:no1
	SubNick string `json:"sub_nick,omitempty" xml:"sub_nick,omitempty"`
	// 654321
	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// zhangsan
	UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"`
	// 1
	SubStatus int64 `json:"sub_status,omitempty" xml:"sub_status,omitempty"`
	// true
	SubOwedStatus bool `json:"sub_owed_status,omitempty" xml:"sub_owed_status,omitempty"`
	// true
	SubDispatchStatus bool `json:"sub_dispatch_status,omitempty" xml:"sub_dispatch_status,omitempty"`
	// 小红
	SubName string `json:"sub_name,omitempty" xml:"sub_name,omitempty"`
}

SubAccountInfo

type SubUserFullInfo

type SubUserFullInfo struct {
	// 子账号Id
	SubId int64 `json:"sub_id,omitempty" xml:"sub_id,omitempty"`
	// 子账号用户名
	SubNick string `json:"sub_nick,omitempty" xml:"sub_nick,omitempty"`
	// 主账号Id
	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 主账号用户名
	UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"`
	// 子账号当前状态:1正常,2卖家停用,3处罚冻结
	SubStatus int64 `json:"sub_status,omitempty" xml:"sub_status,omitempty"`
	// 子账号是否已欠费 true:已欠费 false:未欠费
	SubOwedStatus bool `json:"sub_owed_status,omitempty" xml:"sub_owed_status,omitempty"`
	// 子账号是否参与分流 true:参与分流 false:未参与分流
	SubDispatchStatus bool `json:"sub_dispatch_status,omitempty" xml:"sub_dispatch_status,omitempty"`
	// 子账号企业邮箱
	SubuserEmail string `json:"subuser_email,omitempty" xml:"subuser_email,omitempty"`
	// 部门Id
	DepartmentId int64 `json:"department_id,omitempty" xml:"department_id,omitempty"`
	// 部门名称
	DepartmentName string `json:"department_name,omitempty" xml:"department_name,omitempty"`
	// 父部门Id
	ParentDepartment int64 `json:"parent_department,omitempty" xml:"parent_department,omitempty"`
	// 职务Id
	DutyId int64 `json:"duty_id,omitempty" xml:"duty_id,omitempty"`
	// 职务名称
	DutyName string `json:"duty_name,omitempty" xml:"duty_name,omitempty"`
	// 职务等级
	DutyLevel int64 `json:"duty_level,omitempty" xml:"duty_level,omitempty"`
	// 员工姓名
	EmployeeName string `json:"employee_name,omitempty" xml:"employee_name,omitempty"`
	// 员工入职时间
	EntryDate string `json:"entry_date,omitempty" xml:"entry_date,omitempty"`
	// 入职员工工号
	EmployeeNum string `json:"employee_num,omitempty" xml:"employee_num,omitempty"`
	// 员工花名
	EmployeeNickname string `json:"employee_nickname,omitempty" xml:"employee_nickname,omitempty"`
	// 工作地点
	WorkLocation string `json:"work_location,omitempty" xml:"work_location,omitempty"`
	// 办公电话
	OfficePhone string `json:"office_phone,omitempty" xml:"office_phone,omitempty"`
	// 员工性别  1:男;  2:女
	Sex int64 `json:"sex,omitempty" xml:"sex,omitempty"`
	// 主账号企业邮箱
	UserEmail string `json:"user_email,omitempty" xml:"user_email,omitempty"`
	// 直接上级的员工ID
	LeaderId int64 `json:"leader_id,omitempty" xml:"leader_id,omitempty"`
	// 员工ID
	EmployeeId int64 `json:"employee_id,omitempty" xml:"employee_id,omitempty"`
}

SubUserFullInfo

type SubUserInfo

type SubUserInfo struct {
	// 子账号用户名
	Nick string `json:"nick,omitempty" xml:"nick,omitempty"`
	// 子账号所属的主账号的唯一标识
	SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
	// 主账号昵称
	SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"`
	// 子账号当前状态 1正常 -1删除  2冻结
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 是否参与分流 1不参与 2参与
	IsOnline int64 `json:"is_online,omitempty" xml:"is_online,omitempty"`
	// 子账号Id
	SubId int64 `json:"sub_id,omitempty" xml:"sub_id,omitempty"`
}

SubUserInfo

type SubUserPermission

type SubUserPermission struct {
	// 子账号被直接赋予的权限点列表
	Permissions []Permission `json:"permissions,omitempty" xml:"permissions>permission,omitempty"`
	// 子账号被赋予的角色信息(Role)列表。列表中的角色对象只有role_id,role_name,permissions信息
	Roles []Role `json:"roles,omitempty" xml:"roles>role,omitempty"`
}

SubUserPermission

type TaobaoSellercenterRoleAddAPIResponse

type TaobaoSellercenterRoleAddAPIResponse struct {
	model.CommonResponse
	TaobaoSellercenterRoleAddResponse
}

子账号角色的新增(指定卖家) API返回值 taobao.sellercenter.role.add

给指定的卖家创建新的子账号角色<br/><br/>如果需要授权的权限点有下级权限点或上级权限点,把该权限点的父权限点和该权限点的所有子权限都一并做赋权操作,并递归处理<br/>例如:权限点列表如下<br/><br/>code=sell 宝贝管理<br/><br/>---------|code=sm 店铺管理<br/><br/>---------|---------|code=sm-design 如店铺装修<br/><br/>---------|---------|---------|code=sm-tbd-visit内店装修入口<br/><br/>---------|---------|---------|code=sm-tbd-publish内店装修发布<br/><br/>---------|---------|code=phone 手机淘宝店铺<br/><br/>调用改接口给code=sm-design店铺装修赋权时,同时会将下列权限点都赋予默认角色<br/><br/>code=sell 宝贝管理<br/><br/>---------|code=sm 店铺管理<br/><br/>---------|---------|code=sm-design 如店铺装修<br/><br/>---------|---------|---------|code=sm-tbd-visit内店装修入口<br/><br/>---------|---------|---------|code=sm-tbd-publish内店装修发布<br/>

type TaobaoSellercenterRoleAddRequest

type TaobaoSellercenterRoleAddRequest struct {
	model.Params
	// contains filtered or unexported fields
}

子账号角色的新增(指定卖家) API请求 taobao.sellercenter.role.add

给指定的卖家创建新的子账号角色<br/><br/>如果需要授权的权限点有下级权限点或上级权限点,把该权限点的父权限点和该权限点的所有子权限都一并做赋权操作,并递归处理<br/>例如:权限点列表如下<br/><br/>code=sell 宝贝管理<br/><br/>---------|code=sm 店铺管理<br/><br/>---------|---------|code=sm-design 如店铺装修<br/><br/>---------|---------|---------|code=sm-tbd-visit内店装修入口<br/><br/>---------|---------|---------|code=sm-tbd-publish内店装修发布<br/><br/>---------|---------|code=phone 手机淘宝店铺<br/><br/>调用改接口给code=sm-design店铺装修赋权时,同时会将下列权限点都赋予默认角色<br/><br/>code=sell 宝贝管理<br/><br/>---------|code=sm 店铺管理<br/><br/>---------|---------|code=sm-design 如店铺装修<br/><br/>---------|---------|---------|code=sm-tbd-visit内店装修入口<br/><br/>---------|---------|---------|code=sm-tbd-publish内店装修发布<br/>

func NewTaobaoSellercenterRoleAddRequest

func NewTaobaoSellercenterRoleAddRequest() *TaobaoSellercenterRoleAddRequest

初始化TaobaoSellercenterRoleAddRequest对象

func (TaobaoSellercenterRoleAddRequest) GetApiMethodName

func (r TaobaoSellercenterRoleAddRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoSellercenterRoleAddRequest) GetApiParams

func (r TaobaoSellercenterRoleAddRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoSellercenterRoleAddRequest) GetDescription

func (r TaobaoSellercenterRoleAddRequest) GetDescription() string

Description Getter

func (TaobaoSellercenterRoleAddRequest) GetName

Name Getter

func (TaobaoSellercenterRoleAddRequest) GetNick

Nick Getter

func (TaobaoSellercenterRoleAddRequest) GetPermissionCodes

func (r TaobaoSellercenterRoleAddRequest) GetPermissionCodes() []string

PermissionCodes Getter

func (*TaobaoSellercenterRoleAddRequest) SetDescription

func (r *TaobaoSellercenterRoleAddRequest) SetDescription(description string) error

Description Setter 角色描述

func (*TaobaoSellercenterRoleAddRequest) SetName

Name Setter 角色名

func (*TaobaoSellercenterRoleAddRequest) SetNick

Nick Setter 表示卖家昵称

func (*TaobaoSellercenterRoleAddRequest) SetPermissionCodes

func (r *TaobaoSellercenterRoleAddRequest) SetPermissionCodes(permissionCodes []string) error

PermissionCodes Setter 需要授权的权限点permission_code列表,以","分割.其code值可以通过调用taobao.sellercenter.user.permissions.get返回,其中permission.is_authorize=1的权限点可以通过本接口授权给对应角色。

type TaobaoSellercenterRoleAddResponse

type TaobaoSellercenterRoleAddResponse struct {
	XMLName xml.Name `xml:"sellercenter_role_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 子账号角色
	Role *Role `json:"role,omitempty" xml:"role,omitempty"`
}

子账号角色的新增(指定卖家) 成功返回结果

type TaobaoSellercenterRolesGetAPIResponse

type TaobaoSellercenterRolesGetAPIResponse struct {
	model.CommonResponse
	TaobaoSellercenterRolesGetResponse
}

获取指定卖家的角色列表 API返回值 taobao.sellercenter.roles.get

获取指定卖家的角色列表,只能获取属于登陆者自己的信息。

type TaobaoSellercenterRolesGetRequest

type TaobaoSellercenterRolesGetRequest struct {
	model.Params
	// contains filtered or unexported fields
}

获取指定卖家的角色列表 API请求 taobao.sellercenter.roles.get

获取指定卖家的角色列表,只能获取属于登陆者自己的信息。

func NewTaobaoSellercenterRolesGetRequest

func NewTaobaoSellercenterRolesGetRequest() *TaobaoSellercenterRolesGetRequest

初始化TaobaoSellercenterRolesGetRequest对象

func (TaobaoSellercenterRolesGetRequest) GetApiMethodName

func (r TaobaoSellercenterRolesGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoSellercenterRolesGetRequest) GetApiParams

func (r TaobaoSellercenterRolesGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoSellercenterRolesGetRequest) GetNick

Nick Getter

func (*TaobaoSellercenterRolesGetRequest) SetNick

Nick Setter 卖家昵称(只允许查询自己的信息:当前登陆者)

type TaobaoSellercenterRolesGetResponse

type TaobaoSellercenterRolesGetResponse struct {
	XMLName xml.Name `xml:"sellercenter_roles_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 卖家子账号角色列表。<br/>返回对象为 role数据对象中的role_id,role_name,description,seller_id,create_time,modified_time。不包含permissions(权限点)
	Roles []Role `json:"roles,omitempty" xml:"roles>role,omitempty"`
}

获取指定卖家的角色列表 成功返回结果

type TaobaoSellercenterSubuserPermissionsRolesGetAPIResponse

type TaobaoSellercenterSubuserPermissionsRolesGetAPIResponse struct {
	model.CommonResponse
	TaobaoSellercenterSubuserPermissionsRolesGetResponse
}

查询指定的子账号的权限和角色信息 API返回值 taobao.sellercenter.subuser.permissions.roles.get

查询指定的子账号的被直接赋予的权限信息和角色信息。<br/>返回对象中包括直接赋予子账号的权限点信息、被赋予的角色以及角色的对应权限点信息。

type TaobaoSellercenterSubuserPermissionsRolesGetRequest

type TaobaoSellercenterSubuserPermissionsRolesGetRequest struct {
	model.Params
	// contains filtered or unexported fields
}

查询指定的子账号的权限和角色信息 API请求 taobao.sellercenter.subuser.permissions.roles.get

查询指定的子账号的被直接赋予的权限信息和角色信息。<br/>返回对象中包括直接赋予子账号的权限点信息、被赋予的角色以及角色的对应权限点信息。

func NewTaobaoSellercenterSubuserPermissionsRolesGetRequest

func NewTaobaoSellercenterSubuserPermissionsRolesGetRequest() *TaobaoSellercenterSubuserPermissionsRolesGetRequest

初始化TaobaoSellercenterSubuserPermissionsRolesGetRequest对象

func (TaobaoSellercenterSubuserPermissionsRolesGetRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (TaobaoSellercenterSubuserPermissionsRolesGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoSellercenterSubuserPermissionsRolesGetRequest) GetNick

Nick Getter

func (*TaobaoSellercenterSubuserPermissionsRolesGetRequest) SetNick

Nick Setter 子账号昵称(子账号标识)

type TaobaoSellercenterSubuserPermissionsRolesGetResponse

type TaobaoSellercenterSubuserPermissionsRolesGetResponse struct {
	XMLName xml.Name `xml:"sellercenter_subuser_permissions_roles_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 子账号被所拥有的权限
	SubuserPermission *SubUserPermission `json:"subuser_permission,omitempty" xml:"subuser_permission,omitempty"`
}

查询指定的子账号的权限和角色信息 成功返回结果

type TaobaoSellercenterSubusersGetAPIResponse

type TaobaoSellercenterSubusersGetAPIResponse struct {
	model.CommonResponse
	TaobaoSellercenterSubusersGetResponse
}

查询指定账户的子账号列表 API返回值 taobao.sellercenter.subusers.get

根据主账号nick查询该账号下所有的子账号列表,只能查询属于自己的账号信息 (主账号以及所属子账号)

type TaobaoSellercenterSubusersGetRequest

type TaobaoSellercenterSubusersGetRequest struct {
	model.Params
	// contains filtered or unexported fields
}

查询指定账户的子账号列表 API请求 taobao.sellercenter.subusers.get

根据主账号nick查询该账号下所有的子账号列表,只能查询属于自己的账号信息 (主账号以及所属子账号)

func NewTaobaoSellercenterSubusersGetRequest

func NewTaobaoSellercenterSubusersGetRequest() *TaobaoSellercenterSubusersGetRequest

初始化TaobaoSellercenterSubusersGetRequest对象

func (TaobaoSellercenterSubusersGetRequest) GetApiMethodName

func (r TaobaoSellercenterSubusersGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoSellercenterSubusersGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoSellercenterSubusersGetRequest) GetNick

Nick Getter

func (*TaobaoSellercenterSubusersGetRequest) SetNick

Nick Setter 表示卖家昵称

type TaobaoSellercenterSubusersGetResponse

type TaobaoSellercenterSubusersGetResponse struct {
	XMLName xml.Name `xml:"sellercenter_subusers_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 子账号基本信息列表。具体信息为id、子账号用户名、主账号id、主账号昵称、当前状态值、是否分流
	Subusers []SubUserInfo `json:"subusers,omitempty" xml:"subusers>sub_user_info,omitempty"`
}

查询指定账户的子账号列表 成功返回结果

type TaobaoSellercenterUserPermissionsGetAPIResponse

type TaobaoSellercenterUserPermissionsGetAPIResponse struct {
	model.CommonResponse
	TaobaoSellercenterUserPermissionsGetResponse
}

获取指定用户的权限集合 API返回值 taobao.sellercenter.user.permissions.get

获取指定用户的权限集合,并不组装成树。如果是主账号,返回所有的权限列表;如果是子账号,返回所有已授权的权限。只能查询属于自己的账号信息 (如果是主账号,则是主账号以及所属子账号,如果是子账号则是对应主账号以及所属子账号)

type TaobaoSellercenterUserPermissionsGetRequest

type TaobaoSellercenterUserPermissionsGetRequest struct {
	model.Params
	// contains filtered or unexported fields
}

获取指定用户的权限集合 API请求 taobao.sellercenter.user.permissions.get

获取指定用户的权限集合,并不组装成树。如果是主账号,返回所有的权限列表;如果是子账号,返回所有已授权的权限。只能查询属于自己的账号信息 (如果是主账号,则是主账号以及所属子账号,如果是子账号则是对应主账号以及所属子账号)

func NewTaobaoSellercenterUserPermissionsGetRequest

func NewTaobaoSellercenterUserPermissionsGetRequest() *TaobaoSellercenterUserPermissionsGetRequest

初始化TaobaoSellercenterUserPermissionsGetRequest对象

func (TaobaoSellercenterUserPermissionsGetRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (TaobaoSellercenterUserPermissionsGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoSellercenterUserPermissionsGetRequest) GetNick

Nick Getter

func (*TaobaoSellercenterUserPermissionsGetRequest) SetNick

Nick Setter 用户标识,次入参必须为子账号比如zhangsan:cool。如果只输入主账号zhangsan,将报错。

type TaobaoSellercenterUserPermissionsGetResponse

type TaobaoSellercenterUserPermissionsGetResponse struct {
	XMLName xml.Name `xml:"sellercenter_user_permissions_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 权限列表
	Permissions []Permission `json:"permissions,omitempty" xml:"permissions>permission,omitempty"`
}

获取指定用户的权限集合 成功返回结果

type TaobaoSubuserDepartmentsGetAPIResponse

type TaobaoSubuserDepartmentsGetAPIResponse struct {
	model.CommonResponse
	TaobaoSubuserDepartmentsGetResponse
}

获取指定账户的所有部门列表 API返回值 taobao.subuser.departments.get

获取指定账户的所有部门列表,其实包括有每个部门的ID、父部门ID、部门名称(通过主账号登陆只能查询属于该主账号下的所有部门信息)。

type TaobaoSubuserDepartmentsGetRequest

type TaobaoSubuserDepartmentsGetRequest struct {
	model.Params
	// contains filtered or unexported fields
}

获取指定账户的所有部门列表 API请求 taobao.subuser.departments.get

获取指定账户的所有部门列表,其实包括有每个部门的ID、父部门ID、部门名称(通过主账号登陆只能查询属于该主账号下的所有部门信息)。

func NewTaobaoSubuserDepartmentsGetRequest

func NewTaobaoSubuserDepartmentsGetRequest() *TaobaoSubuserDepartmentsGetRequest

初始化TaobaoSubuserDepartmentsGetRequest对象

func (TaobaoSubuserDepartmentsGetRequest) GetApiMethodName

func (r TaobaoSubuserDepartmentsGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoSubuserDepartmentsGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoSubuserDepartmentsGetRequest) GetUserNick

UserNick Getter

func (*TaobaoSubuserDepartmentsGetRequest) SetUserNick

func (r *TaobaoSubuserDepartmentsGetRequest) SetUserNick(userNick string) error

UserNick Setter 主账号用户名

type TaobaoSubuserDepartmentsGetResponse

type TaobaoSubuserDepartmentsGetResponse struct {
	XMLName xml.Name `xml:"subuser_departments_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 部门信息
	Departments []Department `json:"departments,omitempty" xml:"departments>department,omitempty"`
}

获取指定账户的所有部门列表 成功返回结果

type TaobaoSubuserDutysGetAPIResponse

type TaobaoSubuserDutysGetAPIResponse struct {
	model.CommonResponse
	TaobaoSubuserDutysGetResponse
}

获取指定账户的所有职务信息列表 API返回值 taobao.subuser.dutys.get

通过主账号Nick获取该账户下的所有职务信息,职务信息中包括职务ID、职务名称以及职务等级(通过主账号登陆只能获取属于该主账号下的职务信息)

type TaobaoSubuserDutysGetRequest

type TaobaoSubuserDutysGetRequest struct {
	model.Params
	// contains filtered or unexported fields
}

获取指定账户的所有职务信息列表 API请求 taobao.subuser.dutys.get

通过主账号Nick获取该账户下的所有职务信息,职务信息中包括职务ID、职务名称以及职务等级(通过主账号登陆只能获取属于该主账号下的职务信息)

func NewTaobaoSubuserDutysGetRequest

func NewTaobaoSubuserDutysGetRequest() *TaobaoSubuserDutysGetRequest

初始化TaobaoSubuserDutysGetRequest对象

func (TaobaoSubuserDutysGetRequest) GetApiMethodName

func (r TaobaoSubuserDutysGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoSubuserDutysGetRequest) GetApiParams

func (r TaobaoSubuserDutysGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoSubuserDutysGetRequest) GetUserNick

func (r TaobaoSubuserDutysGetRequest) GetUserNick() string

UserNick Getter

func (*TaobaoSubuserDutysGetRequest) SetUserNick

func (r *TaobaoSubuserDutysGetRequest) SetUserNick(userNick string) error

UserNick Setter 主账号用户名

type TaobaoSubuserDutysGetResponse

type TaobaoSubuserDutysGetResponse struct {
	XMLName xml.Name `xml:"subuser_dutys_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 职务信息
	Dutys []Duty `json:"dutys,omitempty" xml:"dutys>duty,omitempty"`
}

获取指定账户的所有职务信息列表 成功返回结果

type TaobaoSubuserFullinfoGetAPIResponse

type TaobaoSubuserFullinfoGetAPIResponse struct {
	model.CommonResponse
	TaobaoSubuserFullinfoGetResponse
}

获取指定账户子账号的详细信息 API返回值 taobao.subuser.fullinfo.get

获取指定账户子账号的详细信息,其中包括子账号的账号信息以及员工、部门、职务信息(只能通过主账号登陆并查询属于该主账号下的某个子账号详细信息)

type TaobaoSubuserFullinfoGetRequest

type TaobaoSubuserFullinfoGetRequest struct {
	model.Params
	// contains filtered or unexported fields
}

获取指定账户子账号的详细信息 API请求 taobao.subuser.fullinfo.get

获取指定账户子账号的详细信息,其中包括子账号的账号信息以及员工、部门、职务信息(只能通过主账号登陆并查询属于该主账号下的某个子账号详细信息)

func NewTaobaoSubuserFullinfoGetRequest

func NewTaobaoSubuserFullinfoGetRequest() *TaobaoSubuserFullinfoGetRequest

初始化TaobaoSubuserFullinfoGetRequest对象

func (TaobaoSubuserFullinfoGetRequest) GetApiMethodName

func (r TaobaoSubuserFullinfoGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoSubuserFullinfoGetRequest) GetApiParams

func (r TaobaoSubuserFullinfoGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoSubuserFullinfoGetRequest) GetFields

Fields Getter

func (TaobaoSubuserFullinfoGetRequest) GetSubId

SubId Getter

func (TaobaoSubuserFullinfoGetRequest) GetSubNick

func (r TaobaoSubuserFullinfoGetRequest) GetSubNick() string

SubNick Getter

func (*TaobaoSubuserFullinfoGetRequest) SetFields

func (r *TaobaoSubuserFullinfoGetRequest) SetFields(fields string) error

Fields Setter 传入所需要的参数信息(若不需要获取子账号或主账号的企业邮箱地址,则无需传入该参数;若需要获取子账号或主账号的企业邮箱地址,则需要传入fields;可选参数值为subuser_email和user_email,传入其他参数值均无效;两个参数都需要则以逗号隔开传入即可,例如:subuser_email,user_email)

func (*TaobaoSubuserFullinfoGetRequest) SetSubId

func (r *TaobaoSubuserFullinfoGetRequest) SetSubId(subId int64) error

SubId Setter 子账号ID(传参中sub_id和sub_nick至少需要其中一个,若sub_id与sub_nick同时传入并且合法,那么sub_nick优先,以sub_nick查询子账号)

func (*TaobaoSubuserFullinfoGetRequest) SetSubNick

func (r *TaobaoSubuserFullinfoGetRequest) SetSubNick(subNick string) error

SubNick Setter 子账号用户名(传参中sub_id和sub_nick至少需要其中一个,若sub_id与sub_nick同时传入并且合法,那么sub_nick优先,以sub_nick查询子账号)

type TaobaoSubuserFullinfoGetResponse

type TaobaoSubuserFullinfoGetResponse struct {
	XMLName xml.Name `xml:"subuser_fullinfo_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 子账号详细信息,其中包括账号基本信息、员工信息和部门职务信息
	SubFullinfo *SubUserFullInfo `json:"sub_fullinfo,omitempty" xml:"sub_fullinfo,omitempty"`
}

获取指定账户子账号的详细信息 成功返回结果

type TaobaoSubuserInfoUpdateAPIResponse

type TaobaoSubuserInfoUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoSubuserInfoUpdateResponse
}

修改指定账户子账号的基本信息 API返回值 taobao.subuser.info.update

修改指定账户子账号的基本信息(通过主账号登陆只能修改属于该主账号的子账号基本信息)

type TaobaoSubuserInfoUpdateRequest

type TaobaoSubuserInfoUpdateRequest struct {
	model.Params
	// contains filtered or unexported fields
}

修改指定账户子账号的基本信息 API请求 taobao.subuser.info.update

修改指定账户子账号的基本信息(通过主账号登陆只能修改属于该主账号的子账号基本信息)

func NewTaobaoSubuserInfoUpdateRequest

func NewTaobaoSubuserInfoUpdateRequest() *TaobaoSubuserInfoUpdateRequest

初始化TaobaoSubuserInfoUpdateRequest对象

func (TaobaoSubuserInfoUpdateRequest) GetApiMethodName

func (r TaobaoSubuserInfoUpdateRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoSubuserInfoUpdateRequest) GetApiParams

func (r TaobaoSubuserInfoUpdateRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoSubuserInfoUpdateRequest) GetIsDisableSubaccount

func (r TaobaoSubuserInfoUpdateRequest) GetIsDisableSubaccount() bool

IsDisableSubaccount Getter

func (TaobaoSubuserInfoUpdateRequest) GetIsDispatch

func (r TaobaoSubuserInfoUpdateRequest) GetIsDispatch() bool

IsDispatch Getter

func (TaobaoSubuserInfoUpdateRequest) GetSubId

SubId Getter

func (*TaobaoSubuserInfoUpdateRequest) SetIsDisableSubaccount

func (r *TaobaoSubuserInfoUpdateRequest) SetIsDisableSubaccount(isDisableSubaccount bool) error

IsDisableSubaccount Setter 是否停用子账号 true:表示停用该子账号false:表示开启该子账号

func (*TaobaoSubuserInfoUpdateRequest) SetIsDispatch

func (r *TaobaoSubuserInfoUpdateRequest) SetIsDispatch(isDispatch bool) error

IsDispatch Setter 子账号是否参与分流 true:参与分流 false:不参与分流

func (*TaobaoSubuserInfoUpdateRequest) SetSubId

func (r *TaobaoSubuserInfoUpdateRequest) SetSubId(subId int64) error

SubId Setter 子账号ID

type TaobaoSubuserInfoUpdateResponse

type TaobaoSubuserInfoUpdateResponse struct {
	XMLName xml.Name `xml:"subuser_info_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作是否成功 true:操作成功; false:操作失败
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

修改指定账户子账号的基本信息 成功返回结果

type TaobaoSubusersGetAPIResponse

type TaobaoSubusersGetAPIResponse struct {
	model.CommonResponse
	TaobaoSubusersGetResponse
}

获取指定账户的子账号简易信息列表 API返回值 taobao.subusers.get

获取主账号下的子账号简易账号信息集合。(只能通过主账号登陆并且查询该属于主账号的子账号信息)

type TaobaoSubusersGetRequest

type TaobaoSubusersGetRequest struct {
	model.Params
	// contains filtered or unexported fields
}

获取指定账户的子账号简易信息列表 API请求 taobao.subusers.get

获取主账号下的子账号简易账号信息集合。(只能通过主账号登陆并且查询该属于主账号的子账号信息)

func NewTaobaoSubusersGetRequest

func NewTaobaoSubusersGetRequest() *TaobaoSubusersGetRequest

初始化TaobaoSubusersGetRequest对象

func (TaobaoSubusersGetRequest) GetApiMethodName

func (r TaobaoSubusersGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoSubusersGetRequest) GetApiParams

func (r TaobaoSubusersGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoSubusersGetRequest) GetUserNick

func (r TaobaoSubusersGetRequest) GetUserNick() string

UserNick Getter

func (*TaobaoSubusersGetRequest) SetUserNick

func (r *TaobaoSubusersGetRequest) SetUserNick(userNick string) error

UserNick Setter 主账号用户名

type TaobaoSubusersGetResponse

type TaobaoSubusersGetResponse struct {
	XMLName xml.Name `xml:"subusers_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 子账号基本信息
	Subaccounts []SubAccountInfo `json:"subaccounts,omitempty" xml:"subaccounts>sub_account_info,omitempty"`
}

获取指定账户的子账号简易信息列表 成功返回结果

Jump to

Keyboard shortcuts

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