package link.at17.mid.tushare.dao;

import com.alibaba.fastjson2.JSONObject;
import link.at17.mid.tushare.annotation.BatchInsert;
import link.at17.mid.tushare.annotation.BatchList;
import link.at17.mid.tushare.data.models.StockInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface ThsMemberDao {
    @BatchInsert
    int insertOrUpdateList(@BatchList List<JSONObject> list);
    List<StockInfo> getThsMembers(String tsCode);
    /**
     * 获取个股的同花顺所属概念，以逗号分隔
     * @param tsCode 个股的 Tushare 代码
     * @return
     */
    String getBelongings(String tsCode);
}
