1234567891011121314151617181920212223242526272829303132333435 |
- #ifndef USERCONFIGSERVICE_H
- #define USERCONFIGSERVICE_H
- #include "ClassSet.h"
- class UserConfigService
- {
- public:
- UserConfigService(QObject *parent = nullptr);
-
-
- int AddUserConfig(const UserConfig &cfg);
-
- bool AddUserConfigList(QList<UserConfig *> cfgList);
-
- bool UpdateUserConfig(const UserConfig &cfg);
-
- bool UpdateUserValid(int userId, int flag);
-
- int QueryUserWeightSum(int engineerId);
- int QueryUserWeightSum(int engineerId, int userId);
-
- bool QueryUserConfigInfoById(UserConfig *cfg, int cfgId);
- bool QueryUserConfigListInfoByUserId(QList<UserConfig *> *userCfgList, int userId);
- bool QueryUserConfigListInfoByUserIdAndEngineerId(UserConfig *userCfg, int userId, int engineerId);
- bool QueryUserConfigListInfoByEngineerId(QList<UserConfig *> *userCfgList, int engineerId);
- bool QueryAllUserConfig(QList<UserConfig *> *userCfgList);
-
- bool DeleteUserConfigById(int cfgId);
- bool DeleteUserConfigByEngineerId(int enjId);
- bool DeleteUserConfigByUserId(int userId);
-
- };
- #endif
|