Documentation ¶
Overview ¶
Package subuser 包含子账号管理API相关结构体
Index ¶
- type Department
- type Duty
- type Permission
- type Role
- type SubAccountInfo
- type SubUserDo
- type SubUserFullInfo
- type SubUserInfo
- type SubUserPermission
- type TaobaosellercenterroleaddAPIRequest
- func (r TaobaosellercenterroleaddAPIRequest) GetApiMethodName() string
- func (r TaobaosellercenterroleaddAPIRequest) GetApiParams(params url.Values)
- func (r TaobaosellercenterroleaddAPIRequest) GetDescription() string
- func (r TaobaosellercenterroleaddAPIRequest) GetName() string
- func (r TaobaosellercenterroleaddAPIRequest) GetNick() string
- func (r TaobaosellercenterroleaddAPIRequest) GetPermissionCodes() []string
- func (r TaobaosellercenterroleaddAPIRequest) GetRawParams() model.Params
- func (r *TaobaosellercenterroleaddAPIRequest) SetDescription(_description string) error
- func (r *TaobaosellercenterroleaddAPIRequest) SetName(_name string) error
- func (r *TaobaosellercenterroleaddAPIRequest) SetNick(_nick string) error
- func (r *TaobaosellercenterroleaddAPIRequest) SetPermissionCodes(_permissionCodes []string) error
- type TaobaosellercenterroleaddAPIResponse
- type TaobaosellercenterroleaddAPIResponseModel
- type TaobaosellercenterrolesgetAPIRequest
- func (r TaobaosellercenterrolesgetAPIRequest) GetApiMethodName() string
- func (r TaobaosellercenterrolesgetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaosellercenterrolesgetAPIRequest) GetNick() string
- func (r TaobaosellercenterrolesgetAPIRequest) GetRawParams() model.Params
- func (r *TaobaosellercenterrolesgetAPIRequest) SetNick(_nick string) error
- type TaobaosellercenterrolesgetAPIResponse
- type TaobaosellercenterrolesgetAPIResponseModel
- type TaobaosellercentersubuserpermissionsrolesgetAPIRequest
- func (r TaobaosellercentersubuserpermissionsrolesgetAPIRequest) GetApiMethodName() string
- func (r TaobaosellercentersubuserpermissionsrolesgetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaosellercentersubuserpermissionsrolesgetAPIRequest) GetNick() string
- func (r TaobaosellercentersubuserpermissionsrolesgetAPIRequest) GetRawParams() model.Params
- func (r *TaobaosellercentersubuserpermissionsrolesgetAPIRequest) SetNick(_nick string) error
- type TaobaosellercentersubuserpermissionsrolesgetAPIResponse
- type TaobaosellercentersubuserpermissionsrolesgetAPIResponseModel
- type TaobaosellercentersubusersgetAPIRequest
- func (r TaobaosellercentersubusersgetAPIRequest) GetApiMethodName() string
- func (r TaobaosellercentersubusersgetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaosellercentersubusersgetAPIRequest) GetNick() string
- func (r TaobaosellercentersubusersgetAPIRequest) GetRawParams() model.Params
- func (r *TaobaosellercentersubusersgetAPIRequest) SetNick(_nick string) error
- type TaobaosellercentersubusersgetAPIResponse
- type TaobaosellercentersubusersgetAPIResponseModel
- type TaobaosellercentersubuserspageAPIRequest
- func (r TaobaosellercentersubuserspageAPIRequest) GetAccountStatus() int64
- func (r TaobaosellercentersubuserspageAPIRequest) GetApiMethodName() string
- func (r TaobaosellercentersubuserspageAPIRequest) GetApiParams(params url.Values)
- func (r TaobaosellercentersubuserspageAPIRequest) GetNick() string
- func (r TaobaosellercentersubuserspageAPIRequest) GetPageNum() int64
- func (r TaobaosellercentersubuserspageAPIRequest) GetPageSize() int64
- func (r TaobaosellercentersubuserspageAPIRequest) GetRawParams() model.Params
- func (r *TaobaosellercentersubuserspageAPIRequest) SetAccountStatus(_accountStatus int64) error
- func (r *TaobaosellercentersubuserspageAPIRequest) SetNick(_nick string) error
- func (r *TaobaosellercentersubuserspageAPIRequest) SetPageNum(_pageNum int64) error
- func (r *TaobaosellercentersubuserspageAPIRequest) SetPageSize(_pageSize int64) error
- type TaobaosellercentersubuserspageAPIResponse
- type TaobaosellercentersubuserspageAPIResponseModel
- type TaobaosellercenteruserpermissionsgetAPIRequest
- func (r TaobaosellercenteruserpermissionsgetAPIRequest) GetApiMethodName() string
- func (r TaobaosellercenteruserpermissionsgetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaosellercenteruserpermissionsgetAPIRequest) GetNick() string
- func (r TaobaosellercenteruserpermissionsgetAPIRequest) GetRawParams() model.Params
- func (r *TaobaosellercenteruserpermissionsgetAPIRequest) SetNick(_nick string) error
- type TaobaosellercenteruserpermissionsgetAPIResponse
- type TaobaosellercenteruserpermissionsgetAPIResponseModel
- type TaobaosubuserdepartmentsgetAPIRequest
- func (r TaobaosubuserdepartmentsgetAPIRequest) GetApiMethodName() string
- func (r TaobaosubuserdepartmentsgetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaosubuserdepartmentsgetAPIRequest) GetRawParams() model.Params
- func (r TaobaosubuserdepartmentsgetAPIRequest) GetUserNick() string
- func (r *TaobaosubuserdepartmentsgetAPIRequest) SetUserNick(_userNick string) error
- type TaobaosubuserdepartmentsgetAPIResponse
- type TaobaosubuserdepartmentsgetAPIResponseModel
- type TaobaosubuserdutysgetAPIRequest
- func (r TaobaosubuserdutysgetAPIRequest) GetApiMethodName() string
- func (r TaobaosubuserdutysgetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaosubuserdutysgetAPIRequest) GetRawParams() model.Params
- func (r TaobaosubuserdutysgetAPIRequest) GetUserNick() string
- func (r *TaobaosubuserdutysgetAPIRequest) SetUserNick(_userNick string) error
- type TaobaosubuserdutysgetAPIResponse
- type TaobaosubuserdutysgetAPIResponseModel
- type TaobaosubuserfullinfogetAPIRequest
- func (r TaobaosubuserfullinfogetAPIRequest) GetApiMethodName() string
- func (r TaobaosubuserfullinfogetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaosubuserfullinfogetAPIRequest) GetFields() string
- func (r TaobaosubuserfullinfogetAPIRequest) GetRawParams() model.Params
- func (r TaobaosubuserfullinfogetAPIRequest) GetSubId() int64
- func (r TaobaosubuserfullinfogetAPIRequest) GetSubNick() string
- func (r *TaobaosubuserfullinfogetAPIRequest) SetFields(_fields string) error
- func (r *TaobaosubuserfullinfogetAPIRequest) SetSubId(_subId int64) error
- func (r *TaobaosubuserfullinfogetAPIRequest) SetSubNick(_subNick string) error
- type TaobaosubuserfullinfogetAPIResponse
- type TaobaosubuserfullinfogetAPIResponseModel
- type TaobaosubuserinfoupdateAPIRequest
- func (r TaobaosubuserinfoupdateAPIRequest) GetApiMethodName() string
- func (r TaobaosubuserinfoupdateAPIRequest) GetApiParams(params url.Values)
- func (r TaobaosubuserinfoupdateAPIRequest) GetIsDisableSubaccount() bool
- func (r TaobaosubuserinfoupdateAPIRequest) GetIsDispatch() bool
- func (r TaobaosubuserinfoupdateAPIRequest) GetRawParams() model.Params
- func (r TaobaosubuserinfoupdateAPIRequest) GetSubId() int64
- func (r *TaobaosubuserinfoupdateAPIRequest) SetIsDisableSubaccount(_isDisableSubaccount bool) error
- func (r *TaobaosubuserinfoupdateAPIRequest) SetIsDispatch(_isDispatch bool) error
- func (r *TaobaosubuserinfoupdateAPIRequest) SetSubId(_subId int64) error
- type TaobaosubuserinfoupdateAPIResponse
- type TaobaosubuserinfoupdateAPIResponseModel
- type TaobaosubusersgetAPIRequest
- func (r TaobaosubusersgetAPIRequest) GetApiMethodName() string
- func (r TaobaosubusersgetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaosubusersgetAPIRequest) GetRawParams() model.Params
- func (r TaobaosubusersgetAPIRequest) GetUserNick() string
- func (r *TaobaosubusersgetAPIRequest) SetUserNick(_userNick string) error
- type TaobaosubusersgetAPIResponse
- type TaobaosubusersgetAPIResponseModel
- type TaobaosubusersinfoqueryAPIRequest
- func (r TaobaosubusersinfoqueryAPIRequest) GetApiMethodName() string
- func (r TaobaosubusersinfoqueryAPIRequest) GetApiParams(params url.Values)
- func (r TaobaosubusersinfoqueryAPIRequest) GetRawParams() model.Params
- func (r TaobaosubusersinfoqueryAPIRequest) GetSite() int64
- func (r *TaobaosubusersinfoqueryAPIRequest) SetSite(_site int64) error
- type TaobaosubusersinfoqueryAPIResponse
- type TaobaosubusersinfoqueryAPIResponseModel
- type TaobaosubuserspageAPIRequest
- func (r TaobaosubuserspageAPIRequest) GetAccountStatus() int64
- func (r TaobaosubuserspageAPIRequest) GetApiMethodName() string
- func (r TaobaosubuserspageAPIRequest) GetApiParams(params url.Values)
- func (r TaobaosubuserspageAPIRequest) GetPageNum() int64
- func (r TaobaosubuserspageAPIRequest) GetPageSize() int64
- func (r TaobaosubuserspageAPIRequest) GetRawParams() model.Params
- func (r TaobaosubuserspageAPIRequest) GetUserNick() string
- func (r *TaobaosubuserspageAPIRequest) SetAccountStatus(_accountStatus int64) error
- func (r *TaobaosubuserspageAPIRequest) SetPageNum(_pageNum int64) error
- func (r *TaobaosubuserspageAPIRequest) SetPageSize(_pageSize int64) error
- func (r *TaobaosubuserspageAPIRequest) SetUserNick(_userNick string) error
- type TaobaosubuserspageAPIResponse
- type TaobaosubuserspageAPIResponseModel
- type TaobaosubuserssubaccountsearchAPIRequest
- func (r TaobaosubuserssubaccountsearchAPIRequest) GetApiMethodName() string
- func (r TaobaosubuserssubaccountsearchAPIRequest) GetApiParams(params url.Values)
- func (r TaobaosubuserssubaccountsearchAPIRequest) GetFilterKey() string
- func (r TaobaosubuserssubaccountsearchAPIRequest) GetMainNick() string
- func (r TaobaosubuserssubaccountsearchAPIRequest) GetPageNum() int64
- func (r TaobaosubuserssubaccountsearchAPIRequest) GetPageSize() int64
- func (r TaobaosubuserssubaccountsearchAPIRequest) GetRawParams() model.Params
- func (r *TaobaosubuserssubaccountsearchAPIRequest) SetFilterKey(_filterKey string) error
- func (r *TaobaosubuserssubaccountsearchAPIRequest) SetMainNick(_mainNick string) error
- func (r *TaobaosubuserssubaccountsearchAPIRequest) SetPageNum(_pageNum int64) error
- func (r *TaobaosubuserssubaccountsearchAPIRequest) SetPageSize(_pageSize int64) error
- type TaobaosubuserssubaccountsearchAPIResponse
- type TaobaosubuserssubaccountsearchAPIResponseModel
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"` // 角色描述 Description string `json:"description,omitempty" xml:"description,omitempty"` // 修改时间 ModifiedTime string `json:"modified_time,omitempty" xml:"modified_time,omitempty"` // 创建时间 CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"` // 角色名 RoleName string `json:"role_name,omitempty" xml:"role_name,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"` // 主账号id SellerId string `json:"seller_id,omitempty" xml:"seller_id,omitempty"` // 123456 SubId int64 `json:"sub_id,omitempty" xml:"sub_id,omitempty"` // 1 SubStatus int64 `json:"sub_status,omitempty" xml:"sub_status,omitempty"` // 654321 UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"` // 子账号状态, 1正常 2冻结 3处罚 Status int64 `json:"status,omitempty" xml:"status,omitempty"` // true SubDispatchStatus bool `json:"sub_dispatch_status,omitempty" xml:"sub_dispatch_status,omitempty"` // true SubOwedStatus bool `json:"sub_owed_status,omitempty" xml:"sub_owed_status,omitempty"` }
SubAccountInfo 结构体
type SubUserDo ¶ added in v1.2.5
type SubUserDo struct { // 子账号用户名 Nick string `json:"nick,omitempty" xml:"nick,omitempty"` // 主账号昵称 SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"` // 子账号Id SubId int64 `json:"sub_id,omitempty" xml:"sub_id,omitempty"` // 子账号当前状态 1正常 -1删除 2冻结 Status int64 `json:"status,omitempty" xml:"status,omitempty"` // 子账号所属的主账号的唯一标识 SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"` }
SubUserDo 结构体
type SubUserFullInfo ¶
type SubUserFullInfo struct { // 工作地点 WorkLocation string `json:"work_location,omitempty" xml:"work_location,omitempty"` // 员工花名 EmployeeNickname string `json:"employee_nickname,omitempty" xml:"employee_nickname,omitempty"` // 主账号企业邮箱 UserEmail string `json:"user_email,omitempty" xml:"user_email,omitempty"` // 职务名称 DutyName string `json:"duty_name,omitempty" xml:"duty_name,omitempty"` // 员工姓名 EmployeeName string `json:"employee_name,omitempty" xml:"employee_name,omitempty"` // 入职员工工号 EmployeeNum string `json:"employee_num,omitempty" xml:"employee_num,omitempty"` // 员工入职时间 EntryDate string `json:"entry_date,omitempty" xml:"entry_date,omitempty"` // 部门名称 DepartmentName string `json:"department_name,omitempty" xml:"department_name,omitempty"` // 子账号用户名 SubNick string `json:"sub_nick,omitempty" xml:"sub_nick,omitempty"` // 主账号用户名 UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"` // 办公电话 OfficePhone string `json:"office_phone,omitempty" xml:"office_phone,omitempty"` // 子账号企业邮箱 SubuserEmail string `json:"subuser_email,omitempty" xml:"subuser_email,omitempty"` // 员工性别 1:男; 2:女 Sex int64 `json:"sex,omitempty" xml:"sex,omitempty"` // 子账号Id SubId int64 `json:"sub_id,omitempty" xml:"sub_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"` // 职务等级 DutyLevel int64 `json:"duty_level,omitempty" xml:"duty_level,omitempty"` // 直接上级的员工ID LeaderId int64 `json:"leader_id,omitempty" xml:"leader_id,omitempty"` // 父部门Id ParentDepartment int64 `json:"parent_department,omitempty" xml:"parent_department,omitempty"` // 职务Id DutyId int64 `json:"duty_id,omitempty" xml:"duty_id,omitempty"` // 主账号Id UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"` // 员工ID EmployeeId int64 `json:"employee_id,omitempty" xml:"employee_id,omitempty"` // 子账号是否参与分流 true:参与分流 false:未参与分流 SubDispatchStatus bool `json:"sub_dispatch_status,omitempty" xml:"sub_dispatch_status,omitempty"` // 子账号是否已欠费 true:已欠费 false:未欠费 SubOwedStatus bool `json:"sub_owed_status,omitempty" xml:"sub_owed_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"` // 子账号姓名 FullName string `json:"full_name,omitempty" xml:"full_name,omitempty"` // 是否参与分流 1不参与 2参与 IsOnline int64 `json:"is_online,omitempty" xml:"is_online,omitempty"` // 子账号Id SubId int64 `json:"sub_id,omitempty" xml:"sub_id,omitempty"` // 子账号当前状态 1正常 -1删除 2冻结 Status int64 `json:"status,omitempty" xml:"status,omitempty"` // 子账号所属的主账号的唯一标识 SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"` }
SubUserInfo 结构体
type SubUserPermission ¶
type SubUserPermission struct { // 子账号被赋予的角色信息(Role)列表。列表中的角色对象只有role_id,role_name,permissions信息 Roles []Role `json:"roles,omitempty" xml:"roles>role,omitempty"` // 子账号被直接赋予的权限点列表 Permissions []Permission `json:"permissions,omitempty" xml:"permissions>permission,omitempty"` }
SubUserPermission 结构体
type TaobaosellercenterroleaddAPIRequest ¶ added in v1.3.1
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 ¶ added in v1.3.1
func NewTaobaosellercenterroleaddRequest() *TaobaosellercenterroleaddAPIRequest
NewTaobaosellercenterroleaddRequest 初始化TaobaosellercenterroleaddAPIRequest对象
func (TaobaosellercenterroleaddAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaosellercenterroleaddAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaosellercenterroleaddAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaosellercenterroleaddAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaosellercenterroleaddAPIRequest) GetDescription ¶ added in v1.3.1
func (r TaobaosellercenterroleaddAPIRequest) GetDescription() string
GetDescription Description Getter
func (TaobaosellercenterroleaddAPIRequest) GetName ¶ added in v1.3.1
func (r TaobaosellercenterroleaddAPIRequest) GetName() string
GetName Name Getter
func (TaobaosellercenterroleaddAPIRequest) GetNick ¶ added in v1.3.1
func (r TaobaosellercenterroleaddAPIRequest) GetNick() string
GetNick Nick Getter
func (TaobaosellercenterroleaddAPIRequest) GetPermissionCodes ¶ added in v1.3.1
func (r TaobaosellercenterroleaddAPIRequest) GetPermissionCodes() []string
GetPermissionCodes PermissionCodes Getter
func (TaobaosellercenterroleaddAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaosellercenterroleaddAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaosellercenterroleaddAPIRequest) SetDescription ¶ added in v1.3.1
func (r *TaobaosellercenterroleaddAPIRequest) SetDescription(_description string) error
SetDescription is Description Setter 角色描述
func (*TaobaosellercenterroleaddAPIRequest) SetName ¶ added in v1.3.1
func (r *TaobaosellercenterroleaddAPIRequest) SetName(_name string) error
SetName is Name Setter 角色名
func (*TaobaosellercenterroleaddAPIRequest) SetNick ¶ added in v1.3.1
func (r *TaobaosellercenterroleaddAPIRequest) SetNick(_nick string) error
SetNick is Nick Setter 表示卖家昵称
func (*TaobaosellercenterroleaddAPIRequest) SetPermissionCodes ¶ added in v1.3.1
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 ¶ added in v1.3.1
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.3.1
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.3.1
type TaobaosellercenterrolesgetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaosellercenterrolesgetAPIRequest 获取指定卖家的角色列表 API请求 taobao.sellercenter.roles.get
获取指定卖家的角色列表,只能获取属于登陆者自己的信息。
func NewTaobaosellercenterrolesgetRequest ¶ added in v1.3.1
func NewTaobaosellercenterrolesgetRequest() *TaobaosellercenterrolesgetAPIRequest
NewTaobaosellercenterrolesgetRequest 初始化TaobaosellercenterrolesgetAPIRequest对象
func (TaobaosellercenterrolesgetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaosellercenterrolesgetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaosellercenterrolesgetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaosellercenterrolesgetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaosellercenterrolesgetAPIRequest) GetNick ¶ added in v1.3.1
func (r TaobaosellercenterrolesgetAPIRequest) GetNick() string
GetNick Nick Getter
func (TaobaosellercenterrolesgetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaosellercenterrolesgetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaosellercenterrolesgetAPIRequest) SetNick ¶ added in v1.3.1
func (r *TaobaosellercenterrolesgetAPIRequest) SetNick(_nick string) error
SetNick is Nick Setter 卖家昵称(只允许查询自己的信息:当前登陆者)
type TaobaosellercenterrolesgetAPIResponse ¶ added in v1.3.1
type TaobaosellercenterrolesgetAPIResponse struct { model.CommonResponse TaobaosellercenterrolesgetAPIResponseModel }
TaobaosellercenterrolesgetAPIResponse 获取指定卖家的角色列表 API返回值 taobao.sellercenter.roles.get
获取指定卖家的角色列表,只能获取属于登陆者自己的信息。
type TaobaosellercenterrolesgetAPIResponseModel ¶ added in v1.3.1
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.3.1
type TaobaosellercentersubuserpermissionsrolesgetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaosellercentersubuserpermissionsrolesgetAPIRequest 查询指定的子账号的权限和角色信息 API请求 taobao.sellercenter.subuser.permissions.roles.get
查询指定的子账号的被直接赋予的权限信息和角色信息。<br/>返回对象中包括直接赋予子账号的权限点信息、被赋予的角色以及角色的对应权限点信息。
func NewTaobaosellercentersubuserpermissionsrolesgetRequest ¶ added in v1.3.1
func NewTaobaosellercentersubuserpermissionsrolesgetRequest() *TaobaosellercentersubuserpermissionsrolesgetAPIRequest
NewTaobaosellercentersubuserpermissionsrolesgetRequest 初始化TaobaosellercentersubuserpermissionsrolesgetAPIRequest对象
func (TaobaosellercentersubuserpermissionsrolesgetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaosellercentersubuserpermissionsrolesgetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaosellercentersubuserpermissionsrolesgetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaosellercentersubuserpermissionsrolesgetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaosellercentersubuserpermissionsrolesgetAPIRequest) GetNick ¶ added in v1.3.1
func (r TaobaosellercentersubuserpermissionsrolesgetAPIRequest) GetNick() string
GetNick Nick Getter
func (TaobaosellercentersubuserpermissionsrolesgetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaosellercentersubuserpermissionsrolesgetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaosellercentersubuserpermissionsrolesgetAPIRequest) SetNick ¶ added in v1.3.1
func (r *TaobaosellercentersubuserpermissionsrolesgetAPIRequest) SetNick(_nick string) error
SetNick is Nick Setter 子账号昵称(子账号标识)
type TaobaosellercentersubuserpermissionsrolesgetAPIResponse ¶ added in v1.3.1
type TaobaosellercentersubuserpermissionsrolesgetAPIResponse struct { model.CommonResponse TaobaosellercentersubuserpermissionsrolesgetAPIResponseModel }
TaobaosellercentersubuserpermissionsrolesgetAPIResponse 查询指定的子账号的权限和角色信息 API返回值 taobao.sellercenter.subuser.permissions.roles.get
查询指定的子账号的被直接赋予的权限信息和角色信息。<br/>返回对象中包括直接赋予子账号的权限点信息、被赋予的角色以及角色的对应权限点信息。
type TaobaosellercentersubuserpermissionsrolesgetAPIResponseModel ¶ added in v1.3.1
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.3.1
type TaobaosellercentersubusersgetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaosellercentersubusersgetAPIRequest 查询指定账户的子账号列表 API请求 taobao.sellercenter.subusers.get
根据主账号nick查询该账号下所有的子账号列表,只能查询属于自己的账号信息 (主账号以及所属子账号)
func NewTaobaosellercentersubusersgetRequest ¶ added in v1.3.1
func NewTaobaosellercentersubusersgetRequest() *TaobaosellercentersubusersgetAPIRequest
NewTaobaosellercentersubusersgetRequest 初始化TaobaosellercentersubusersgetAPIRequest对象
func (TaobaosellercentersubusersgetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaosellercentersubusersgetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaosellercentersubusersgetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaosellercentersubusersgetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaosellercentersubusersgetAPIRequest) GetNick ¶ added in v1.3.1
func (r TaobaosellercentersubusersgetAPIRequest) GetNick() string
GetNick Nick Getter
func (TaobaosellercentersubusersgetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaosellercentersubusersgetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaosellercentersubusersgetAPIRequest) SetNick ¶ added in v1.3.1
func (r *TaobaosellercentersubusersgetAPIRequest) SetNick(_nick string) error
SetNick is Nick Setter 表示卖家昵称
type TaobaosellercentersubusersgetAPIResponse ¶ added in v1.3.1
type TaobaosellercentersubusersgetAPIResponse struct { model.CommonResponse TaobaosellercentersubusersgetAPIResponseModel }
TaobaosellercentersubusersgetAPIResponse 查询指定账户的子账号列表 API返回值 taobao.sellercenter.subusers.get
根据主账号nick查询该账号下所有的子账号列表,只能查询属于自己的账号信息 (主账号以及所属子账号)
type TaobaosellercentersubusersgetAPIResponseModel ¶ added in v1.3.1
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 TaobaosellercentersubuserspageAPIRequest ¶ added in v1.3.1
type TaobaosellercentersubuserspageAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaosellercentersubuserspageAPIRequest 通过主账号登陆态分页查询子账号列表 API请求 taobao.sellercenter.subusers.page
通过主账号登陆态分页查询子账号列表
func NewTaobaosellercentersubuserspageRequest ¶ added in v1.3.1
func NewTaobaosellercentersubuserspageRequest() *TaobaosellercentersubuserspageAPIRequest
NewTaobaosellercentersubuserspageRequest 初始化TaobaosellercentersubuserspageAPIRequest对象
func (TaobaosellercentersubuserspageAPIRequest) GetAccountStatus ¶ added in v1.3.1
func (r TaobaosellercentersubuserspageAPIRequest) GetAccountStatus() int64
GetAccountStatus AccountStatus Getter
func (TaobaosellercentersubuserspageAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaosellercentersubuserspageAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaosellercentersubuserspageAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaosellercentersubuserspageAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaosellercentersubuserspageAPIRequest) GetNick ¶ added in v1.3.1
func (r TaobaosellercentersubuserspageAPIRequest) GetNick() string
GetNick Nick Getter
func (TaobaosellercentersubuserspageAPIRequest) GetPageNum ¶ added in v1.3.1
func (r TaobaosellercentersubuserspageAPIRequest) GetPageNum() int64
GetPageNum PageNum Getter
func (TaobaosellercentersubuserspageAPIRequest) GetPageSize ¶ added in v1.3.1
func (r TaobaosellercentersubuserspageAPIRequest) GetPageSize() int64
GetPageSize PageSize Getter
func (TaobaosellercentersubuserspageAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaosellercentersubuserspageAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaosellercentersubuserspageAPIRequest) SetAccountStatus ¶ added in v1.3.1
func (r *TaobaosellercentersubuserspageAPIRequest) SetAccountStatus(_accountStatus int64) error
SetAccountStatus is AccountStatus Setter 可以不传,不传的话和老接口返回数据一样。如果传则根据子账号当前状态筛选 1正常 2冻结 3处罚,如果不传默认都返回
func (*TaobaosellercentersubuserspageAPIRequest) SetNick ¶ added in v1.3.1
func (r *TaobaosellercentersubuserspageAPIRequest) SetNick(_nick string) error
SetNick is Nick Setter 主账号登陆nick
func (*TaobaosellercentersubuserspageAPIRequest) SetPageNum ¶ added in v1.3.1
func (r *TaobaosellercentersubuserspageAPIRequest) SetPageNum(_pageNum int64) error
SetPageNum is PageNum Setter 页码,大于等于1
func (*TaobaosellercentersubuserspageAPIRequest) SetPageSize ¶ added in v1.3.1
func (r *TaobaosellercentersubuserspageAPIRequest) SetPageSize(_pageSize int64) error
SetPageSize is PageSize Setter 页大小,大于1小于200
type TaobaosellercentersubuserspageAPIResponse ¶ added in v1.3.1
type TaobaosellercentersubuserspageAPIResponse struct { model.CommonResponse TaobaosellercentersubuserspageAPIResponseModel }
TaobaosellercentersubuserspageAPIResponse 通过主账号登陆态分页查询子账号列表 API返回值 taobao.sellercenter.subusers.page
通过主账号登陆态分页查询子账号列表
type TaobaosellercentersubuserspageAPIResponseModel ¶ added in v1.3.1
type TaobaosellercentersubuserspageAPIResponseModel struct { XMLName xml.Name `xml:"sellercenter_subusers_page_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 子账号基本信息列表。具体信息为id、子账号用户名、主账号id、主账号昵称、当前状态值、是否分流 Subusers []SubUserInfo `json:"subusers,omitempty" xml:"subusers>sub_user_info,omitempty"` // isv本次调用传入的页大小 PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` // 本次调用删选条件下的总子账号数量,除以页大小可得出最大页数 TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` // isv本次调用传入的页码 PageNum int64 `json:"page_num,omitempty" xml:"page_num,omitempty"` }
TaobaosellercentersubuserspageAPIResponseModel is 通过主账号登陆态分页查询子账号列表 成功返回结果
type TaobaosellercenteruserpermissionsgetAPIRequest ¶ added in v1.3.1
type TaobaosellercenteruserpermissionsgetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaosellercenteruserpermissionsgetAPIRequest 获取指定用户的权限集合 API请求 taobao.sellercenter.user.permissions.get
获取指定用户的权限集合,并不组装成树。如果是主账号,返回所有的权限列表;如果是子账号,返回所有已授权的权限。只能查询属于自己的账号信息 (如果是主账号,则是主账号以及所属子账号,如果是子账号则是对应主账号以及所属子账号)
func NewTaobaosellercenteruserpermissionsgetRequest ¶ added in v1.3.1
func NewTaobaosellercenteruserpermissionsgetRequest() *TaobaosellercenteruserpermissionsgetAPIRequest
NewTaobaosellercenteruserpermissionsgetRequest 初始化TaobaosellercenteruserpermissionsgetAPIRequest对象
func (TaobaosellercenteruserpermissionsgetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaosellercenteruserpermissionsgetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaosellercenteruserpermissionsgetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaosellercenteruserpermissionsgetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaosellercenteruserpermissionsgetAPIRequest) GetNick ¶ added in v1.3.1
func (r TaobaosellercenteruserpermissionsgetAPIRequest) GetNick() string
GetNick Nick Getter
func (TaobaosellercenteruserpermissionsgetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaosellercenteruserpermissionsgetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaosellercenteruserpermissionsgetAPIRequest) SetNick ¶ added in v1.3.1
func (r *TaobaosellercenteruserpermissionsgetAPIRequest) SetNick(_nick string) error
SetNick is Nick Setter 用户标识,次入参必须为子账号比如zhangsan:cool。如果只输入主账号zhangsan,将报错。
type TaobaosellercenteruserpermissionsgetAPIResponse ¶ added in v1.3.1
type TaobaosellercenteruserpermissionsgetAPIResponse struct { model.CommonResponse TaobaosellercenteruserpermissionsgetAPIResponseModel }
TaobaosellercenteruserpermissionsgetAPIResponse 获取指定用户的权限集合 API返回值 taobao.sellercenter.user.permissions.get
获取指定用户的权限集合,并不组装成树。如果是主账号,返回所有的权限列表;如果是子账号,返回所有已授权的权限。只能查询属于自己的账号信息 (如果是主账号,则是主账号以及所属子账号,如果是子账号则是对应主账号以及所属子账号)
type TaobaosellercenteruserpermissionsgetAPIResponseModel ¶ added in v1.3.1
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.3.1
type TaobaosubuserdepartmentsgetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaosubuserdepartmentsgetAPIRequest 获取指定账户的所有部门列表 API请求 taobao.subuser.departments.get
获取指定账户的所有部门列表,其实包括有每个部门的ID、父部门ID、部门名称(通过主账号登陆只能查询属于该主账号下的所有部门信息)。
func NewTaobaosubuserdepartmentsgetRequest ¶ added in v1.3.1
func NewTaobaosubuserdepartmentsgetRequest() *TaobaosubuserdepartmentsgetAPIRequest
NewTaobaosubuserdepartmentsgetRequest 初始化TaobaosubuserdepartmentsgetAPIRequest对象
func (TaobaosubuserdepartmentsgetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaosubuserdepartmentsgetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaosubuserdepartmentsgetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaosubuserdepartmentsgetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaosubuserdepartmentsgetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaosubuserdepartmentsgetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaosubuserdepartmentsgetAPIRequest) GetUserNick ¶ added in v1.3.1
func (r TaobaosubuserdepartmentsgetAPIRequest) GetUserNick() string
GetUserNick UserNick Getter
func (*TaobaosubuserdepartmentsgetAPIRequest) SetUserNick ¶ added in v1.3.1
func (r *TaobaosubuserdepartmentsgetAPIRequest) SetUserNick(_userNick string) error
SetUserNick is UserNick Setter 主账号用户名
type TaobaosubuserdepartmentsgetAPIResponse ¶ added in v1.3.1
type TaobaosubuserdepartmentsgetAPIResponse struct { model.CommonResponse TaobaosubuserdepartmentsgetAPIResponseModel }
TaobaosubuserdepartmentsgetAPIResponse 获取指定账户的所有部门列表 API返回值 taobao.subuser.departments.get
获取指定账户的所有部门列表,其实包括有每个部门的ID、父部门ID、部门名称(通过主账号登陆只能查询属于该主账号下的所有部门信息)。
type TaobaosubuserdepartmentsgetAPIResponseModel ¶ added in v1.3.1
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.3.1
type TaobaosubuserdutysgetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaosubuserdutysgetAPIRequest 获取指定账户的所有职务信息列表 API请求 taobao.subuser.dutys.get
通过主账号Nick获取该账户下的所有职务信息,职务信息中包括职务ID、职务名称以及职务等级(通过主账号登陆只能获取属于该主账号下的职务信息)
func NewTaobaosubuserdutysgetRequest ¶ added in v1.3.1
func NewTaobaosubuserdutysgetRequest() *TaobaosubuserdutysgetAPIRequest
NewTaobaosubuserdutysgetRequest 初始化TaobaosubuserdutysgetAPIRequest对象
func (TaobaosubuserdutysgetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaosubuserdutysgetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaosubuserdutysgetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaosubuserdutysgetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaosubuserdutysgetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaosubuserdutysgetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaosubuserdutysgetAPIRequest) GetUserNick ¶ added in v1.3.1
func (r TaobaosubuserdutysgetAPIRequest) GetUserNick() string
GetUserNick UserNick Getter
func (*TaobaosubuserdutysgetAPIRequest) SetUserNick ¶ added in v1.3.1
func (r *TaobaosubuserdutysgetAPIRequest) SetUserNick(_userNick string) error
SetUserNick is UserNick Setter 主账号用户名
type TaobaosubuserdutysgetAPIResponse ¶ added in v1.3.1
type TaobaosubuserdutysgetAPIResponse struct { model.CommonResponse TaobaosubuserdutysgetAPIResponseModel }
TaobaosubuserdutysgetAPIResponse 获取指定账户的所有职务信息列表 API返回值 taobao.subuser.dutys.get
通过主账号Nick获取该账户下的所有职务信息,职务信息中包括职务ID、职务名称以及职务等级(通过主账号登陆只能获取属于该主账号下的职务信息)
type TaobaosubuserdutysgetAPIResponseModel ¶ added in v1.3.1
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.3.1
type TaobaosubuserfullinfogetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaosubuserfullinfogetAPIRequest 获取指定账户子账号的详细信息 API请求 taobao.subuser.fullinfo.get
获取指定账户子账号的详细信息,其中包括子账号的账号信息以及员工、部门、职务信息(只能通过主账号登陆并查询属于该主账号下的某个子账号详细信息)
func NewTaobaosubuserfullinfogetRequest ¶ added in v1.3.1
func NewTaobaosubuserfullinfogetRequest() *TaobaosubuserfullinfogetAPIRequest
NewTaobaosubuserfullinfogetRequest 初始化TaobaosubuserfullinfogetAPIRequest对象
func (TaobaosubuserfullinfogetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaosubuserfullinfogetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaosubuserfullinfogetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaosubuserfullinfogetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaosubuserfullinfogetAPIRequest) GetFields ¶ added in v1.3.1
func (r TaobaosubuserfullinfogetAPIRequest) GetFields() string
GetFields Fields Getter
func (TaobaosubuserfullinfogetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaosubuserfullinfogetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaosubuserfullinfogetAPIRequest) GetSubId ¶ added in v1.3.1
func (r TaobaosubuserfullinfogetAPIRequest) GetSubId() int64
GetSubId SubId Getter
func (TaobaosubuserfullinfogetAPIRequest) GetSubNick ¶ added in v1.3.1
func (r TaobaosubuserfullinfogetAPIRequest) GetSubNick() string
GetSubNick SubNick Getter
func (*TaobaosubuserfullinfogetAPIRequest) SetFields ¶ added in v1.3.1
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.3.1
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.3.1
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 ¶ added in v1.3.1
type TaobaosubuserfullinfogetAPIResponse struct { model.CommonResponse TaobaosubuserfullinfogetAPIResponseModel }
TaobaosubuserfullinfogetAPIResponse 获取指定账户子账号的详细信息 API返回值 taobao.subuser.fullinfo.get
获取指定账户子账号的详细信息,其中包括子账号的账号信息以及员工、部门、职务信息(只能通过主账号登陆并查询属于该主账号下的某个子账号详细信息)
type TaobaosubuserfullinfogetAPIResponseModel ¶ added in v1.3.1
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.3.1
type TaobaosubuserinfoupdateAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaosubuserinfoupdateAPIRequest 修改指定账户子账号的基本信息 API请求 taobao.subuser.info.update
修改指定账户子账号的基本信息(通过主账号登陆只能修改属于该主账号的子账号基本信息)
func NewTaobaosubuserinfoupdateRequest ¶ added in v1.3.1
func NewTaobaosubuserinfoupdateRequest() *TaobaosubuserinfoupdateAPIRequest
NewTaobaosubuserinfoupdateRequest 初始化TaobaosubuserinfoupdateAPIRequest对象
func (TaobaosubuserinfoupdateAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaosubuserinfoupdateAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaosubuserinfoupdateAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaosubuserinfoupdateAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaosubuserinfoupdateAPIRequest) GetIsDisableSubaccount ¶ added in v1.3.1
func (r TaobaosubuserinfoupdateAPIRequest) GetIsDisableSubaccount() bool
GetIsDisableSubaccount IsDisableSubaccount Getter
func (TaobaosubuserinfoupdateAPIRequest) GetIsDispatch ¶ added in v1.3.1
func (r TaobaosubuserinfoupdateAPIRequest) GetIsDispatch() bool
GetIsDispatch IsDispatch Getter
func (TaobaosubuserinfoupdateAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaosubuserinfoupdateAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaosubuserinfoupdateAPIRequest) GetSubId ¶ added in v1.3.1
func (r TaobaosubuserinfoupdateAPIRequest) GetSubId() int64
GetSubId SubId Getter
func (*TaobaosubuserinfoupdateAPIRequest) SetIsDisableSubaccount ¶ added in v1.3.1
func (r *TaobaosubuserinfoupdateAPIRequest) SetIsDisableSubaccount(_isDisableSubaccount bool) error
SetIsDisableSubaccount is IsDisableSubaccount Setter 是否停用子账号 true:表示停用该子账号false:表示开启该子账号
func (*TaobaosubuserinfoupdateAPIRequest) SetIsDispatch ¶ added in v1.3.1
func (r *TaobaosubuserinfoupdateAPIRequest) SetIsDispatch(_isDispatch bool) error
SetIsDispatch is IsDispatch Setter 子账号是否参与分流 true:参与分流 false:不参与分流
func (*TaobaosubuserinfoupdateAPIRequest) SetSubId ¶ added in v1.3.1
func (r *TaobaosubuserinfoupdateAPIRequest) SetSubId(_subId int64) error
SetSubId is SubId Setter 子账号ID
type TaobaosubuserinfoupdateAPIResponse ¶ added in v1.3.1
type TaobaosubuserinfoupdateAPIResponse struct { model.CommonResponse TaobaosubuserinfoupdateAPIResponseModel }
TaobaosubuserinfoupdateAPIResponse 修改指定账户子账号的基本信息 API返回值 taobao.subuser.info.update
修改指定账户子账号的基本信息(通过主账号登陆只能修改属于该主账号的子账号基本信息)
type TaobaosubuserinfoupdateAPIResponseModel ¶ added in v1.3.1
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.3.1
TaobaosubusersgetAPIRequest 获取指定账户的子账号简易信息列表 API请求 taobao.subusers.get
获取主账号下的子账号简易账号信息集合。(只能通过主账号登陆并且查询该属于主账号的子账号信息)
func NewTaobaosubusersgetRequest ¶ added in v1.3.1
func NewTaobaosubusersgetRequest() *TaobaosubusersgetAPIRequest
NewTaobaosubusersgetRequest 初始化TaobaosubusersgetAPIRequest对象
func (TaobaosubusersgetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaosubusersgetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaosubusersgetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaosubusersgetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaosubusersgetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaosubusersgetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaosubusersgetAPIRequest) GetUserNick ¶ added in v1.3.1
func (r TaobaosubusersgetAPIRequest) GetUserNick() string
GetUserNick UserNick Getter
func (*TaobaosubusersgetAPIRequest) SetUserNick ¶ added in v1.3.1
func (r *TaobaosubusersgetAPIRequest) SetUserNick(_userNick string) error
SetUserNick is UserNick Setter 主账号用户名
type TaobaosubusersgetAPIResponse ¶ added in v1.3.1
type TaobaosubusersgetAPIResponse struct { model.CommonResponse TaobaosubusersgetAPIResponseModel }
TaobaosubusersgetAPIResponse 获取指定账户的子账号简易信息列表 API返回值 taobao.subusers.get
获取主账号下的子账号简易账号信息集合。(只能通过主账号登陆并且查询该属于主账号的子账号信息)
type TaobaosubusersgetAPIResponseModel ¶ added in v1.3.1
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 获取指定账户的子账号简易信息列表 成功返回结果
type TaobaosubusersinfoqueryAPIRequest ¶ added in v1.3.1
type TaobaosubusersinfoqueryAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaosubusersinfoqueryAPIRequest 根据当前子账号登陆态,获取该子账号基本信息 API请求 taobao.subusers.info.query
根据当前子账号登陆态,获取该子账号基本信息
func NewTaobaosubusersinfoqueryRequest ¶ added in v1.3.1
func NewTaobaosubusersinfoqueryRequest() *TaobaosubusersinfoqueryAPIRequest
NewTaobaosubusersinfoqueryRequest 初始化TaobaosubusersinfoqueryAPIRequest对象
func (TaobaosubusersinfoqueryAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaosubusersinfoqueryAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaosubusersinfoqueryAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaosubusersinfoqueryAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaosubusersinfoqueryAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaosubusersinfoqueryAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaosubusersinfoqueryAPIRequest) GetSite ¶ added in v1.3.1
func (r TaobaosubusersinfoqueryAPIRequest) GetSite() int64
GetSite Site Getter
func (*TaobaosubusersinfoqueryAPIRequest) SetSite ¶ added in v1.3.1
func (r *TaobaosubusersinfoqueryAPIRequest) SetSite(_site int64) error
SetSite is Site Setter 站点信息,淘宝天猫传0,1688传3
type TaobaosubusersinfoqueryAPIResponse ¶ added in v1.3.1
type TaobaosubusersinfoqueryAPIResponse struct { model.CommonResponse TaobaosubusersinfoqueryAPIResponseModel }
TaobaosubusersinfoqueryAPIResponse 根据当前子账号登陆态,获取该子账号基本信息 API返回值 taobao.subusers.info.query
根据当前子账号登陆态,获取该子账号基本信息
type TaobaosubusersinfoqueryAPIResponseModel ¶ added in v1.3.1
type TaobaosubusersinfoqueryAPIResponseModel struct { XMLName xml.Name `xml:"subusers_info_query_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 子账号对象,如果为空,说明没查到该子账号 Result *SubUserDo `json:"result,omitempty" xml:"result,omitempty"` }
TaobaosubusersinfoqueryAPIResponseModel is 根据当前子账号登陆态,获取该子账号基本信息 成功返回结果
type TaobaosubuserspageAPIRequest ¶ added in v1.3.1
TaobaosubuserspageAPIRequest 分页获取指定账户的子账号简易信息列表(新isv建议使用taobao.sellercenter.subusers.page接口) API请求 taobao.subusers.page
分页获取指定账户的子账号简易信息列表 (新isv接入建议使用taobao.sellercenter.subusers.page接口)
func NewTaobaosubuserspageRequest ¶ added in v1.3.1
func NewTaobaosubuserspageRequest() *TaobaosubuserspageAPIRequest
NewTaobaosubuserspageRequest 初始化TaobaosubuserspageAPIRequest对象
func (TaobaosubuserspageAPIRequest) GetAccountStatus ¶ added in v1.3.1
func (r TaobaosubuserspageAPIRequest) GetAccountStatus() int64
GetAccountStatus AccountStatus Getter
func (TaobaosubuserspageAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaosubuserspageAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaosubuserspageAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaosubuserspageAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaosubuserspageAPIRequest) GetPageNum ¶ added in v1.3.1
func (r TaobaosubuserspageAPIRequest) GetPageNum() int64
GetPageNum PageNum Getter
func (TaobaosubuserspageAPIRequest) GetPageSize ¶ added in v1.3.1
func (r TaobaosubuserspageAPIRequest) GetPageSize() int64
GetPageSize PageSize Getter
func (TaobaosubuserspageAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaosubuserspageAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaosubuserspageAPIRequest) GetUserNick ¶ added in v1.3.1
func (r TaobaosubuserspageAPIRequest) GetUserNick() string
GetUserNick UserNick Getter
func (*TaobaosubuserspageAPIRequest) SetAccountStatus ¶ added in v1.3.1
func (r *TaobaosubuserspageAPIRequest) SetAccountStatus(_accountStatus int64) error
SetAccountStatus is AccountStatus Setter 可以不传,不传的话和老接口返回数据一样。如果传则根据子账号当前状态筛选 1正常 2冻结 3处罚,如果不传默认都返回
func (*TaobaosubuserspageAPIRequest) SetPageNum ¶ added in v1.3.1
func (r *TaobaosubuserspageAPIRequest) SetPageNum(_pageNum int64) error
SetPageNum is PageNum Setter 页码,大于等于1
func (*TaobaosubuserspageAPIRequest) SetPageSize ¶ added in v1.3.1
func (r *TaobaosubuserspageAPIRequest) SetPageSize(_pageSize int64) error
SetPageSize is PageSize Setter 页大小,大于1小于200
func (*TaobaosubuserspageAPIRequest) SetUserNick ¶ added in v1.3.1
func (r *TaobaosubuserspageAPIRequest) SetUserNick(_userNick string) error
SetUserNick is UserNick Setter 主账号用户名
type TaobaosubuserspageAPIResponse ¶ added in v1.3.1
type TaobaosubuserspageAPIResponse struct { model.CommonResponse TaobaosubuserspageAPIResponseModel }
TaobaosubuserspageAPIResponse 分页获取指定账户的子账号简易信息列表(新isv建议使用taobao.sellercenter.subusers.page接口) API返回值 taobao.subusers.page
分页获取指定账户的子账号简易信息列表 (新isv接入建议使用taobao.sellercenter.subusers.page接口)
type TaobaosubuserspageAPIResponseModel ¶ added in v1.3.1
type TaobaosubuserspageAPIResponseModel struct { XMLName xml.Name `xml:"subusers_page_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 子账号基本信息 Subaccounts []SubAccountInfo `json:"subaccounts,omitempty" xml:"subaccounts>sub_account_info,omitempty"` // isv本次调用传入的页大小 PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` // 本次调用删选条件下的总子账号数量,除以页大小可得出最大页数 TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` // isv本次调用传入的页码 PageNum int64 `json:"page_num,omitempty" xml:"page_num,omitempty"` }
TaobaosubuserspageAPIResponseModel is 分页获取指定账户的子账号简易信息列表(新isv建议使用taobao.sellercenter.subusers.page接口) 成功返回结果
type TaobaosubuserssubaccountsearchAPIRequest ¶ added in v1.3.1
type TaobaosubuserssubaccountsearchAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaosubuserssubaccountsearchAPIRequest 根据子账号登录名后缀模糊搜索子账号列表 API请求 taobao.subusers.subaccount.search
根据子账号冒号后缀搜索子账号列表,支持中文单字、英文单词(不支持英文单字母) 分词规则搜索,该搜索词必传。模糊搜索使用阿里云搜索引擎所以该接口增值收费,如果不需要模糊搜索仅需要分页获取子账号列表,请使用taobao.sellercenter.subusers.page接口
func NewTaobaosubuserssubaccountsearchRequest ¶ added in v1.3.1
func NewTaobaosubuserssubaccountsearchRequest() *TaobaosubuserssubaccountsearchAPIRequest
NewTaobaosubuserssubaccountsearchRequest 初始化TaobaosubuserssubaccountsearchAPIRequest对象
func (TaobaosubuserssubaccountsearchAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaosubuserssubaccountsearchAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaosubuserssubaccountsearchAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaosubuserssubaccountsearchAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaosubuserssubaccountsearchAPIRequest) GetFilterKey ¶ added in v1.3.1
func (r TaobaosubuserssubaccountsearchAPIRequest) GetFilterKey() string
GetFilterKey FilterKey Getter
func (TaobaosubuserssubaccountsearchAPIRequest) GetMainNick ¶ added in v1.3.1
func (r TaobaosubuserssubaccountsearchAPIRequest) GetMainNick() string
GetMainNick MainNick Getter
func (TaobaosubuserssubaccountsearchAPIRequest) GetPageNum ¶ added in v1.3.1
func (r TaobaosubuserssubaccountsearchAPIRequest) GetPageNum() int64
GetPageNum PageNum Getter
func (TaobaosubuserssubaccountsearchAPIRequest) GetPageSize ¶ added in v1.3.1
func (r TaobaosubuserssubaccountsearchAPIRequest) GetPageSize() int64
GetPageSize PageSize Getter
func (TaobaosubuserssubaccountsearchAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaosubuserssubaccountsearchAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaosubuserssubaccountsearchAPIRequest) SetFilterKey ¶ added in v1.3.1
func (r *TaobaosubuserssubaccountsearchAPIRequest) SetFilterKey(_filterKey string) error
SetFilterKey is FilterKey Setter 根据子账号冒号后缀的搜索词,支持中文单字、英文单词 分词规则搜索。该搜索词必传。如果不需要模糊搜索仅需要分页获取子账号列表,请使用taobao.sellercenter.subusers.page接口
func (*TaobaosubuserssubaccountsearchAPIRequest) SetMainNick ¶ added in v1.3.1
func (r *TaobaosubuserssubaccountsearchAPIRequest) SetMainNick(_mainNick string) error
SetMainNick is MainNick Setter 主账号登录名
func (*TaobaosubuserssubaccountsearchAPIRequest) SetPageNum ¶ added in v1.3.1
func (r *TaobaosubuserssubaccountsearchAPIRequest) SetPageNum(_pageNum int64) error
SetPageNum is PageNum Setter 页码,大于等于1
func (*TaobaosubuserssubaccountsearchAPIRequest) SetPageSize ¶ added in v1.3.1
func (r *TaobaosubuserssubaccountsearchAPIRequest) SetPageSize(_pageSize int64) error
SetPageSize is PageSize Setter 页大小,大于1小于200
type TaobaosubuserssubaccountsearchAPIResponse ¶ added in v1.3.1
type TaobaosubuserssubaccountsearchAPIResponse struct { model.CommonResponse TaobaosubuserssubaccountsearchAPIResponseModel }
TaobaosubuserssubaccountsearchAPIResponse 根据子账号登录名后缀模糊搜索子账号列表 API返回值 taobao.subusers.subaccount.search
根据子账号冒号后缀搜索子账号列表,支持中文单字、英文单词(不支持英文单字母) 分词规则搜索,该搜索词必传。模糊搜索使用阿里云搜索引擎所以该接口增值收费,如果不需要模糊搜索仅需要分页获取子账号列表,请使用taobao.sellercenter.subusers.page接口
type TaobaosubuserssubaccountsearchAPIResponseModel ¶ added in v1.3.1
type TaobaosubuserssubaccountsearchAPIResponseModel struct { XMLName xml.Name `xml:"subusers_subaccount_search_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 子账号列表 Subaccounts []SubAccountInfo `json:"subaccounts,omitempty" xml:"subaccounts>sub_account_info,omitempty"` // isv本次调用传入的页大小 PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` // 本次调用删选条件下的总子账号数量,除以页大小可得出最大页数 TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` // isv本次调用传入的页码 PageNum int64 `json:"page_num,omitempty" xml:"page_num,omitempty"` }
TaobaosubuserssubaccountsearchAPIResponseModel is 根据子账号登录名后缀模糊搜索子账号列表 成功返回结果
Source Files ¶
- Department.go
- Duty.go
- Permission.go
- Role.go
- SubAccountInfo.go
- SubUserDo.go
- SubUserFullInfo.go
- SubUserInfo.go
- SubUserPermission.go
- TaobaoSellercenterRoleAddAPIRequest.go
- TaobaoSellercenterRoleAddAPIResponse.go
- TaobaoSellercenterRolesGetAPIRequest.go
- TaobaoSellercenterRolesGetAPIResponse.go
- TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest.go
- TaobaoSellercenterSubuserPermissionsRolesGetAPIResponse.go
- TaobaoSellercenterSubusersGetAPIRequest.go
- TaobaoSellercenterSubusersGetAPIResponse.go
- TaobaoSellercenterSubusersPageAPIRequest.go
- TaobaoSellercenterSubusersPageAPIResponse.go
- TaobaoSellercenterUserPermissionsGetAPIRequest.go
- TaobaoSellercenterUserPermissionsGetAPIResponse.go
- TaobaoSubuserDepartmentsGetAPIRequest.go
- TaobaoSubuserDepartmentsGetAPIResponse.go
- TaobaoSubuserDutysGetAPIRequest.go
- TaobaoSubuserDutysGetAPIResponse.go
- TaobaoSubuserFullinfoGetAPIRequest.go
- TaobaoSubuserFullinfoGetAPIResponse.go
- TaobaoSubuserInfoUpdateAPIRequest.go
- TaobaoSubuserInfoUpdateAPIResponse.go
- TaobaoSubusersGetAPIRequest.go
- TaobaoSubusersGetAPIResponse.go
- TaobaoSubusersInfoQueryAPIRequest.go
- TaobaoSubusersInfoQueryAPIResponse.go
- TaobaoSubusersPageAPIRequest.go
- TaobaoSubusersPageAPIResponse.go
- TaobaoSubusersSubaccountSearchAPIRequest.go
- TaobaoSubusersSubaccountSearchAPIResponse.go
- doc.go