对Entity外部屏蔽消息处理签名
This commit is contained in:
parent
0a7304dc41
commit
86df9ab110
|
@ -55,11 +55,13 @@ std::shared_ptr<WsEntity> RtWsEntity::defaultNew() const {
|
|||
}
|
||||
|
||||
#include <QSet>
|
||||
QList<WsRespondSignatureType> RtWsEntity::signatureTypes() const
|
||||
QList<QString> RtWsEntity::inputTypes() const
|
||||
{
|
||||
QList<WsRespondSignatureType> types;
|
||||
for (auto c : this->_comps_list)
|
||||
types.append(c->signatureTypes());
|
||||
QList<QString> types;
|
||||
for (auto c : this->_comps_list) {
|
||||
for (auto f : c->signatureTypes())
|
||||
types.append(f.first);
|
||||
}
|
||||
return types.toSet().toList();
|
||||
}
|
||||
|
||||
|
|
|
@ -71,10 +71,10 @@ public:
|
|||
virtual std::shared_ptr<WsEntity> defaultNew() const;
|
||||
|
||||
/// <summary>
|
||||
/// 允许输入的消息处理签名类型
|
||||
/// 允许输入的消息类型
|
||||
/// </summary>
|
||||
/// <returns>消息处理签名类型集合</returns>
|
||||
virtual QList<WsRespondSignatureType> signatureTypes() const;
|
||||
/// <returns>消息类型集合</returns>
|
||||
virtual QList<QString> inputTypes() const;
|
||||
/// <summary>
|
||||
/// 通过指定的签名获取处理入口
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue