mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 03:09:24 +08:00
搭建PVB架构,实现前端的基础布局、菜单、表格、图示等功能
This commit is contained in:
54
src/database/Dao.h
Normal file
54
src/database/Dao.h
Normal file
@@ -0,0 +1,54 @@
|
||||
#pragma once
|
||||
#include "DaoEntity.h"
|
||||
#include "DataModelDef.h"
|
||||
#include "common/Logger.h"
|
||||
|
||||
class DAO
|
||||
{
|
||||
public:
|
||||
static std::string sqlPageLimit(int index, int size);
|
||||
|
||||
static bool count(DaoEntity& dao, std::string tableName, std::string condition, int& count);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// === 用户管理
|
||||
static bool queryUserList(PageInfo& pageInfo, vector<DataFields>& result);
|
||||
|
||||
static bool updateUserById(DataFields& params);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// === 角色管理
|
||||
static bool queryRoleList(PageInfo& pageInfo, vector<DataFields>& result);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// === 权限管理
|
||||
static bool queryPermissionList(PageInfo& pageInfo, vector<DataFields>& result);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// === 场站管理
|
||||
// 查询场站信息列表
|
||||
static bool queryStationList(vector<DataFields>& result);
|
||||
// 分页查询场站信息列表
|
||||
static bool queryStationList(PageInfo& pageInfo, vector<DataFields>& result);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// === 设备管理
|
||||
// 查询设备信息列表
|
||||
static bool queryDeviceList(vector<DataFields>& result);
|
||||
// 分页查询设备信息列表
|
||||
static bool queryDeviceList(PageInfo& pageInfo, vector<DataFields>& result);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// === 策略管理
|
||||
// 分页查询策略信息列表
|
||||
static bool queryPolicyList(PageInfo& pageInfo, vector<DataFields>& result);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// === 系统日志管理
|
||||
// 分页查询系统日志列表
|
||||
static bool querySystemLogList(PageInfo& pageInfo, vector<DataFields>& result);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// === 统计数据管理
|
||||
static bool queryStatDataList(std::string startDate, std::string endDate, vector<DataFields>& result);
|
||||
};
|
||||
Reference in New Issue
Block a user