MrShi
8 小时以前 9eeb62c02a7b3c7b95c20678b6a9c74e7f12f943
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.doumee.service.business;
 
import com.doumee.core.model.PageData;
import com.doumee.core.model.PageWrap;
import com.doumee.dao.business.model.DouyinProduct;
 
/**
 * 抖音商品 Service 定义
 *
 * @author rk
 * @date 2026/06/22
 */
public interface DouyinProductService {
 
    /**
     * 从抖音同步商品(游标翻页全量拉取并落库),返回同步条数
     */
    int syncFromDouyin();
 
    /**
     * 本地分页查询
     */
    PageData<DouyinProduct> findPage(PageWrap<DouyinProduct> pageWrap);
 
    /**
     * 主键查询(含 SKU 列表,回填绑定套餐名)
     */
    DouyinProduct findById(String id);
 
    /**
     * 绑定/解绑本地套餐:把 out_id 设为 discount.id;discountId 为空则解绑
     */
    void bindDiscount(String id, String discountId);
}