shop-php/extend/taobao/request/ItemImgDeleteRequest.php
2024-01-26 09:39:36 +08:00

82 lines
1.5 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* TOP API: taobao.item.img.delete request
*
* @author auto create
* @since 1.0, 2023.03.28
*/
class ItemImgDeleteRequest
{
/**
* 商品图片ID如果是竖图请将id的值设置为1
**/
private $id;
/**
* 标记是否要删除第6张图因为第6张图与普通商品图片不是存储在同一个位置的无图片ID所以要通过一个标记来判断是否为第6张图目前第6张图业务主要用在女装业务下
**/
private $isSixthPic;
/**
* 商品数字ID
**/
private $numIid;
private $apiParas = array();
public function setId($id)
{
$this->id = $id;
$this->apiParas["id"] = $id;
}
public function getId()
{
return $this->id;
}
public function setIsSixthPic($isSixthPic)
{
$this->isSixthPic = $isSixthPic;
$this->apiParas["is_sixth_pic"] = $isSixthPic;
}
public function getIsSixthPic()
{
return $this->isSixthPic;
}
public function setNumIid($numIid)
{
$this->numIid = $numIid;
$this->apiParas["num_iid"] = $numIid;
}
public function getNumIid()
{
return $this->numIid;
}
public function getApiMethodName()
{
return "taobao.item.img.delete";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->id,"id");
RequestCheckUtil::checkNotNull($this->numIid,"numIid");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}