package com.demo.dao;

import com.demo.entity.po.HeartBeat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;


@Repository
public class HeartBeatDao {
    @Autowired
    private MongoTemplate mongoTemplate;


    public void insert(HeartBeat heartBeat){
        mongoTemplate.insert(heartBeat);
    }

}
