package com.hzya.frame.sysnew.pushMessage.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.sysnew.pushMessage.dao.ISysPushMessageDao;
import com.hzya.frame.sysnew.pushMessage.dao.impl.SysPushMessageDaoImpl;
import com.hzya.frame.sysnew.pushMessage.entity.SysPushMessageEntity;
import com.hzya.frame.sysnew.pushMessage.service.ISysPushMessageService;
import com.hzya.frame.sysnew.sendMessageLog.dao.ISysSendMessageLogDao;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("sysPushMessageService")
public class SysPushMessageServiceImpl extends BaseService<SysPushMessageEntity,String> implements ISysPushMessageService {

    private ISysPushMessageDao sysPushMessageDao;

    @Autowired
    public void setSysPushMessageDao(ISysPushMessageDao dao) {
        this.sysPushMessageDao = dao;
        this.dao = dao;
    }

    @Override
    public JsonResultEntity queryEntity(JSONObject jsonObject){
        List<SysPushMessageEntity> list = sysPushMessageDao.getAll();
        return BaseResult.getSuccessMessageEntity("success");
    }

}
