package org.dromara.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.domain.communityNews.CommunityNews;
import org.dromara.domain.communityNews.vo.CommunityNewsVo;

/**
 * 社区资讯Mapper接口
 *
 * @author boman
 * @date 2025-04-11
 */
public interface CommunityNewsMapper extends BaseMapperPlus<CommunityNews, CommunityNewsVo> {

    /**
     * 更新收藏数量
     * @param communityId
     * @param userStars
     * @return
     */
    @InterceptorIgnore(tenantLine = "true", dataPermission = "false")
    public int updateCommunityNewsStars(@Param("communityId") Long communityId, @Param("userStars") String userStars);

}
