subuser

package
v1.2.2 Latest Latest
Warning

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

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

Documentation

Overview

Package subuser 包含子账号管理API相关结构体

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列表
	SubUserIds []int64 `json:"sub_user_ids,omitempty" xml:"sub_user_ids>int64,omitempty"`
	// 部门名称
	DepartmentName string `json:"department_name,omitempty" xml:"department_name,omitempty"`
	// 部门ID
	DepartmentId int64 `json:"department_id,omitempty" xml:"department_id,omitempty"`
	// 当前部门的父部门ID
	ParentId int64 `json:"parent_id,omitempty" xml:"parent_id,omitempty"`
}

Department 结构体

type Duty

type Duty struct {
	// 职务名称
	DutyName string `json:"duty_name,omitempty" xml:"duty_name,omitempty"`
	// 职务ID
	DutyId int64 `json:"duty_id,omitempty" xml:"duty_id,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 {
	// 所拥有权限
	Permissions []Permission `json:"permissions,omitempty" xml:"permissions>permission,omitempty"`
	// 角色名
	RoleName string `json:"role_name,omitempty" xml:"role_name,omitempty"`
	// 角色描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 创建时间
	CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"`
	// 修改时间
	ModifiedTime string `json:"modified_time,omitempty" xml:"modified_time,omitempty"`
	// 角色id
	RoleId int64 `json:"role_id,omitempty" xml:"role_id,omitempty"`
	// 卖家Id
	SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
}

Role 结构体

type SubAccountInfo

type SubAccountInfo struct {
	// zhangsan:no1
	SubNick string `json:"sub_nick,omitempty" xml:"sub_nick,omitempty"`
	// zhangsan
	UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"`
	// 小红
	SubName string `json:"sub_name,omitempty" xml:"sub_name,omitempty"`
	// 123456
	SubId int64 `json:"sub_id,omitempty" xml:"sub_id,omitempty"`
	// 654321
	UserId int64 `json:"user_id,omitempty" xml:"user_id,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"`
}

SubAccountInfo 结构体

type SubUserFullInfo

type SubUserFullInfo struct {
	// 子账号用户名
	SubNick string `json:"sub_nick,omitempty" xml:"sub_nick,omitempty"`
	// 主账号用户名
	UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"`
	// 子账号企业邮箱
	SubuserEmail string `json:"subuser_email,omitempty" xml:"subuser_email,omitempty"`
	// 部门名称
	DepartmentName string `json:"department_name,omitempty" xml:"department_name,omitempty"`
	// 职务名称
	DutyName string `json:"duty_name,omitempty" xml:"duty_name,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"`
	// 主账号企业邮箱
	UserEmail string `json:"user_email,omitempty" xml:"user_email,omitempty"`
	// 子账号Id
	SubId int64 `json:"sub_id,omitempty" xml:"sub_id,omitempty"`
	// 主账号Id
	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 子账号当前状态:1正常,2卖家停用,3处罚冻结
	SubStatus int64 `json:"sub_status,omitempty" xml:"sub_status,omitempty"`
	// 部门Id
	DepartmentId int64 `json:"department_id,omitempty" xml:"department_id,omitempty"`
	// 父部门Id
	ParentDepartment int64 `json:"parent_department,omitempty" xml:"parent_department,omitempty"`
	// 职务Id
	DutyId int64 `json:"duty_id,omitempty" xml:"duty_id,omitempty"`
	// 职务等级
	DutyLevel int64 `json:"duty_level,omitempty" xml:"duty_level,omitempty"`
	// 员工性别  1:男;  2:女
	Sex int64 `json:"sex,omitempty" xml:"sex,omitempty"`
	// 直接上级的员工ID
	LeaderId int64 `json:"leader_id,omitempty" xml:"leader_id,omitempty"`
	// 员工ID
	EmployeeId int64 `json:"employee_id,omitempty" xml:"employee_id,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"`
}

SubUserFullInfo 结构体

type SubUserInfo

type SubUserInfo struct {
	// 子账号用户名
	Nick string `json:"nick,omitempty" xml:"nick,omitempty"`
	// 主账号昵称
	SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"`
	// 子账号所属的主账号的唯一标识
	SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,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 TaobaoSellercenterRoleAddAPIRequest added in v1.2.0

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

TaobaoSellercenterRoleAddAPIRequest 子账号角色的新增(指定卖家) 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() *TaobaoSellercenterRoleAddAPIRequest

NewTaobaoSellercenterRoleAddRequest 初始化TaobaoSellercenterRoleAddAPIRequest对象

func (TaobaoSellercenterRoleAddAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoSellercenterRoleAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSellercenterRoleAddAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSellercenterRoleAddAPIRequest) GetDescription added in v1.2.0

func (r TaobaoSellercenterRoleAddAPIRequest) GetDescription() string

GetDescription Description Getter

func (TaobaoSellercenterRoleAddAPIRequest) GetName added in v1.2.0

GetName Name Getter

func (TaobaoSellercenterRoleAddAPIRequest) GetNick added in v1.2.0

GetNick Nick Getter

func (TaobaoSellercenterRoleAddAPIRequest) GetPermissionCodes added in v1.2.0

func (r TaobaoSellercenterRoleAddAPIRequest) GetPermissionCodes() []string

GetPermissionCodes PermissionCodes Getter

func (*TaobaoSellercenterRoleAddAPIRequest) SetDescription added in v1.2.0

func (r *TaobaoSellercenterRoleAddAPIRequest) SetDescription(_description string) error

SetDescription is Description Setter 角色描述

func (*TaobaoSellercenterRoleAddAPIRequest) SetName added in v1.2.0

SetName is Name Setter 角色名

func (*TaobaoSellercenterRoleAddAPIRequest) SetNick added in v1.2.0

SetNick is Nick Setter 表示卖家昵称

func (*TaobaoSellercenterRoleAddAPIRequest) SetPermissionCodes added in v1.2.0

func (r *TaobaoSellercenterRoleAddAPIRequest) SetPermissionCodes(_permissionCodes []string) error

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

type TaobaoSellercenterRoleAddAPIResponse

type TaobaoSellercenterRoleAddAPIResponse struct {
	model.CommonResponse
	TaobaoSellercenterRoleAddAPIResponseModel
}

TaobaoSellercenterRoleAddAPIResponse 子账号角色的新增(指定卖家) 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 TaobaoSellercenterRoleAddAPIResponseModel added in v1.2.0

type TaobaoSellercenterRoleAddAPIResponseModel 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"`
}

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

type TaobaoSellercenterRolesGetAPIRequest added in v1.2.0

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

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

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

func NewTaobaoSellercenterRolesGetRequest

func NewTaobaoSellercenterRolesGetRequest() *TaobaoSellercenterRolesGetAPIRequest

NewTaobaoSellercenterRolesGetRequest 初始化TaobaoSellercenterRolesGetAPIRequest对象

func (TaobaoSellercenterRolesGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoSellercenterRolesGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSellercenterRolesGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSellercenterRolesGetAPIRequest) GetNick added in v1.2.0

GetNick Nick Getter

func (*TaobaoSellercenterRolesGetAPIRequest) SetNick added in v1.2.0

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

type TaobaoSellercenterRolesGetAPIResponse

type TaobaoSellercenterRolesGetAPIResponse struct {
	model.CommonResponse
	TaobaoSellercenterRolesGetAPIResponseModel
}

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

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

type TaobaoSellercenterRolesGetAPIResponseModel added in v1.2.0

type TaobaoSellercenterRolesGetAPIResponseModel 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"`
}

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

type TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest added in v1.2.0

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

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

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

func NewTaobaoSellercenterSubuserPermissionsRolesGetRequest

func NewTaobaoSellercenterSubuserPermissionsRolesGetRequest() *TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest

NewTaobaoSellercenterSubuserPermissionsRolesGetRequest 初始化TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest对象

func (TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest) GetNick added in v1.2.0

GetNick Nick Getter

func (*TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest) SetNick added in v1.2.0

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

type TaobaoSellercenterSubuserPermissionsRolesGetAPIResponse

type TaobaoSellercenterSubuserPermissionsRolesGetAPIResponse struct {
	model.CommonResponse
	TaobaoSellercenterSubuserPermissionsRolesGetAPIResponseModel
}

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

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

type TaobaoSellercenterSubuserPermissionsRolesGetAPIResponseModel added in v1.2.0

type TaobaoSellercenterSubuserPermissionsRolesGetAPIResponseModel 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"`
}

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

type TaobaoSellercenterSubusersGetAPIRequest added in v1.2.0

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

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

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

func NewTaobaoSellercenterSubusersGetRequest

func NewTaobaoSellercenterSubusersGetRequest() *TaobaoSellercenterSubusersGetAPIRequest

NewTaobaoSellercenterSubusersGetRequest 初始化TaobaoSellercenterSubusersGetAPIRequest对象

func (TaobaoSellercenterSubusersGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoSellercenterSubusersGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSellercenterSubusersGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSellercenterSubusersGetAPIRequest) GetNick added in v1.2.0

GetNick Nick Getter

func (*TaobaoSellercenterSubusersGetAPIRequest) SetNick added in v1.2.0

SetNick is Nick Setter 表示卖家昵称

type TaobaoSellercenterSubusersGetAPIResponse

type TaobaoSellercenterSubusersGetAPIResponse struct {
	model.CommonResponse
	TaobaoSellercenterSubusersGetAPIResponseModel
}

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

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

type TaobaoSellercenterSubusersGetAPIResponseModel added in v1.2.0

type TaobaoSellercenterSubusersGetAPIResponseModel 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"`
}

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

type TaobaoSellercenterUserPermissionsGetAPIRequest added in v1.2.0

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

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

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

func NewTaobaoSellercenterUserPermissionsGetRequest

func NewTaobaoSellercenterUserPermissionsGetRequest() *TaobaoSellercenterUserPermissionsGetAPIRequest

NewTaobaoSellercenterUserPermissionsGetRequest 初始化TaobaoSellercenterUserPermissionsGetAPIRequest对象

func (TaobaoSellercenterUserPermissionsGetAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSellercenterUserPermissionsGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSellercenterUserPermissionsGetAPIRequest) GetNick added in v1.2.0

GetNick Nick Getter

func (*TaobaoSellercenterUserPermissionsGetAPIRequest) SetNick added in v1.2.0

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

type TaobaoSellercenterUserPermissionsGetAPIResponse

type TaobaoSellercenterUserPermissionsGetAPIResponse struct {
	model.CommonResponse
	TaobaoSellercenterUserPermissionsGetAPIResponseModel
}

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

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

type TaobaoSellercenterUserPermissionsGetAPIResponseModel added in v1.2.0

type TaobaoSellercenterUserPermissionsGetAPIResponseModel 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"`
}

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

type TaobaoSubuserDepartmentsGetAPIRequest added in v1.2.0

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

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

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

func NewTaobaoSubuserDepartmentsGetRequest

func NewTaobaoSubuserDepartmentsGetRequest() *TaobaoSubuserDepartmentsGetAPIRequest

NewTaobaoSubuserDepartmentsGetRequest 初始化TaobaoSubuserDepartmentsGetAPIRequest对象

func (TaobaoSubuserDepartmentsGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoSubuserDepartmentsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSubuserDepartmentsGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSubuserDepartmentsGetAPIRequest) GetUserNick added in v1.2.0

GetUserNick UserNick Getter

func (*TaobaoSubuserDepartmentsGetAPIRequest) SetUserNick added in v1.2.0

func (r *TaobaoSubuserDepartmentsGetAPIRequest) SetUserNick(_userNick string) error

SetUserNick is UserNick Setter 主账号用户名

type TaobaoSubuserDepartmentsGetAPIResponse

type TaobaoSubuserDepartmentsGetAPIResponse struct {
	model.CommonResponse
	TaobaoSubuserDepartmentsGetAPIResponseModel
}

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

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

type TaobaoSubuserDepartmentsGetAPIResponseModel added in v1.2.0

type TaobaoSubuserDepartmentsGetAPIResponseModel 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"`
}

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

type TaobaoSubuserDutysGetAPIRequest added in v1.2.0

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

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

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

func NewTaobaoSubuserDutysGetRequest

func NewTaobaoSubuserDutysGetRequest() *TaobaoSubuserDutysGetAPIRequest

NewTaobaoSubuserDutysGetRequest 初始化TaobaoSubuserDutysGetAPIRequest对象

func (TaobaoSubuserDutysGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoSubuserDutysGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSubuserDutysGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoSubuserDutysGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSubuserDutysGetAPIRequest) GetUserNick added in v1.2.0

func (r TaobaoSubuserDutysGetAPIRequest) GetUserNick() string

GetUserNick UserNick Getter

func (*TaobaoSubuserDutysGetAPIRequest) SetUserNick added in v1.2.0

func (r *TaobaoSubuserDutysGetAPIRequest) SetUserNick(_userNick string) error

SetUserNick is UserNick Setter 主账号用户名

type TaobaoSubuserDutysGetAPIResponse

type TaobaoSubuserDutysGetAPIResponse struct {
	model.CommonResponse
	TaobaoSubuserDutysGetAPIResponseModel
}

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

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

type TaobaoSubuserDutysGetAPIResponseModel added in v1.2.0

type TaobaoSubuserDutysGetAPIResponseModel 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"`
}

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

type TaobaoSubuserFullinfoGetAPIRequest added in v1.2.0

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

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

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

func NewTaobaoSubuserFullinfoGetRequest

func NewTaobaoSubuserFullinfoGetRequest() *TaobaoSubuserFullinfoGetAPIRequest

NewTaobaoSubuserFullinfoGetRequest 初始化TaobaoSubuserFullinfoGetAPIRequest对象

func (TaobaoSubuserFullinfoGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoSubuserFullinfoGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSubuserFullinfoGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSubuserFullinfoGetAPIRequest) GetFields added in v1.2.0

GetFields Fields Getter

func (TaobaoSubuserFullinfoGetAPIRequest) GetSubId added in v1.2.0

GetSubId SubId Getter

func (TaobaoSubuserFullinfoGetAPIRequest) GetSubNick added in v1.2.0

GetSubNick SubNick Getter

func (*TaobaoSubuserFullinfoGetAPIRequest) SetFields added in v1.2.0

func (r *TaobaoSubuserFullinfoGetAPIRequest) SetFields(_fields string) error

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

func (*TaobaoSubuserFullinfoGetAPIRequest) SetSubId added in v1.2.0

func (r *TaobaoSubuserFullinfoGetAPIRequest) SetSubId(_subId int64) error

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

func (*TaobaoSubuserFullinfoGetAPIRequest) SetSubNick added in v1.2.0

func (r *TaobaoSubuserFullinfoGetAPIRequest) SetSubNick(_subNick string) error

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

type TaobaoSubuserFullinfoGetAPIResponse

type TaobaoSubuserFullinfoGetAPIResponse struct {
	model.CommonResponse
	TaobaoSubuserFullinfoGetAPIResponseModel
}

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

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

type TaobaoSubuserFullinfoGetAPIResponseModel added in v1.2.0

type TaobaoSubuserFullinfoGetAPIResponseModel 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"`
}

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

type TaobaoSubuserInfoUpdateAPIRequest added in v1.2.0

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

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

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

func NewTaobaoSubuserInfoUpdateRequest

func NewTaobaoSubuserInfoUpdateRequest() *TaobaoSubuserInfoUpdateAPIRequest

NewTaobaoSubuserInfoUpdateRequest 初始化TaobaoSubuserInfoUpdateAPIRequest对象

func (TaobaoSubuserInfoUpdateAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoSubuserInfoUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSubuserInfoUpdateAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoSubuserInfoUpdateAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSubuserInfoUpdateAPIRequest) GetIsDisableSubaccount added in v1.2.0

func (r TaobaoSubuserInfoUpdateAPIRequest) GetIsDisableSubaccount() bool

GetIsDisableSubaccount IsDisableSubaccount Getter

func (TaobaoSubuserInfoUpdateAPIRequest) GetIsDispatch added in v1.2.0

func (r TaobaoSubuserInfoUpdateAPIRequest) GetIsDispatch() bool

GetIsDispatch IsDispatch Getter

func (TaobaoSubuserInfoUpdateAPIRequest) GetSubId added in v1.2.0

GetSubId SubId Getter

func (*TaobaoSubuserInfoUpdateAPIRequest) SetIsDisableSubaccount added in v1.2.0

func (r *TaobaoSubuserInfoUpdateAPIRequest) SetIsDisableSubaccount(_isDisableSubaccount bool) error

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

func (*TaobaoSubuserInfoUpdateAPIRequest) SetIsDispatch added in v1.2.0

func (r *TaobaoSubuserInfoUpdateAPIRequest) SetIsDispatch(_isDispatch bool) error

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

func (*TaobaoSubuserInfoUpdateAPIRequest) SetSubId added in v1.2.0

func (r *TaobaoSubuserInfoUpdateAPIRequest) SetSubId(_subId int64) error

SetSubId is SubId Setter 子账号ID

type TaobaoSubuserInfoUpdateAPIResponse

type TaobaoSubuserInfoUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoSubuserInfoUpdateAPIResponseModel
}

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

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

type TaobaoSubuserInfoUpdateAPIResponseModel added in v1.2.0

type TaobaoSubuserInfoUpdateAPIResponseModel 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"`
}

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

type TaobaoSubusersGetAPIRequest added in v1.2.0

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

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

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

func NewTaobaoSubusersGetRequest

func NewTaobaoSubusersGetRequest() *TaobaoSubusersGetAPIRequest

NewTaobaoSubusersGetRequest 初始化TaobaoSubusersGetAPIRequest对象

func (TaobaoSubusersGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoSubusersGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSubusersGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoSubusersGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSubusersGetAPIRequest) GetUserNick added in v1.2.0

func (r TaobaoSubusersGetAPIRequest) GetUserNick() string

GetUserNick UserNick Getter

func (*TaobaoSubusersGetAPIRequest) SetUserNick added in v1.2.0

func (r *TaobaoSubusersGetAPIRequest) SetUserNick(_userNick string) error

SetUserNick is UserNick Setter 主账号用户名

type TaobaoSubusersGetAPIResponse

type TaobaoSubusersGetAPIResponse struct {
	model.CommonResponse
	TaobaoSubusersGetAPIResponseModel
}

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

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

type TaobaoSubusersGetAPIResponseModel added in v1.2.0

type TaobaoSubusersGetAPIResponseModel 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"`
}

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

Jump to

Keyboard shortcuts

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