Documentation ¶
Index ¶
- type Department
- type Duty
- type Permission
- type Role
- type SubAccountInfo
- type SubUserFullInfo
- type SubUserInfo
- type SubUserPermission
- type TaobaoSellercenterRoleAddAPIResponse
- type TaobaoSellercenterRoleAddRequest
- func (r TaobaoSellercenterRoleAddRequest) GetApiMethodName() string
- func (r TaobaoSellercenterRoleAddRequest) GetApiParams() url.Values
- func (r TaobaoSellercenterRoleAddRequest) GetDescription() string
- func (r TaobaoSellercenterRoleAddRequest) GetName() string
- func (r TaobaoSellercenterRoleAddRequest) GetNick() string
- func (r TaobaoSellercenterRoleAddRequest) GetPermissionCodes() []string
- func (r *TaobaoSellercenterRoleAddRequest) SetDescription(description string) error
- func (r *TaobaoSellercenterRoleAddRequest) SetName(name string) error
- func (r *TaobaoSellercenterRoleAddRequest) SetNick(nick string) error
- func (r *TaobaoSellercenterRoleAddRequest) SetPermissionCodes(permissionCodes []string) error
- type TaobaoSellercenterRoleAddResponse
- type TaobaoSellercenterRolesGetAPIResponse
- type TaobaoSellercenterRolesGetRequest
- type TaobaoSellercenterRolesGetResponse
- type TaobaoSellercenterSubuserPermissionsRolesGetAPIResponse
- type TaobaoSellercenterSubuserPermissionsRolesGetRequest
- func (r TaobaoSellercenterSubuserPermissionsRolesGetRequest) GetApiMethodName() string
- func (r TaobaoSellercenterSubuserPermissionsRolesGetRequest) GetApiParams() url.Values
- func (r TaobaoSellercenterSubuserPermissionsRolesGetRequest) GetNick() string
- func (r *TaobaoSellercenterSubuserPermissionsRolesGetRequest) SetNick(nick string) error
- type TaobaoSellercenterSubuserPermissionsRolesGetResponse
- type TaobaoSellercenterSubusersGetAPIResponse
- type TaobaoSellercenterSubusersGetRequest
- type TaobaoSellercenterSubusersGetResponse
- type TaobaoSellercenterUserPermissionsGetAPIResponse
- type TaobaoSellercenterUserPermissionsGetRequest
- func (r TaobaoSellercenterUserPermissionsGetRequest) GetApiMethodName() string
- func (r TaobaoSellercenterUserPermissionsGetRequest) GetApiParams() url.Values
- func (r TaobaoSellercenterUserPermissionsGetRequest) GetNick() string
- func (r *TaobaoSellercenterUserPermissionsGetRequest) SetNick(nick string) error
- type TaobaoSellercenterUserPermissionsGetResponse
- type TaobaoSubuserDepartmentsGetAPIResponse
- type TaobaoSubuserDepartmentsGetRequest
- type TaobaoSubuserDepartmentsGetResponse
- type TaobaoSubuserDutysGetAPIResponse
- type TaobaoSubuserDutysGetRequest
- type TaobaoSubuserDutysGetResponse
- type TaobaoSubuserFullinfoGetAPIResponse
- type TaobaoSubuserFullinfoGetRequest
- func (r TaobaoSubuserFullinfoGetRequest) GetApiMethodName() string
- func (r TaobaoSubuserFullinfoGetRequest) GetApiParams() url.Values
- func (r TaobaoSubuserFullinfoGetRequest) GetFields() string
- func (r TaobaoSubuserFullinfoGetRequest) GetSubId() int64
- func (r TaobaoSubuserFullinfoGetRequest) GetSubNick() string
- func (r *TaobaoSubuserFullinfoGetRequest) SetFields(fields string) error
- func (r *TaobaoSubuserFullinfoGetRequest) SetSubId(subId int64) error
- func (r *TaobaoSubuserFullinfoGetRequest) SetSubNick(subNick string) error
- type TaobaoSubuserFullinfoGetResponse
- type TaobaoSubuserInfoUpdateAPIResponse
- type TaobaoSubuserInfoUpdateRequest
- func (r TaobaoSubuserInfoUpdateRequest) GetApiMethodName() string
- func (r TaobaoSubuserInfoUpdateRequest) GetApiParams() url.Values
- func (r TaobaoSubuserInfoUpdateRequest) GetIsDisableSubaccount() bool
- func (r TaobaoSubuserInfoUpdateRequest) GetIsDispatch() bool
- func (r TaobaoSubuserInfoUpdateRequest) GetSubId() int64
- func (r *TaobaoSubuserInfoUpdateRequest) SetIsDisableSubaccount(isDisableSubaccount bool) error
- func (r *TaobaoSubuserInfoUpdateRequest) SetIsDispatch(isDispatch bool) error
- func (r *TaobaoSubuserInfoUpdateRequest) SetSubId(subId int64) error
- type TaobaoSubuserInfoUpdateResponse
- type TaobaoSubusersGetAPIResponse
- type TaobaoSubusersGetRequest
- type TaobaoSubusersGetResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Department ¶
type Department struct { DepartmentId int64 `json:"department_id,omitempty" xml:"department_id,omitempty"` ParentId int64 `json:"parent_id,omitempty" xml:"parent_id,omitempty"` DepartmentName string `json:"department_name,omitempty" xml:"department_name,omitempty"` SubUserIds []int64 `json:"sub_user_ids,omitempty" xml:"sub_user_ids>int64,omitempty"` }
Department
type Duty ¶
type Duty struct { 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 { PermissionCode string `json:"permission_code,omitempty" xml:"permission_code,omitempty"` PermissionName string `json:"permission_name,omitempty" xml:"permission_name,omitempty"` ParentCode string `json:"parent_code,omitempty" xml:"parent_code,omitempty"` IsAuthorize int64 `json:"is_authorize,omitempty" xml:"is_authorize,omitempty"` }
Permission
type Role ¶
type Role struct { 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"` 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,omitempty"` }
Role
type SubAccountInfo ¶
type SubAccountInfo struct { SubId int64 `json:"sub_id,omitempty" xml:"sub_id,omitempty"` SubNick string `json:"sub_nick,omitempty" xml:"sub_nick,omitempty"` UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"` UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"` SubStatus int64 `json:"sub_status,omitempty" xml:"sub_status,omitempty"` SubOwedStatus bool `json:"sub_owed_status,omitempty" xml:"sub_owed_status,omitempty"` 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 { SubId int64 `json:"sub_id,omitempty" xml:"sub_id,omitempty"` SubNick string `json:"sub_nick,omitempty" xml:"sub_nick,omitempty"` UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"` UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"` SubStatus int64 `json:"sub_status,omitempty" xml:"sub_status,omitempty"` SubOwedStatus bool `json:"sub_owed_status,omitempty" xml:"sub_owed_status,omitempty"` SubDispatchStatus bool `json:"sub_dispatch_status,omitempty" xml:"sub_dispatch_status,omitempty"` SubuserEmail string `json:"subuser_email,omitempty" xml:"subuser_email,omitempty"` DepartmentId int64 `json:"department_id,omitempty" xml:"department_id,omitempty"` DepartmentName string `json:"department_name,omitempty" xml:"department_name,omitempty"` ParentDepartment int64 `json:"parent_department,omitempty" xml:"parent_department,omitempty"` 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"` Sex int64 `json:"sex,omitempty" xml:"sex,omitempty"` UserEmail string `json:"user_email,omitempty" xml:"user_email,omitempty"` LeaderId int64 `json:"leader_id,omitempty" xml:"leader_id,omitempty"` 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"` Status int64 `json:"status,omitempty" xml:"status,omitempty"` IsOnline int64 `json:"is_online,omitempty" xml:"is_online,omitempty"` SubId int64 `json:"sub_id,omitempty" xml:"sub_id,omitempty"` }
SubUserInfo
type SubUserPermission ¶
type SubUserPermission struct { Permissions []Permission `json:"permissions,omitempty" xml:"permissions,omitempty"` Roles []Role `json:"roles,omitempty" xml:"roles,omitempty"` }
SubUserPermission
type TaobaoSellercenterRoleAddAPIResponse ¶
type TaobaoSellercenterRoleAddAPIResponse struct { model.CommonResponse TaobaoSellercenterRoleAddResponse }
子账号角色的新增(指定卖家) APIResponse 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 }
子账号角色的新增(指定卖家) APIRequest 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
func (TaobaoSellercenterRoleAddRequest) GetApiMethodName ¶
func (r TaobaoSellercenterRoleAddRequest) GetApiMethodName() string
func (TaobaoSellercenterRoleAddRequest) GetApiParams ¶
func (r TaobaoSellercenterRoleAddRequest) GetApiParams() url.Values
func (TaobaoSellercenterRoleAddRequest) GetDescription ¶
func (r TaobaoSellercenterRoleAddRequest) GetDescription() string
func (TaobaoSellercenterRoleAddRequest) GetName ¶
func (r TaobaoSellercenterRoleAddRequest) GetName() string
func (TaobaoSellercenterRoleAddRequest) GetNick ¶
func (r TaobaoSellercenterRoleAddRequest) GetNick() string
func (TaobaoSellercenterRoleAddRequest) GetPermissionCodes ¶
func (r TaobaoSellercenterRoleAddRequest) GetPermissionCodes() []string
func (*TaobaoSellercenterRoleAddRequest) SetDescription ¶
func (r *TaobaoSellercenterRoleAddRequest) SetDescription(description string) error
func (*TaobaoSellercenterRoleAddRequest) SetName ¶
func (r *TaobaoSellercenterRoleAddRequest) SetName(name string) error
func (*TaobaoSellercenterRoleAddRequest) SetNick ¶
func (r *TaobaoSellercenterRoleAddRequest) SetNick(nick string) error
func (*TaobaoSellercenterRoleAddRequest) SetPermissionCodes ¶
func (r *TaobaoSellercenterRoleAddRequest) SetPermissionCodes(permissionCodes []string) error
type TaobaoSellercenterRolesGetAPIResponse ¶
type TaobaoSellercenterRolesGetAPIResponse struct { model.CommonResponse TaobaoSellercenterRolesGetResponse }
获取指定卖家的角色列表 APIResponse taobao.sellercenter.roles.get
获取指定卖家的角色列表,只能获取属于登陆者自己的信息。
type TaobaoSellercenterRolesGetRequest ¶
type TaobaoSellercenterRolesGetRequest struct { model.Params // contains filtered or unexported fields }
获取指定卖家的角色列表 APIRequest taobao.sellercenter.roles.get
获取指定卖家的角色列表,只能获取属于登陆者自己的信息。
func NewTaobaoSellercenterRolesGetRequest ¶
func NewTaobaoSellercenterRolesGetRequest() *TaobaoSellercenterRolesGetRequest
func (TaobaoSellercenterRolesGetRequest) GetApiMethodName ¶
func (r TaobaoSellercenterRolesGetRequest) GetApiMethodName() string
func (TaobaoSellercenterRolesGetRequest) GetApiParams ¶
func (r TaobaoSellercenterRolesGetRequest) GetApiParams() url.Values
func (TaobaoSellercenterRolesGetRequest) GetNick ¶
func (r TaobaoSellercenterRolesGetRequest) GetNick() string
func (*TaobaoSellercenterRolesGetRequest) SetNick ¶
func (r *TaobaoSellercenterRolesGetRequest) SetNick(nick string) error
type TaobaoSellercenterSubuserPermissionsRolesGetAPIResponse ¶
type TaobaoSellercenterSubuserPermissionsRolesGetAPIResponse struct { model.CommonResponse TaobaoSellercenterSubuserPermissionsRolesGetResponse }
查询指定的子账号的权限和角色信息 APIResponse taobao.sellercenter.subuser.permissions.roles.get
查询指定的子账号的被直接赋予的权限信息和角色信息。<br/>返回对象中包括直接赋予子账号的权限点信息、被赋予的角色以及角色的对应权限点信息。
type TaobaoSellercenterSubuserPermissionsRolesGetRequest ¶
type TaobaoSellercenterSubuserPermissionsRolesGetRequest struct { model.Params // contains filtered or unexported fields }
查询指定的子账号的权限和角色信息 APIRequest taobao.sellercenter.subuser.permissions.roles.get
查询指定的子账号的被直接赋予的权限信息和角色信息。<br/>返回对象中包括直接赋予子账号的权限点信息、被赋予的角色以及角色的对应权限点信息。
func NewTaobaoSellercenterSubuserPermissionsRolesGetRequest ¶
func NewTaobaoSellercenterSubuserPermissionsRolesGetRequest() *TaobaoSellercenterSubuserPermissionsRolesGetRequest
func (TaobaoSellercenterSubuserPermissionsRolesGetRequest) GetApiMethodName ¶
func (r TaobaoSellercenterSubuserPermissionsRolesGetRequest) GetApiMethodName() string
func (TaobaoSellercenterSubuserPermissionsRolesGetRequest) GetApiParams ¶
func (r TaobaoSellercenterSubuserPermissionsRolesGetRequest) GetApiParams() url.Values
func (TaobaoSellercenterSubuserPermissionsRolesGetRequest) GetNick ¶
func (r TaobaoSellercenterSubuserPermissionsRolesGetRequest) GetNick() string
func (*TaobaoSellercenterSubuserPermissionsRolesGetRequest) SetNick ¶
func (r *TaobaoSellercenterSubuserPermissionsRolesGetRequest) SetNick(nick string) error
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 }
查询指定账户的子账号列表 APIResponse taobao.sellercenter.subusers.get
根据主账号nick查询该账号下所有的子账号列表,只能查询属于自己的账号信息 (主账号以及所属子账号)
type TaobaoSellercenterSubusersGetRequest ¶
type TaobaoSellercenterSubusersGetRequest struct { model.Params // contains filtered or unexported fields }
查询指定账户的子账号列表 APIRequest taobao.sellercenter.subusers.get
根据主账号nick查询该账号下所有的子账号列表,只能查询属于自己的账号信息 (主账号以及所属子账号)
func NewTaobaoSellercenterSubusersGetRequest ¶
func NewTaobaoSellercenterSubusersGetRequest() *TaobaoSellercenterSubusersGetRequest
func (TaobaoSellercenterSubusersGetRequest) GetApiMethodName ¶
func (r TaobaoSellercenterSubusersGetRequest) GetApiMethodName() string
func (TaobaoSellercenterSubusersGetRequest) GetApiParams ¶
func (r TaobaoSellercenterSubusersGetRequest) GetApiParams() url.Values
func (TaobaoSellercenterSubusersGetRequest) GetNick ¶
func (r TaobaoSellercenterSubusersGetRequest) GetNick() string
func (*TaobaoSellercenterSubusersGetRequest) SetNick ¶
func (r *TaobaoSellercenterSubusersGetRequest) SetNick(nick string) error
type TaobaoSellercenterSubusersGetResponse ¶
type TaobaoSellercenterSubusersGetResponse struct { XMLName xml.Name `xml:"sellercenter_subusers_get_response"` RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 平台颁发的每次请求访问的唯一标识 Subusers []SubUserInfo `json:"subusers,omitempty" xml:"subusers>sub_user_info,omitempty"` }
type TaobaoSellercenterUserPermissionsGetAPIResponse ¶
type TaobaoSellercenterUserPermissionsGetAPIResponse struct { model.CommonResponse TaobaoSellercenterUserPermissionsGetResponse }
获取指定用户的权限集合 APIResponse taobao.sellercenter.user.permissions.get
获取指定用户的权限集合,并不组装成树。如果是主账号,返回所有的权限列表;如果是子账号,返回所有已授权的权限。只能查询属于自己的账号信息 (如果是主账号,则是主账号以及所属子账号,如果是子账号则是对应主账号以及所属子账号)
type TaobaoSellercenterUserPermissionsGetRequest ¶
type TaobaoSellercenterUserPermissionsGetRequest struct { model.Params // contains filtered or unexported fields }
获取指定用户的权限集合 APIRequest taobao.sellercenter.user.permissions.get
获取指定用户的权限集合,并不组装成树。如果是主账号,返回所有的权限列表;如果是子账号,返回所有已授权的权限。只能查询属于自己的账号信息 (如果是主账号,则是主账号以及所属子账号,如果是子账号则是对应主账号以及所属子账号)
func NewTaobaoSellercenterUserPermissionsGetRequest ¶
func NewTaobaoSellercenterUserPermissionsGetRequest() *TaobaoSellercenterUserPermissionsGetRequest
func (TaobaoSellercenterUserPermissionsGetRequest) GetApiMethodName ¶
func (r TaobaoSellercenterUserPermissionsGetRequest) GetApiMethodName() string
func (TaobaoSellercenterUserPermissionsGetRequest) GetApiParams ¶
func (r TaobaoSellercenterUserPermissionsGetRequest) GetApiParams() url.Values
func (TaobaoSellercenterUserPermissionsGetRequest) GetNick ¶
func (r TaobaoSellercenterUserPermissionsGetRequest) GetNick() string
func (*TaobaoSellercenterUserPermissionsGetRequest) SetNick ¶
func (r *TaobaoSellercenterUserPermissionsGetRequest) SetNick(nick string) error
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 }
获取指定账户的所有部门列表 APIResponse taobao.subuser.departments.get
获取指定账户的所有部门列表,其实包括有每个部门的ID、父部门ID、部门名称(通过主账号登陆只能查询属于该主账号下的所有部门信息)。
type TaobaoSubuserDepartmentsGetRequest ¶
type TaobaoSubuserDepartmentsGetRequest struct { model.Params // contains filtered or unexported fields }
获取指定账户的所有部门列表 APIRequest taobao.subuser.departments.get
获取指定账户的所有部门列表,其实包括有每个部门的ID、父部门ID、部门名称(通过主账号登陆只能查询属于该主账号下的所有部门信息)。
func NewTaobaoSubuserDepartmentsGetRequest ¶
func NewTaobaoSubuserDepartmentsGetRequest() *TaobaoSubuserDepartmentsGetRequest
func (TaobaoSubuserDepartmentsGetRequest) GetApiMethodName ¶
func (r TaobaoSubuserDepartmentsGetRequest) GetApiMethodName() string
func (TaobaoSubuserDepartmentsGetRequest) GetApiParams ¶
func (r TaobaoSubuserDepartmentsGetRequest) GetApiParams() url.Values
func (TaobaoSubuserDepartmentsGetRequest) GetUserNick ¶
func (r TaobaoSubuserDepartmentsGetRequest) GetUserNick() string
func (*TaobaoSubuserDepartmentsGetRequest) SetUserNick ¶
func (r *TaobaoSubuserDepartmentsGetRequest) SetUserNick(userNick string) error
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 }
获取指定账户的所有职务信息列表 APIResponse taobao.subuser.dutys.get
通过主账号Nick获取该账户下的所有职务信息,职务信息中包括职务ID、职务名称以及职务等级(通过主账号登陆只能获取属于该主账号下的职务信息)
type TaobaoSubuserDutysGetRequest ¶
获取指定账户的所有职务信息列表 APIRequest taobao.subuser.dutys.get
通过主账号Nick获取该账户下的所有职务信息,职务信息中包括职务ID、职务名称以及职务等级(通过主账号登陆只能获取属于该主账号下的职务信息)
func NewTaobaoSubuserDutysGetRequest ¶
func NewTaobaoSubuserDutysGetRequest() *TaobaoSubuserDutysGetRequest
func (TaobaoSubuserDutysGetRequest) GetApiMethodName ¶
func (r TaobaoSubuserDutysGetRequest) GetApiMethodName() string
func (TaobaoSubuserDutysGetRequest) GetApiParams ¶
func (r TaobaoSubuserDutysGetRequest) GetApiParams() url.Values
func (TaobaoSubuserDutysGetRequest) GetUserNick ¶
func (r TaobaoSubuserDutysGetRequest) GetUserNick() string
func (*TaobaoSubuserDutysGetRequest) SetUserNick ¶
func (r *TaobaoSubuserDutysGetRequest) SetUserNick(userNick string) error
type TaobaoSubuserFullinfoGetAPIResponse ¶
type TaobaoSubuserFullinfoGetAPIResponse struct { model.CommonResponse TaobaoSubuserFullinfoGetResponse }
获取指定账户子账号的详细信息 APIResponse taobao.subuser.fullinfo.get
获取指定账户子账号的详细信息,其中包括子账号的账号信息以及员工、部门、职务信息(只能通过主账号登陆并查询属于该主账号下的某个子账号详细信息)
type TaobaoSubuserFullinfoGetRequest ¶
type TaobaoSubuserFullinfoGetRequest struct { model.Params // contains filtered or unexported fields }
获取指定账户子账号的详细信息 APIRequest taobao.subuser.fullinfo.get
获取指定账户子账号的详细信息,其中包括子账号的账号信息以及员工、部门、职务信息(只能通过主账号登陆并查询属于该主账号下的某个子账号详细信息)
func NewTaobaoSubuserFullinfoGetRequest ¶
func NewTaobaoSubuserFullinfoGetRequest() *TaobaoSubuserFullinfoGetRequest
func (TaobaoSubuserFullinfoGetRequest) GetApiMethodName ¶
func (r TaobaoSubuserFullinfoGetRequest) GetApiMethodName() string
func (TaobaoSubuserFullinfoGetRequest) GetApiParams ¶
func (r TaobaoSubuserFullinfoGetRequest) GetApiParams() url.Values
func (TaobaoSubuserFullinfoGetRequest) GetFields ¶
func (r TaobaoSubuserFullinfoGetRequest) GetFields() string
func (TaobaoSubuserFullinfoGetRequest) GetSubId ¶
func (r TaobaoSubuserFullinfoGetRequest) GetSubId() int64
func (TaobaoSubuserFullinfoGetRequest) GetSubNick ¶
func (r TaobaoSubuserFullinfoGetRequest) GetSubNick() string
func (*TaobaoSubuserFullinfoGetRequest) SetFields ¶
func (r *TaobaoSubuserFullinfoGetRequest) SetFields(fields string) error
func (*TaobaoSubuserFullinfoGetRequest) SetSubId ¶
func (r *TaobaoSubuserFullinfoGetRequest) SetSubId(subId int64) error
func (*TaobaoSubuserFullinfoGetRequest) SetSubNick ¶
func (r *TaobaoSubuserFullinfoGetRequest) SetSubNick(subNick string) error
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 }
修改指定账户子账号的基本信息 APIResponse taobao.subuser.info.update
修改指定账户子账号的基本信息(通过主账号登陆只能修改属于该主账号的子账号基本信息)
type TaobaoSubuserInfoUpdateRequest ¶
type TaobaoSubuserInfoUpdateRequest struct { model.Params // contains filtered or unexported fields }
修改指定账户子账号的基本信息 APIRequest taobao.subuser.info.update
修改指定账户子账号的基本信息(通过主账号登陆只能修改属于该主账号的子账号基本信息)
func NewTaobaoSubuserInfoUpdateRequest ¶
func NewTaobaoSubuserInfoUpdateRequest() *TaobaoSubuserInfoUpdateRequest
func (TaobaoSubuserInfoUpdateRequest) GetApiMethodName ¶
func (r TaobaoSubuserInfoUpdateRequest) GetApiMethodName() string
func (TaobaoSubuserInfoUpdateRequest) GetApiParams ¶
func (r TaobaoSubuserInfoUpdateRequest) GetApiParams() url.Values
func (TaobaoSubuserInfoUpdateRequest) GetIsDisableSubaccount ¶
func (r TaobaoSubuserInfoUpdateRequest) GetIsDisableSubaccount() bool
func (TaobaoSubuserInfoUpdateRequest) GetIsDispatch ¶
func (r TaobaoSubuserInfoUpdateRequest) GetIsDispatch() bool
func (TaobaoSubuserInfoUpdateRequest) GetSubId ¶
func (r TaobaoSubuserInfoUpdateRequest) GetSubId() int64
func (*TaobaoSubuserInfoUpdateRequest) SetIsDisableSubaccount ¶
func (r *TaobaoSubuserInfoUpdateRequest) SetIsDisableSubaccount(isDisableSubaccount bool) error
func (*TaobaoSubuserInfoUpdateRequest) SetIsDispatch ¶
func (r *TaobaoSubuserInfoUpdateRequest) SetIsDispatch(isDispatch bool) error
func (*TaobaoSubuserInfoUpdateRequest) SetSubId ¶
func (r *TaobaoSubuserInfoUpdateRequest) SetSubId(subId int64) error
type TaobaoSubusersGetAPIResponse ¶
type TaobaoSubusersGetAPIResponse struct { model.CommonResponse TaobaoSubusersGetResponse }
获取指定账户的子账号简易信息列表 APIResponse taobao.subusers.get
获取主账号下的子账号简易账号信息集合。(只能通过主账号登陆并且查询该属于主账号的子账号信息)
type TaobaoSubusersGetRequest ¶
获取指定账户的子账号简易信息列表 APIRequest taobao.subusers.get
获取主账号下的子账号简易账号信息集合。(只能通过主账号登陆并且查询该属于主账号的子账号信息)
func NewTaobaoSubusersGetRequest ¶
func NewTaobaoSubusersGetRequest() *TaobaoSubusersGetRequest
func (TaobaoSubusersGetRequest) GetApiMethodName ¶
func (r TaobaoSubusersGetRequest) GetApiMethodName() string
func (TaobaoSubusersGetRequest) GetApiParams ¶
func (r TaobaoSubusersGetRequest) GetApiParams() url.Values
func (TaobaoSubusersGetRequest) GetUserNick ¶
func (r TaobaoSubusersGetRequest) GetUserNick() string
func (*TaobaoSubusersGetRequest) SetUserNick ¶
func (r *TaobaoSubusersGetRequest) SetUserNick(userNick string) error
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"` }
Source Files ¶
- Department.go
- Duty.go
- Permission.go
- Role.go
- SubAccountInfo.go
- SubUserFullInfo.go
- SubUserInfo.go
- SubUserPermission.go
- TaobaoSellercenterRoleAddRequest.go
- TaobaoSellercenterRoleAddResponse.go
- TaobaoSellercenterRolesGetRequest.go
- TaobaoSellercenterRolesGetResponse.go
- TaobaoSellercenterSubuserPermissionsRolesGetRequest.go
- TaobaoSellercenterSubuserPermissionsRolesGetResponse.go
- TaobaoSellercenterSubusersGetRequest.go
- TaobaoSellercenterSubusersGetResponse.go
- TaobaoSellercenterUserPermissionsGetRequest.go
- TaobaoSellercenterUserPermissionsGetResponse.go
- TaobaoSubuserDepartmentsGetRequest.go
- TaobaoSubuserDepartmentsGetResponse.go
- TaobaoSubuserDutysGetRequest.go
- TaobaoSubuserDutysGetResponse.go
- TaobaoSubuserFullinfoGetRequest.go
- TaobaoSubuserFullinfoGetResponse.go
- TaobaoSubuserInfoUpdateRequest.go
- TaobaoSubuserInfoUpdateResponse.go
- TaobaoSubusersGetRequest.go
- TaobaoSubusersGetResponse.go