BannerContentService.java 1.01 KB
package com.diligrp.etrade.admin.service;

import com.diligrp.etrade.admin.model.BannerContent;

/**
* @author dili
* @description 针对表【banner_content(内容管理-轮播图)】的数据库操作Service
* @createDate 2024-09-13 16:09:46
*/
public interface BannerContentService {
    /**
    * @description: 新增
    * @date: 2024/9/14 11:03
    * @param: [bannerId, content, picUrl, marketId]
    * @return: int
    **/
    int add(Long bannerId, String content, String picUrl);

    /**
     * 修改
     * @param bannerContent
     * @return
     */
    int updateByPrimaryKey(BannerContent bannerContent);
    /**
    * @description: 根据 [bannerId] 能够查询到唯一一条数据
    * @date: 2024/9/14 10:57
    * @param: [bannerId]
    * @return: com.diligrp.etrade.admin.model.BannerContent
    **/
    BannerContent getByBannerId(Long bannerId);

    /**
    * @description: 根据主键删除
    * @date: 2024/9/14 11:11
    * @param: [id]
    * @return: int
    **/
    int deleteByPrimaryKey(Long id);
}