| | |
| | | package cc.mrbird.febs.ai.service; |
| | | |
| | | import cc.mrbird.febs.ai.entity.AiProduct; |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.common.entity.QueryRequest; |
| | | import cc.mrbird.febs.mall.entity.ClothesArt; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | AiProduct getById(String id); |
| | | |
| | | /** |
| | | * 根据公司ID查询AI产品列表 |
| | | * @param companyId 公司ID |
| | | * @return AI产品列表 |
| | | */ |
| | | List<AiProduct> getByCompanyId(String companyId); |
| | | IPage<AiProduct> listInPage(AiProduct dto, QueryRequest request); |
| | | |
| | | /** |
| | | * 根据编码查询AI产品 |
| | | * @param code 产品编码 |
| | | * @return AI产品信息 |
| | | */ |
| | | AiProduct getByCode(String code); |
| | | FebsResponse changeState(String id, Integer type, Integer state); |
| | | |
| | | /** |
| | | * 根据名称查询AI产品列表 |
| | | * @param name 产品名称 |
| | | * @return AI产品列表 |
| | | */ |
| | | List<AiProduct> getByName(String name); |
| | | FebsResponse add(AiProduct dto); |
| | | |
| | | /** |
| | | * 根据产品类别ID查询AI产品列表 |
| | | * @param productCategoryId 产品类别ID |
| | | * @return AI产品列表 |
| | | */ |
| | | List<AiProduct> getByProductCategoryId(String productCategoryId); |
| | | FebsResponse update(AiProduct dto); |
| | | |
| | | /** |
| | | * 根据状态查询AI产品列表 |
| | | * @param state 状态 0-禁用 1-启用 2-已删除 |
| | | * @return AI产品列表 |
| | | */ |
| | | List<AiProduct> getByState(Integer state); |
| | | FebsResponse delete(String id); |
| | | |
| | | /** |
| | | * 根据是否推荐查询AI产品列表 |
| | | * @param hotState 是否推荐到首页 1-推荐 0-不推荐 |
| | | * @return AI产品列表 |
| | | */ |
| | | List<AiProduct> getByHotState(Integer hotState); |
| | | |
| | | /** |
| | | * 根据公司ID和状态查询AI产品列表 |
| | | * @param companyId 公司ID |
| | | * @param state 状态 0-禁用 1-启用 2-已删除 |
| | | * @return AI产品列表 |
| | | */ |
| | | List<AiProduct> getByCompanyIdAndState(String companyId, Integer state); |
| | | |
| | | /** |
| | | * 根据公司ID和推荐状态查询AI产品列表 |
| | | * @param companyId 公司ID |
| | | * @param hotState 是否推荐到首页 1-推荐 0-不推荐 |
| | | * @return AI产品列表 |
| | | */ |
| | | List<AiProduct> getByCompanyIdAndHotState(String companyId, Integer hotState); |
| | | |
| | | /** |
| | | * 保存AI产品 |
| | | * @param aiProduct AI产品实体 |
| | | * @return 是否保存成功 |
| | | */ |
| | | boolean saveProduct(AiProduct aiProduct); |
| | | |
| | | /** |
| | | * 批量保存AI产品 |
| | | * @param products AI产品列表 |
| | | * @return 是否保存成功 |
| | | */ |
| | | boolean saveBatchProducts(List<AiProduct> products); |
| | | |
| | | /** |
| | | * 更新AI产品 |
| | | * @param aiProduct AI产品实体 |
| | | * @return 是否更新成功 |
| | | */ |
| | | boolean updateProduct(AiProduct aiProduct); |
| | | |
| | | /** |
| | | * 根据ID删除AI产品 |
| | | * @param id 产品ID |
| | | * @return 是否删除成功 |
| | | */ |
| | | boolean deleteById(String id); |
| | | |
| | | /** |
| | | * 根据公司ID删除AI产品 |
| | | * @param companyId 公司ID |
| | | * @return 是否删除成功 |
| | | */ |
| | | boolean deleteByCompanyId(String companyId); |
| | | List<AiProduct> selectList(); |
| | | } |