WebInteractionType枚举迁移
This commit is contained in:
parent
f333f2eb6d
commit
58ca613558
@ -73,6 +73,43 @@ enum ToFlutterAppEnum {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//通用交互
|
||||||
|
enum WebInteractionType {
|
||||||
|
taskKeyWatchLive('TaskKeyWatchLive'), // 观看直播
|
||||||
|
taskKeyCollectRoom('TaskKeyCollectRoom'), // 收藏房间
|
||||||
|
taskKeyFollowUser('TaskKeyFollowUser'), // 关注主播
|
||||||
|
taskKeySendRoomMessage('TaskKeySendRoomMessage'), // 发送房间消息
|
||||||
|
|
||||||
|
taskKeySendGift('TaskKeySendGift'), // 赠送礼物
|
||||||
|
taskKeySendGiftId('TaskKeySendGiftId'), // 赠送指定礼物
|
||||||
|
|
||||||
|
taskKeySendBackpackGift('TaskKeySendBackpackGift'), // 赠送礼物到背包
|
||||||
|
taskKeyPlayGame('TaskKeyPlayGame'), // 玩游戏
|
||||||
|
|
||||||
|
taskKeySendPrivateMessage('TaskKeySendPrivateMessage'), // 发送私聊消息
|
||||||
|
taskKeyShareActivity('TaskKeyShareActivity'), // 分享活动
|
||||||
|
|
||||||
|
taskKeyTimelineTopic('TaskKeyTimelineTopic'), // 参与动态话题
|
||||||
|
taskKeyLikeTimeline('TaskKeyLikeTimeline'), // 点赞动态
|
||||||
|
taskKeyReplayTimeline('TaskKeyReplayTimeline'), // 评论动态
|
||||||
|
|
||||||
|
taskKeySignIn('TaskKeySignIn'), // 签到
|
||||||
|
taskKeyOtherPage('TaskKeyOtherPage'), // 其他页面
|
||||||
|
taskKeyMineBackpack('TaskKeyMineBackpack'), // 我的装扮背包页面(或者是称号)
|
||||||
|
taskKeyMineWallet('TaskKeyMineWallet'), // 我的钱包页面
|
||||||
|
unknown('unknown'),
|
||||||
|
;
|
||||||
|
|
||||||
|
const WebInteractionType(
|
||||||
|
this.code,
|
||||||
|
);
|
||||||
|
final String code; //服务端 key
|
||||||
|
|
||||||
|
factory WebInteractionType.fromCode(String? code) => values.firstWhere(
|
||||||
|
(element) => element.code == code,
|
||||||
|
orElse: () => WebInteractionType.unknown,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// 原生交互通知 h5 {type:'enum',data:'所需参数 '}
|
// 原生交互通知 h5 {type:'enum',data:'所需参数 '}
|
||||||
enum FromFlutterAppEnum {
|
enum FromFlutterAppEnum {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user