1
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package jdapi
|
package jdapi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"git.rosy.net.cn/baseapi"
|
"git.rosy.net.cn/baseapi"
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
"testing"
|
"testing"
|
||||||
@@ -167,4 +168,5 @@ func TestQueryMerchantMemberInfo(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Test1111(t *testing.T) {
|
func Test1111(t *testing.T) {
|
||||||
|
fmt.Println(len("我爱你 ml1"))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ package product_auditList_request
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
product_auditList_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_auditList/response"
|
||||||
|
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ProductAuditListRequest struct {
|
type ProductAuditListRequest struct {
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
package product_auditList_response
|
package product_auditList_response
|
||||||
|
|
||||||
|
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||||
|
|
||||||
type ProductAuditListResponse struct {
|
type ProductAuditListResponse struct {
|
||||||
doudian_sdk.BaseDoudianOpApiResponse
|
doudian_sdk.BaseDoudianOpApiResponse
|
||||||
Data *ProductAuditListData `json:"data"`
|
Data *ProductAuditListData `json:"data"`
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ import (
|
|||||||
order_batchSensitive_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_batchSensitive/request"
|
order_batchSensitive_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_batchSensitive/request"
|
||||||
product_addV2_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_addV2/request"
|
product_addV2_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_addV2/request"
|
||||||
product_addV2_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_addV2/response"
|
product_addV2_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_addV2/response"
|
||||||
|
product_auditList_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_auditList/request"
|
||||||
|
product_auditList_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_auditList/response"
|
||||||
product_del_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_del/request"
|
product_del_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_del/request"
|
||||||
product_detail_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_detail/request"
|
product_detail_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_detail/request"
|
||||||
product_detail_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_detail/response"
|
product_detail_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_detail/response"
|
||||||
@@ -8144,3 +8146,21 @@ func (a *API) GetProductUpdateRule2(categoryId int64) bool {
|
|||||||
}
|
}
|
||||||
return result.Data.AfterSaleRule.SupplyDayReturnRule.Enable
|
return result.Data.AfterSaleRule.SupplyDayReturnRule.Enable
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetProductAuditList 获取商品的审核记录
|
||||||
|
func (a *API) GetProductAuditList(page, pageSize, status int64) ([]product_auditList_response.RecordsItem, error) {
|
||||||
|
request := product_auditList_request.New()
|
||||||
|
request.Param.PublishStatus = status
|
||||||
|
request.Param.Page = page
|
||||||
|
request.Param.Size = pageSize
|
||||||
|
|
||||||
|
result, err := request.Execute(a.accessTokenObj)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if result.Code != RequestSuccessCode {
|
||||||
|
return nil, errors.New(result.SubMsg)
|
||||||
|
}
|
||||||
|
|
||||||
|
return result.Data.Records, nil
|
||||||
|
}
|
||||||
|
|||||||
@@ -318,7 +318,7 @@ func TestBatchDecrypt(t *testing.T) {
|
|||||||
func TestGetSkuList(t *testing.T) {
|
func TestGetSkuList(t *testing.T) {
|
||||||
result, err := a.GetSkuDetailList(&product_listV2_request.ProductListV2Param{
|
result, err := a.GetSkuDetailList(&product_listV2_request.ProductListV2Param{
|
||||||
Status: 0,
|
Status: 0,
|
||||||
CheckStatus: 3,
|
CheckStatus: 4,
|
||||||
ProductType: 0,
|
ProductType: 0,
|
||||||
StartTime: 0,
|
StartTime: 0,
|
||||||
EndTime: 0,
|
EndTime: 0,
|
||||||
@@ -326,7 +326,6 @@ func TestGetSkuList(t *testing.T) {
|
|||||||
Size: 100,
|
Size: 100,
|
||||||
UpdateStartTime: 0,
|
UpdateStartTime: 0,
|
||||||
UpdateEndTime: 0,
|
UpdateEndTime: 0,
|
||||||
//StoreId: 65402632,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
for _, v := range result.Data {
|
for _, v := range result.Data {
|
||||||
@@ -385,3 +384,17 @@ func TestNameeeee(t *testing.T) {
|
|||||||
func TestGetProductUpdateRule2(t *testing.T) {
|
func TestGetProductUpdateRule2(t *testing.T) {
|
||||||
a.GetProductUpdateRule2(20219)
|
a.GetProductUpdateRule2(20219)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestPPPPPPPPPPPPPP(t *testing.T) {
|
||||||
|
aa := "该商品类目选择错误,推荐放置在“面条/挂面(待煮面条)”类目中."
|
||||||
|
|
||||||
|
for _, v := range strings.Split(aa, "“") {
|
||||||
|
fmt.Println(v)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestGetProductAuditList(t *testing.T) {
|
||||||
|
data, err := a.GetProductAuditList(1, 100, 2)
|
||||||
|
globals.SugarLogger.Debugf("data %s", utils.Format4Output(data, false))
|
||||||
|
globals.SugarLogger.Debugf("data %s", err)
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user