package com.hzya.frame.sysnew.application.api.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.sysnew.application.api.entity.SysApplicationApiEntity;
import com.hzya.frame.sysnew.application.api.dao.ISysApplicationApiDao;
import com.hzya.frame.sysnew.application.api.service.ISysApplicationApiService;
import com.hzya.frame.sysnew.application.plugin.entity.SysApplicationPluginEntity;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;

import java.util.List;

/**
 * 应用api(SysApplicationApi)表服务实现类
 *
 * @author makejava
 * @since 2023-09-22 16:23:35
 */
@Service(value = "sysApplicationApiService")
public class SysApplicationApiServiceImpl extends BaseService<SysApplicationApiEntity, String> implements ISysApplicationApiService {
     
    private ISysApplicationApiDao sysApplicationApiDao;
    
    @Autowired
	public void setSysApplicationApiDao(ISysApplicationApiDao dao) {
		this.sysApplicationApiDao = dao;
		this.dao = dao;
	}


	/**
	 * @param jsonObject
	 * @return com.hzya.frame.web.entity.JsonResultEntity
	 * @Author lvleigang
	 * @Description 查询应用api列表
	 * @Date 11:52 上午 2024/3/27
	 **/
	@Override
	public JsonResultEntity queryEntity(JSONObject jsonObject) {
		SysApplicationApiEntity entity = getData("jsonStr", jsonObject, SysApplicationApiEntity.class);
		if (entity == null) {
			entity = new SysApplicationApiEntity();
		}
		List<SysApplicationApiEntity> list = sysApplicationApiDao.queryByLike(entity);
		return BaseResult.getSuccessMessageEntity("查询数据成功", list);
	}
}
