-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: feedback support filter and search
用户反馈支持过滤和搜索 Log:
- Loading branch information
Showing
12 changed files
with
365 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. | ||
// SPDX-License-Identifier: LGPL-3.0-or-later | ||
|
||
#include <DHClientApi.h> | ||
#include <QJsonObject> | ||
|
||
using namespace DeepinHomeAPI; | ||
|
||
namespace SyncAPI { | ||
class GetFeedbackOptionalParam | ||
{ | ||
public: | ||
OptionalParam<QString> type; | ||
OptionalParam<QList<QString>> status; | ||
OptionalParam<QList<QString>> public_id; | ||
OptionalParam<QString> order; | ||
OptionalParam<QString> version; | ||
OptionalParam<QString> keyword; | ||
GetFeedbackOptionalParam(QJsonObject obj){ | ||
fromJsonObject(obj); | ||
}; | ||
void fromJsonObject(QJsonObject obj) | ||
{ | ||
if (obj["type"].toString().length() > 0) { | ||
type = obj["type"].toString(); | ||
} | ||
if (obj["status"].toArray().size() > 0) { | ||
status = obj["status"].toVariant().toStringList(); | ||
} | ||
if (obj["public_id"].toArray().size() > 0) { | ||
public_id = obj["public_id"].toVariant().toStringList(); | ||
} | ||
if (obj["order"].toString().length() > 0) { | ||
order = obj["order"].toString(); | ||
} | ||
if (obj["version"].toString().length() > 0) { | ||
version = obj["version"].toString(); | ||
} | ||
if (obj["keyword"].toString().length() > 0) { | ||
keyword = obj["keyword"].toString(); | ||
} | ||
}; | ||
}; | ||
} // namespace SyncAPI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.