Documentation
¶
Index ¶
- Constants
- type AttributeType
- type ItemStatus
- type Product
- func (p *Product) AddItem(item entity.AddItemRequestItemEntity) entity.AddItemResult
- func (p *Product) DeleteItem(itemID int64) entity.DeleteItemResult
- func (p *Product) GetComment(itemID, commentID int64, cursor string, pageSize int) entity.GetCommentResult
- func (p *Product) GetItemBaseInfo(itemIdList []int64) entity.GetItemBaseInfoResult
- func (p *Product) GetItemExtraInfo(itemIdList []int64) entity.GetItemExtraInfoResult
- func (p *Product) GetItemList(offset, pageSize, updateTimeFrom, updateTimeTo int, itemStatus ItemStatus) entity.GetItemListResult
- func (p *Product) ReplyComment(commentList []entity.ReplyCommentRequestCommentEntity) entity.ReplyCommentResult
Constants ¶
const ( INT_TYPE AttributeType = "INT_TYPE" STRING_TYPE AttributeType = "STRING_TYPE" ENUM_TYPE AttributeType = "ENUM_TYPE" FLOAT_TYPE AttributeType = "FLOAT_TYPE" DATE_TYPE AttributeType = "DATE_TYPE" TIMESTAMP_TYPE AttributeType = "TIMESTAMP_TYPE" NORMAL ItemStatus = "NORMAL" BANNED ItemStatus = "BANNED" DELETED ItemStatus = "DELETED" UNLIST ItemStatus = "UNLIST" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemStatus ¶
type ItemStatus string
type Product ¶
type Product struct {
Config *shopeeConfig.Config
}
Product
func (*Product) AddItem ¶ added in v0.0.13
func (p *Product) AddItem(item entity.AddItemRequestItemEntity) entity.AddItemResult
AddItem @Title Add a new item. @Description https://open.shopee.com/documents?module=89&type=1&id=616&version=2
func (*Product) DeleteItem ¶ added in v0.0.13
func (p *Product) DeleteItem(itemID int64) entity.DeleteItemResult
DeleteItem @Title Use this call to delete a product item. @Description https://open.shopee.com/documents?module=89&type=1&id=615&version=2
func (*Product) GetComment ¶
func (p *Product) GetComment(itemID, commentID int64, cursor string, pageSize int) entity.GetCommentResult
GetComment @Title Use this api to get comment by shop_id, item_id, or comment_id. @Description https://open.shopee.com/documents?module=89&type=1&id=562&version=2
func (*Product) GetItemBaseInfo ¶
func (p *Product) GetItemBaseInfo(itemIdList []int64) entity.GetItemBaseInfoResult
GetItemBaseInfo @Title Use this api to get basic info of item by item_id list. @Description https://open.shopee.com/documents?module=89&type=1&id=612&version=2
func (*Product) GetItemExtraInfo ¶
func (p *Product) GetItemExtraInfo(itemIdList []int64) entity.GetItemExtraInfoResult
GetItemExtraInfo @Title Use this api to get extra info of item by item_id list. @Description https://open.shopee.com/documents?module=89&type=1&id=613&version=2
func (*Product) GetItemList ¶
func (p *Product) GetItemList(offset, pageSize, updateTimeFrom, updateTimeTo int, itemStatus ItemStatus) entity.GetItemListResult
GetItemList @Title Use this call to get a list of items. @Description https://open.shopee.com/documents?module=89&type=1&id=614&version=2
func (*Product) ReplyComment ¶
func (p *Product) ReplyComment(commentList []entity.ReplyCommentRequestCommentEntity) entity.ReplyCommentResult
ReplyComment @Title Use this api to reply comments from buyers in batch. @Description https://open.shopee.com/documents?module=89&type=1&id=563&version=2