package link.at17.mid.tushare.dao;

import com.alibaba.fastjson2.JSONObject;
import com.github.yulichang.base.MPJBaseMapper;

import link.at17.mid.tushare.annotation.BatchInsert;
import link.at17.mid.tushare.annotation.BatchList;
import link.at17.mid.tushare.data.models.StockLimit;
import link.at17.mid.tushare.data.models.interfaces.ITsTradeDate;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface StockLimitDao extends MPJBaseMapper<StockLimit>, ITsTradeDate {
    @BatchInsert
    int insertOrUpdateList(@BatchList List<JSONObject> list);
}
