Files
blog-backEnd/src/main/java/cn/celess/blog/mapper/PartnerMapper.java
2020-08-31 09:46:15 +08:00

42 lines
805 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package cn.celess.blog.mapper;
import cn.celess.blog.entity.PartnerSite;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @Author: 小海
* @Date 2019/07/03 00:22
* @Description
*/
@Mapper
@Repository
public interface PartnerMapper {
int insert(PartnerSite site);
int delete(long id);
int update(PartnerSite site);
boolean existsById(long id);
boolean existsByName(String name);
boolean existsByUrl(String url);
PartnerSite findById(long id);
PartnerSite findByName(String name);
PartnerSite findByUrl(String url);
PartnerSite getLastest();
List<PartnerSite> findAll();
List<PartnerSite> findAll(Boolean deleted);
}