PainDao.java 612 Bytes
package com.pipihelper.project.feishu.dao;

import com.pipihelper.project.feishu.entity.Pain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PainDao {

    Pain findById(Integer id);

    Pain findByOpenId(String openId);

    void deleteById(Integer id);

    void create(Pain pain);

    void update(Pain pain);

    List<Pain> findAll();

    void waitPain(Pain pain);

    List<Pain> findListAsc(int limit);

    List<Pain> findBackIndex(@Param(value = "openId") String openId, @Param(value = "limit") int limit);
}