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);
|
}
|